TruncatedConeGeometryclass represents a truncated cone primitive node in a world.
class TruncatedConeGeometry final : public PrimitiveGeometry
TruncatedConeGeometry(const Vector2D& size, float height, float ratio);
||The size of the cone base.|
||The height of the cone.|
||The ratio of the upper size to the base size.|
TruncatedConeGeometryclass represents a truncated cone primitive node in a world. In its local coordinate space, a truncated cone primitive has the center of its base at the origin, and the components of the
sizeparameter define the semiaxis lengths of the base in the positive x and y directions. The
heightparameter 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
ratioparameter 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].
When a new truncated cone geometry is created, the corresponding
TruncatedConeGeometryObjectis automatically created and referenced by the geometry node.
||A truncated cone is a specific type of primitive geometry.|