## class TruncatedConeGeometry

**Defined in:**

`TSPrimitives.h`

`TruncatedConeGeometry`

class represents a truncated cone primitive node in a world.
Definition

`class TruncatedConeGeometry final : public PrimitiveGeometry`

Constructor

`TruncatedConeGeometry(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 `TruncatedConeGeometry`

class 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 `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].When a new truncated cone geometry is created, the corresponding

`TruncatedConeGeometryObject`

is automatically created and referenced by the geometry node.
Base Classes

`PrimitiveGeometry` |
A truncated cone is a specific type of primitive geometry. |

See Also