TGLClip Abstract clipping shape - derives from TGLPhysicalShape Adds clip mode (inside/outside) and pure virtual method to approximate shape as set of planes. This plane set is used to perform interactive clipping using OpenGL clip planes.
enum EMode { | kOutside | |
kInside | ||
}; | ||
enum TGLPhysicalShape::EManip { | kTranslateX | |
kTranslateY | ||
kTranslateZ | ||
kTranslateAll | ||
kScaleX | ||
kScaleY | ||
kScaleZ | ||
kScaleAll | ||
kRotateX | ||
kRotateY | ||
kRotateZ | ||
kRotateAll | ||
kManipAll | ||
}; |
Setup the clipping object with two vectors. The interpretation of the two is different for plane and box clipping objects.
Draw out clipping object with blending and back + front filling. Some clip objects are single face which we want to see both sides of.