SHARE
TWEET

Untitled

a guest Aug 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Your code here
  2. double baseHeight = 5
  3. double height = 60
  4. CSG base = new Cube(190,// X dimention
  5.             80,// Y dimention
  6.             baseHeight//  Z dimention
  7.             ).toCSG().toXMin().toZMin().toYMin()
  8.            
  9. CSG firstSideWall = new Cube(190,// X dimention
  10.             4,// Y dimention
  11.             height//  Z dimention
  12.             ).toCSG().toXMin().toYMin().toZMin()
  13.  
  14. CSG secondSideWall = new Cube(190,// X dimention
  15.             4,// Y dimention
  16.             height//  Z dimention
  17.             ).toCSG().toXMin().movey(78).toZMin()
  18.  
  19. CSG firstWall = new Cube(5,// X dimention
  20.             80,// Y dimention
  21.             height//  Z dimention
  22.             ).toCSG().toXMin().toYMin().toZMin()
  23.  
  24. CSG secondWall = new Cube(5,// X dimention
  25.             80,// Y dimention
  26.             height//  Z dimention
  27.             ).toCSG().movex(40).toYMin().toZMin()
  28.  
  29. CSG thirdWall = new Cube(5,// X dimention
  30.             80,// Y dimention
  31.             height//  Z dimention
  32.             ).toCSG().movex(80).toYMin().toZMin()
  33.  
  34. CSG fourthWall = new Cube(5,// X dimention
  35.             80,// Y dimention
  36.             height//  Z dimention
  37.             ).toCSG().movex(120).toYMin().toZMin()
  38.  
  39. CSG fifthWall = new Cube(5,// X dimention
  40.             80,// Y dimention
  41.             height//  Z dimention
  42.             ).toCSG().movex(190).toYMin().toZMin()
  43.  
  44. CSG basePlusFirstWall = base.union(firstWall);
  45. CSG basePlusSecondWall = base.union(secondWall);
  46. CSG basePlusThirdWall = base.union(thirdWall);
  47. CSG basePlusFourthtWall = base.union(fourthWall);
  48. CSG basePlusFifthWall = base.union(fifthWall);
  49. CSG basePlusFirstSideWall = base.union(firstSideWall);
  50. CSG basePlusSecondSideWall = base.union(secondSideWall);
  51.  
  52. return[base,firstSideWall,secondSideWall, firstWall,secondWall, thirdWall, fourthWall, fifthWall]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top