External Exam Download Resources Web Applications Games Recycle Bin

Other Shapes



Box
box {
  <0, 0, 0>,  // Near lower left corner
  <1, 1, 1>  // Far upper right corner
  pigment { Yellow }
}


Cone
cone {
  <0, 0, 0>, 0.1  // Center and radius of one end
  <0, 1, 0>, 0.5    // Center and radius of other end
  pigment { Magenta }
}


Cylinder
cylinder {
  <0, 0, 0>,     // Center of one end
  <0, 0, 3>,     // Center of other end
  1              // Radius
  pigment { Green }
}


Triangle
triangle {
    //3 corners:
    <0, 0, 0>, <1, 0, 0>, <0.5, 1, 0>
    pigment { Yellow }
}


Donut
donut or torus
Donut or Torus will be drawn around the x-axes with the very middle of the donut at <0,0,0>. We will move the torus around later!
#include "include/colors.inc"

camera {
  location <0, -10, 0>
  look_at <0, 0, 0>
}

torus {
  4, 1              // major and minor radius
  pigment { Orange }
}

light_source { <0, -20, 0> White}


Challenges
  1. make a crucifix cross (using 2 box shapes)
  2. make a spear (using 1 cylinder and 1 cone)
  3. make a fat donut (so adjust the widths used in the torus)
  4. make a power button symbol (using 1 box and 1 torus)
  5. make a pyramid using 4 triangles