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

NameTypeAccessDescription
OffsetBottomVector3Read/WriteGets or sets the offset bottom.
OffsetTopVector3Read/WriteGets or sets the offset top.
GenerateFanCylinderboolRead/WriteGets or sets the generate fan cylinder.
ShearBottomVector2Read/WriteGets or sets the shear bottom.
ShearTopVector2Read/WriteGets or sets the shear top.
RadiusTopdoubleRead/WriteGets or sets the radius top.
RadiusBottomdoubleRead/WriteGets or sets the radius bottom.
HeightdoubleRead/WriteGets or sets the height.
RadialSegmentsintRead/WriteGets or sets the radial segments.
HeightSegmentsintRead/WriteGets or sets the height segments.
OpenEndedboolRead/WriteGets or sets the open ended.
ThetaStartdoubleRead/WriteGets or sets the theta start.
ThetaLengthdoubleRead/WriteGets or sets the theta length.

Methods

SignatureDescription
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

See Also