Skip to content

Instantly share code, notes, and snippets.

@doubleshow
doubleshow / index.xml
Last active September 27, 2015 22:04
craftml
<craft>
<info>
<title>Untitled</title>
</info>
<param name="h" type="int" default="20"
label="height of the cylinder"/>
<param name="n" type="int" default="3"
label="number of spheres"/>
@doubleshow
doubleshow / index.xml
Last active September 27, 2015 13:12
craftml
<craft>
<info>
<title>Parameter Optimization Grid Search</title>
</info>
<!-- test viable configuration of fitting the small cube into the large cube -->
<craft name="small">
<param name="s" default="4"/>
@doubleshow
doubleshow / index.xml
Created September 27, 2015 12:53
craftml
<craft>
<info>
<title>Parametric Flowers</title>
</info>
<param name="numLayers" default="20"/>
<param name="numPetals" default="5"/>
<param name="petalLength" default="20" type="float"/>
<param name="petalRadius" default="5" type="float"/>
@doubleshow
doubleshow / index.xml
Last active September 27, 2015 03:13
craftml
<craft name="radial-layout" t="ungroup()">
<param name="radius" default="10" type="int"/>
<param name="n" default="10" type="int"/>
<param name="degrees" default="180" type="float"/>
<param name="start" default="0" type="int"/>
<content>
<repeat n="10">
<cube t="center()"></cube>
</repeat>
</content>
@doubleshow
doubleshow / index.xml
Last active September 27, 2015 03:14
craftml
<craft>
<info>
<title>Parametric Flowers</title>
</info>
<param name="numLayers" default="20"/>
<param name="numPetals" default="5"/>
<param name="petalLength" default="20" type="float"/>
<param name="petalRadius" default="5" type="float"/>
@doubleshow
doubleshow / index.xml
Last active September 27, 2015 00:12
craftml
<craft>
<info>
<title>Customizable cable holder</title>
<!-- based on http://www.thingiverse.com/thing:1036480 -->
</info>
<param name="shelfThickness" default="30"/>
<part name="holder">
@doubleshow
doubleshow / index.xml
Last active September 26, 2015 23:33
craftml
<craft name="pipe">
<info>
<title>Pipe</title>
</info>
<param name="diameter" default="20"/>
<g l="centerXY() cut(.tocut)">
<cylinder radius="{{diameter/2 + 1}}">
</cylinder>
<cylinder radius="{{diameter/2}}"
class="tocut">
@doubleshow
doubleshow / index.xml
Last active September 26, 2015 23:26
craftml
<craft name="radial-layout" t="ungroup()">
<info>
<title>Radial Layout</title>
</info>
<param name="radius" default="10" type="int"/>
<param name="n" default="10" type="int"/>
<param name="degrees" default="180" type="float"/>
<param name="start" default="0" type="int"/>
<content>
<repeat n="10">
@doubleshow
doubleshow / index.xml
Created September 26, 2015 13:24
craftml
<craft name="twist-repeat" t="ungroup()">
<param name="radius" default="10" type="int"/>
<param name="n" default="10" type="int"/>
<param name="degrees" default="180" type="float"/>
<param name="start" default="0" type="int"/>
<repeat n="{{n}}">
<content>
<prism t="scale(0.5)"></prism>
</content>
</repeat>
@doubleshow
doubleshow / index.xml
Last active September 26, 2015 23:50
craftml
<craft>
<info>
<title>PI Ring</title>
<!-- based on http://www.thingiverse.com/thing:903332 -->
</info>
<param name="diameter" default="100"/>
<param name="height" default="60"/>
<param name="precision" default="40" type="float"/>