Last active
September 2, 2015 23:39
-
-
Save ryosuzuki/1770ee76cb5144a47f4e to your computer and use it in GitHub Desktop.
craftml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<craft name="chair"> | |
<param name="length" type="int" default="15"/> | |
<param name="legHeight" type="int" default="14"/> | |
<stack l="alignX(0%)" color="peru"> | |
<!-- Back --> | |
<stack spacing="-13"> | |
<stack spacing="-4"> | |
<cylinder height="1" radius="6" | |
t="rotateY(90) | |
"></cylinder> | |
<cube size="1 11 7.5"></cube> | |
</stack> | |
<col spacing="11"> | |
<repeat n="2"> | |
<cube size="2 2 15"></cube> | |
</repeat> | |
</col> | |
</stack> | |
<stack> | |
<!-- Seat --> | |
<cube size="{{length}} 15 2"></cube> | |
<!-- Legs --> | |
<col spacing="11"> | |
<repeat n="2"> | |
<row l="alignZ(20%)"> | |
<cube size="2 2 {{legHeight}}"></cube> | |
<cube size="{{length - 4}} 1.5 1.5"></cube> | |
<cube size="2 2 {{legHeight}}"></cube> | |
</row> | |
</repeat> | |
</col> | |
</stack> | |
</stack> | |
<craft name="table" module="VyOcl"/> | |
<table></table> | |
</craft> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment