C4 Engine
C4 Engine API Documentation

PrimitiveGeometry::GetPrimitiveType

Defined in:  C4Primitives.h
Returns the specific type of a primitive geometry.
Prototype

PrimitiveType GetPrimitiveType(voidconst;

Description
The GetPrimitiveType function returns the specific primitive geometry type, which can be one of the following constants.
kPrimitivePlate Planar rectangle primitive.
kPrimitiveDisk Planar disk primitive.
kPrimitiveHole Plate primitive with a hole cut out of the center.
kPrimitiveAnnulus Planar annulus primitive.
kPrimitiveBox Box primitive.
kPrimitivePyramid Pyramid primitive.
kPrimitiveCylinder Cylinder primitive.
kPrimitiveCone Cone primitive.
kPrimitiveTruncatedCone Truncated cone primitive.
kPrimitiveSphere Sphere primitive.
kPrimitiveDome Dome primitive.
kPrimitiveTorus Torus primitive.
kPrimitiveTube Path tube primitive.
kPrimitiveExtrusion Path extrusion primitive.
kPrimitiveRevolution Path revolution primitive.