Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement