Advertisement
cwkitkat

Untitled

Feb 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. delete objects
  2.  
  3. fn fenches =
  4. (
  5. num1 = 10
  6. for i = 1 to num1 do
  7. (
  8. pos1 = 0
  9. pos2 = 0
  10. pos3 = 0
  11. wood1 = chamferbox length:12 width:12 height:50 fillet:0.8 pos: [i*pos1,i*pos2,pos3]
  12. wood2 = instance wood1 pos: [(i*pos1+40),(i*pos2+0),(pos3+0)]
  13. wood3 = chamferbox length:10 width:30 height:10 fillet:0.9 pos: [(i*pos1+20), (i*pos2), (pos3+30)]
  14.  
  15. nail1 = chamfercyl radius: 2 height: 15 fillet: 0.8 pos: [i*pos1,pos2+7.5,(pos3+40)]
  16. nail1.rotation.x_rotation = 90
  17. nail2 = instance nail1 pos:[i*pos1+40, i*pos2+7.5, (pos3+40)]
  18. sharp1 = prism length1: 30 length2: 30 length3: 30 height: 13 pos: [i*pos1-12.7,i*pos2+6.5,pos3+49]
  19. sharp1.rotation.x_rotation = 90
  20. sharp2 = instance sharp1 pos: [i*pos1+27.7,i*pos2+6.5,pos3+49]
  21.  
  22. fench1 = wood1 + wood2 + wood3 + nail1 + nail2 + sharp1 + sharp2
  23.  
  24. delete wood2
  25. delete wood3
  26. delete nail1
  27. delete nail2
  28. delete sharp1
  29. delete sharp2
  30.  
  31. scale1 = 1
  32. scale2 = 1
  33. scale3 = 1
  34. fench1.scale = [scale1,scale2,scale3]
  35. move fench1 [i*80,i,0]
  36. )
  37. )
  38.  
  39. fn fenchconnector =
  40. (
  41. num2 = 9
  42. for i = 1 to num2 do
  43. (
  44. wood4 = chamferbox length:10 width:30 height:10 fillet:0.9 pos: [(i*pos1+20)*3, (i*pos2), (pos3+30)]
  45. move wood4 [i*80,i,0]
  46. )
  47. )
  48.  
  49. fenches()
  50. fenchconnector()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement