Skip to content

Instantly share code, notes, and snippets.

@zseker
Last active August 8, 2019 21:31
Show Gist options
  • Save zseker/7e47fd15d7a348b359afa43217667d80 to your computer and use it in GitHub Desktop.
Save zseker/7e47fd15d7a348b359afa43217667d80 to your computer and use it in GitHub Desktop.
Adding new file from BowlerStudio
//Your code here
double baseHeight = 5
double height = 60
CSG base = new Cube(190,// X dimention
80,// Y dimention
baseHeight// Z dimention
).toCSG().toXMin().toZMin().toYMin()
CSG firstSideWall = new Cube(190,// X dimention
4,// Y dimention
height// Z dimention
).toCSG().toXMin().toYMin().toZMin()
CSG secondSideWall = new Cube(190,// X dimention
4,// Y dimention
height// Z dimention
).toCSG().toXMin().movey(78).toZMin()
CSG firstWall = new Cube(5,// X dimention
80,// Y dimention
height// Z dimention
).toCSG().toXMin().toYMin().toZMin()
CSG secondWall = new Cube(5,// X dimention
80,// Y dimention
height// Z dimention
).toCSG().movex(40).toYMin().toZMin()
CSG thirdWall = new Cube(5,// X dimention
80,// Y dimention
height// Z dimention
).toCSG().movex(80).toYMin().toZMin()
CSG fourthWall = new Cube(5,// X dimention
80,// Y dimention
height// Z dimention
).toCSG().movex(120).toYMin().toZMin()
CSG fifthWall = new Cube(5,// X dimention
80,// Y dimention
height// Z dimention
).toCSG().movex(190).toYMin().toZMin()
CSG basePlusFirstWall = base.union(firstWall);
CSG basePlusSecondWall = base.union(secondWall);
CSG basePlusThirdWall = base.union(thirdWall);
CSG basePlusFourthtWall = base.union(fourthWall);
CSG basePlusFifthWall = base.union(fifthWall);
CSG basePlusFirstSideWall = base.union(firstSideWall);
CSG basePlusSecondSideWall = base.union(secondSideWall);
return[base,firstSideWall,secondSideWall, firstWall,secondWall, thirdWall, fourthWall, fifthWall]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment