C4 Engine
C4 Engine API Documentation

class CylinderGeometryObject

Defined in:  C4Primitives.h
The CylinderGeometryObject class encapsulates data pertaining to a cylinder primitive.
Definition

class CylinderGeometryObject final : public PrimitiveGeometryObject

Member Functions
CylinderGeometryObject::GetCylinderSize Returns the cylinder base size.
CylinderGeometryObject::SetCylinderSize Sets the cylinder base size.
CylinderGeometryObject::GetCylinderHeight Returns the cylinder height.
CylinderGeometryObject::SetCylinderHeight Sets the cylinder height.
Constructor

CylinderGeometryObject(const Vector2D& size, float height);

Parameters
size The size of the cylinder base.
height The height of the cylinder.
Description
The CylinderGeometryObject class encapsulates data pertaining to a cylinder primitive. 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.
Base Classes
PrimitiveGeometryObject A CylinderGeometryObject is an object that can be shared by multiple cylinder geometry nodes.
See Also

CylinderGeometry