Cylinder
Overview
Cylinder is a class in Aspose.3D FOSS for .NET.
Inherits from: Primitive.
Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
OffsetBottom | Vector3 | Read/Write | Gets or sets the bottom offset vector of the cylinder |
OffsetTop | Vector3 | Read/Write | Gets or sets the top offset vector of the cylinder |
GenerateFanCylinder | bool | Read/Write | Indicates whether to generate a fan-shaped cylinder |
ShearBottom | Vector2 | Read/Write | Gets or sets the shear vector applied to the bottom face |
ShearTop | Vector2 | Read/Write | |
RadiusTop | double | Read/Write | Gets or sets the radius of the cylinder’s top circle |
RadiusBottom | double | Read/Write | Gets or sets the radius of the cylinder’s bottom circle |
Height | double | Read/Write | Gets or sets the vertical height of the cylinder |
RadialSegments | int | Read/Write | Gets or sets the number of segments around the cylinder’s circumference |
HeightSegments | int | Read/Write | Gets or sets the number of vertical subdivisions of the cylinder |
OpenEnded | bool | Read/Write | Gets or sets whether the cylinder has no end caps |
ThetaStart | double | Read/Write | Gets or sets the start angle for the cylinder’s sweep in radians |
ThetaLength | double | Read/Write | Gets or sets the sweep angle of the cylinder in radians |
Methods
| Signature | Description |
|---|---|
Cylinder() | Creates a cylinder with detailed segmentation and optional caps |
Cylinder(radius: double, height: double) | |
Cylinder(radiusTop: double, radiusBottom: double, height: double) | |
Cylinder(radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: bool) | |
Cylinder(name: string, radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: bool, thetaStart: double, thetaLength: double) | |
ToMesh() | Convert current object to mesh |
GetBoundingBox() | Returns the axis-aligned bounding box of the cylinder |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |