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.
This class provides 4 methods for working with Cylinder objects in .NET programs.
Available methods include: Cylinder, GetBoundingBox, GetEntityRendererKey, ToMesh.
All exported members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: GenerateFanCylinder, Height, HeightSegments, OffsetBottom, OffsetTop, OpenEnded, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
OffsetBottom | Vector3 | Read/Write | Gets or sets the offset bottom. |
OffsetTop | Vector3 | Read/Write | Gets or sets the offset top. |
GenerateFanCylinder | bool | Read/Write | Gets or sets the generate fan cylinder. |
ShearBottom | Vector2 | Read/Write | Gets or sets the shear bottom. |
ShearTop | Vector2 | Read/Write | Gets or sets the shear top. |
RadiusTop | double | Read/Write | Gets or sets the radius top. |
RadiusBottom | double | Read/Write | Gets or sets the radius bottom. |
Height | double | Read/Write | Gets or sets the height. |
RadialSegments | int | Read/Write | Gets or sets the radial segments. |
HeightSegments | int | Read/Write | Gets or sets the height segments. |
OpenEnded | bool | Read/Write | Gets or sets the open ended. |
ThetaStart | double | Read/Write | Gets or sets the theta start. |
ThetaLength | double | Read/Write | Gets or sets the theta length. |
Methods
| Signature | Description |
|---|---|
Cylinder() | Creates a named cylinder with full parameter set including angular range |
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 |