C4 Engine
C4 Engine API Documentation

class TruncatedConeGeometryObject

Defined in:  C4Primitives.h
The TruncatedConeGeometryObject class encapsulates data pertaining to a truncated cone primitive.
Definition

class TruncatedConeGeometryObject final : public PrimitiveGeometryObject

Member Functions
TruncatedConeGeometryObject::GetConeSize Returns the truncated cone base size.
TruncatedConeGeometryObject::SetConeSize Sets the truncated cone base size.
TruncatedConeGeometryObject::GetConeHeight Returns the truncated cone height.
TruncatedConeGeometryObject::SetConeHeight Sets the truncated cone height.
TruncatedConeGeometryObject::GetConeRatio Returns the ratio of the upper size to the base size of a truncated cone.
TruncatedConeGeometryObject::SetConeRatio Sets the ratio of the upper size to the base size of a truncated cone.
Constructor

TruncatedConeGeometryObject(const Vector2D& size, float height, float ratio);

Parameters
size The size of the cone base.
height The height of the cone.
ratio The ratio of the upper size to the base size.
Description
The TruncatedConeGeometryObject class encapsulates data pertaining to a truncated cone primitive. In its local coordinate space, a truncated cone 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 distance in the positive z direction between the base of the cone and the plane parallel to the base at which the cone is truncated. The ratio parameter defines the ratio between the size of the top face and the bottom face (the base) of the truncated cone and should be in the range (0,1].
Base Classes
PrimitiveGeometryObject A TruncatedConeGeometryObject is an object that can be shared by multiple truncated cone geometry nodes.
See Also

TruncatedConeGeometry