C4 Engine
C4 Engine API Documentation

class CylinderGeometry

Defined in:  C4Primitives.h
The CylinderGeometry class represents a cylinder primitive node in a world.
Definition

class CylinderGeometry final : public PrimitiveGeometry

Constructor

CylinderGeometry(const Vector2D& size, float height);

Parameters
size The size of the cylinder base.
height The height of the cylinder.
Description
The CylinderGeometry class represents a cylinder primitive node in a world. In its local coordinate space, a cylinder primitive has the center of its base at the origin, and the components of the size parameter define the semiaxis lengths of the base in the positive x and y directions. The height parameter defines the height of the cylinder above the base in the positive z direction.

When a new cylinder geometry is created, the corresponding CylinderGeometryObject is automatically created and referenced by the geometry node.
Base Classes
PrimitiveGeometry A cylinder is a specific type of primitive geometry.
See Also

CylinderGeometryObject