Defines

Shape Capping Types

Defines

#define  CAPTYPE_MORPH   0
  The capping code does the best job it can given this constraint, however it is possible to wind up with long sliver-like faces on the cap.
#define  CAPTYPE_GRID   1
  This helps to break up the shape and helps reduce slivering.

Define Documentation

#define CAPTYPE_MORPH   0

The capping code does the best job it can given this constraint, however it is possible to wind up with long sliver-like faces on the cap.

This is referred to as a morph cap because if you cap a shape using this method, it does not generate any new vertices and you can then morph between shapes with the same number of vertices. Uses the existing vertices in the PolyShape to generate the cap.

#define CAPTYPE_GRID   1

This helps to break up the shape and helps reduce slivering.

Grid capping will generate a different number of vertices based on the shape and thus the shapes are not morphable. Generates new vertices in the interior of the shape in a grid pattern.