Prisms and Antiprisms

  • Email
  • Sharebar
  • Email
dpietrobon's picture

A prism is a 3D shape with two matching polygonal faces connected by straight edges.

To create these objects in the virtual world we can reuse our code for making polygons and simply connect the edges.

An antiprism is like a prism, but its top and bottom faces are rotated and connected with triangles.

 
The following logo procedure defines antiprisms centered at the origin:
 
 
Interestingly, the triangular faces of an antiprism form a shape known as a skew regular polygon. That is a polygon which is regular, but not confined to 2-dimensional space alone.