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
| import java.lang.Math; | |
| import eu.mihosoft.vrl.v3d.ext.quickhull3d.* | |
| import eu.mihosoft.vrl.v3d.Vector3d | |
| //Your code here | |
| tierWidth = 145.625; | |
| tierOverhang = 10; | |
| tierThickness = 2; | |
| tierHeight = 47.0202 + tierOverhang + tierThickness; | |
| tierGap = 20; |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.class |
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
| import eu.mihosoft.vrl.v3d.CSG | |
| import eu.mihosoft.vrl.v3d.Cube | |
| import eu.mihosoft.vrl.v3d.Extrude | |
| import eu.mihosoft.vrl.v3d.Polygon | |
| import eu.mihosoft.vrl.v3d.Slice | |
| import eu.mihosoft.vrl.v3d.Transform | |
| import eu.mihosoft.vrl.v3d.svg.SVGExporter | |
| import eu.mihosoft.vrl.v3d.svg.SVGLoad | |
| def base = new Cube(20).toCSG() |
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
| [ | |
| new Wedge(60,25,40).toCSG().movey(75), | |
| new Isosceles(60,25,40).toCSG() | |
| ] |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.class |
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
| CSG roundedCylinder = new RoundedCylinder(50,60.0) | |
| .cornerRadius(10)// sets the radius of the corner | |
| .toCSG()// converts it to a CSG tor display | |
| return roundedCylinder |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.class |
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
| return [new ChamferedCube(5,5,5,1.5).toCSG(), | |
| new ChamferedCylinder(5,5,1).toCSG().movex(10), | |
| new Wedge(10,5,20).toCSG().movey(10), | |
| new Isosceles(10,5,20).toCSG().movey(20), | |
| new Fillet(5,10).toCSG().movey(30), | |
| Parabola.extrudeByEquation(5,-0.27,0,1) | |
| .move(20,20,0), | |
| Parabola.coneByEquation(5,1.27,0.7) | |
| .move(30,30,0), |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.class |
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
| /.settings | |
| /.project | |
| /.classpath | |
| /.cproject | |
| /cache/ | |
| /*.class |