Skip to content

Instantly share code, notes, and snippets.

@jyxiao1
jyxiao1 / helloWorld.groovy
Created January 15, 2019 18:18 — forked from madhephaestus/.gitignore
BowlerStudio Hello World
// Have BowlerStudio speak messages
BowlerKernel.speak("Hello this is a test")
@jyxiao1
jyxiao1 / WPIClass.groovy
Last active January 15, 2019 19:24
Introduction to bowler studio
//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
@jyxiao1
jyxiao1 / csgDatabase.json
Created January 15, 2019 18:23 — forked from madhephaestus/.gitignore
JavaCadExample
{}
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
@jyxiao1
jyxiao1 / simonGlasses.groovy
Last active March 12, 2019 19:23
a pair of Simon Glasses from "Tengan Toppa Gurren Lagann"
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;
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()
@jyxiao1
jyxiao1 / magazineDisplay.groovy
Last active June 21, 2019 15:05
3d model of a laser cutting template for a display
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;
@jyxiao1
jyxiao1 / garnetGlasses.groovy
Last active March 16, 2019 23:31
Garnet's glasses
//Your code here
@jyxiao1
jyxiao1 / garnetGlasses.groovy
Created March 15, 2019 23:27
Adding new file from BowlerStudio
//Your code here
@jyxiao1
jyxiao1 / klang.groovy
Created June 19, 2019 17:28
klang earrings
//Your code here