Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Forked from zseker/RBE 200x Foam.groovy
Last active August 13, 2019 13:48
Show Gist options
  • Save madhephaestus/66c05e3d6acba88a05333cc5bb2228c7 to your computer and use it in GitHub Desktop.
Save madhephaestus/66c05e3d6acba88a05333cc5bb2228c7 to your computer and use it in GitHub Desktop.
Adding new file from BowlerStudio
double z =70;
CSG breadboard = new Cube(85,// X dimention
55,// Y dimention
z// Z dimention
).toCSG().toXMin().toYMin().toZMin()
CSG cableBox = new Cube(190,// X dimention
80,// Y dimention
z// Z dimention
).toCSG().toXMin().toZMin().movey(160)
CSG powerbank = new Cube(139.7,// X dimention
30.48,// Y dimention
z// Z dimention
).toCSG()
CSG loadCell = new Cube(80,// X dimention
14,// Y dimention
z// Z dimention
).toCSG()
CSG sensors = new Cube(85,// X dimention
85,// Y dimention
z// Z dimention
).toCSG()
CSG stepperMotor = new Cube(35.2,// X dimention
35.2,// Y dimention
z// Z dimention
).toCSG()
CSG sharpRangeFinder = new Cube(45,// X dimention
21,// Y dimention
z// Z dimention
).toCSG()
CSG motor = new Cylinder( 19, // Radius at the top
19, // Radius at the bottom
z, // Height
(int)80 //resolution
).toCSG() // three of this motor
CSG positioningCamera = new Cylinder( 32, // Radius at the top
32, // Radius at the bottom
z, // Height
(int)80 //resolution
).toCSG()
CSG topCube = new Cube(356, 72, z).toCSG()
.toXMin()
.movex(16)
.toYMin()
.toZMin()
CSG R1Cube = new Cube(16,200,z).toCSG().movex(16).movey(72).toZMin()
CSG L1Cube = new Cube(16,200,z).toCSG().movex(372).movey(72).toZMin()
return[topCube, R1Cube]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment