Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #declare PieceBase =
  2. union {
  3.     intersection {
  4.        sphere { <0, 0, 0>, 3 }
  5.        plane { -y, 0 }
  6.     }
  7.     cylinder { 0, y*0.35, 3.0 pigment { green 0.65 } }
  8. }
  9.  
  10. #declare Knight = union {
  11.    intersection {
  12.       object { Cylinder_Z
  13.          scale <17.875, 17.875, 1>
  14.          translate <-18.625, 7, 0>
  15.          inverse
  16.       }
  17.  
  18.       object { Cylinder_Z
  19.          scale <17.875, 17.875, 1>
  20.          translate <18.625, 7, 0>
  21.          inverse
  22.       }
  23.  
  24.       object { Cylinder_X
  25.          scale <1, 5.1, 5.1>
  26.          translate <0, 11.2, -5>
  27.          inverse
  28.       }
  29.  
  30.       union {
  31.          plane { y, 0
  32.             rotate 30*x
  33.             translate 9.15*y
  34.          }
  35.          plane { z, 0
  36.             rotate -20*x
  37.             translate 10*y
  38.          }
  39.       }
  40.  
  41.       union {
  42.          plane { -y, 0
  43.             rotate 30*x
  44.             translate 7.15*y
  45.          }
  46.          plane { y, 0
  47.             rotate 60*x
  48.             translate 7.3*y
  49.          }
  50.       }
  51.  
  52.       union {
  53.          plane { y, 0
  54.             rotate -45*y
  55.          }
  56.          plane { y, 0
  57.             rotate 45*z
  58.          }
  59.          translate 9*y
  60.       }
  61.  
  62.       object { Cylinder_Y scale <2, 1, 2> }
  63.       sphere { <0, 7, 0>, 4 }
  64.    }
  65.  
  66.    sphere { <0, 0, 0>, 1
  67.       scale <2.5, 0.5, 2.5>
  68.       translate <0, 2.8, 0>
  69.    }
  70.  
  71.    object { PieceBase }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement