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
// Have BowlerStudio speak messages | |
BowlerKernel.speak("Hello this is a test") |
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
//make a rook | |
double baseHeight =12; | |
double totalHeight =60; | |
double topHeight =20; | |
CSG rookBase = new Cylinder(35,// bottom radius | |
35,// top radius | |
baseHeight,// height | |
40 // resolution | |
).toCSG() | |
CSG rookCenter = new Cylinder(30,// bottom radius |
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
{} |
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 Cube( 40,// X dimention | |
60,// Y dimention | |
80// Z dimention | |
).toCSG()// this converts from the geometry to an object we can work with |
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.ext.quickhull3d.* | |
import eu.mihosoft.vrl.v3d.Vector3d | |
//Your code here | |
//cos^-1(((3.5)^2+(3.935)^2 - (1.8)^2)/(2*3.5*3.935)) | |
//2 to 1 ratio of glasses to face | |
double upperPointX = 0; | |
double upperPointY = 80; |
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.ext.quickhull3d.* | |
import eu.mihosoft.vrl.v3d.Vector3d | |
//Move and rotate opperations | |
double size =40; | |
CSG cube = new Cube( size,// X dimention | |
size,// Y dimention | |
size// Z dimention | |
).toCSG() | |
CSG movedCube = new Sphere(size).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
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
//Your code here |
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
//Your code here |
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
//Your code here |