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

NameTypeAccessDescription
OffsetBottomVector3Read/WriteGets or sets the bottom offset vector of the cylinder
OffsetTopVector3Read/WriteGets or sets the top offset vector of the cylinder
GenerateFanCylinderboolRead/WriteIndicates whether to generate a fan-shaped cylinder
ShearBottomVector2Read/WriteGets or sets the shear vector applied to the bottom face
ShearTopVector2Read/Write
RadiusTopdoubleRead/WriteGets or sets the radius of the cylinder’s top circle
RadiusBottomdoubleRead/WriteGets or sets the radius of the cylinder’s bottom circle
HeightdoubleRead/WriteGets or sets the vertical height of the cylinder
RadialSegmentsintRead/WriteGets or sets the number of segments around the cylinder’s circumference
HeightSegmentsintRead/WriteGets or sets the number of vertical subdivisions of the cylinder
OpenEndedboolRead/WriteGets or sets whether the cylinder has no end caps
ThetaStartdoubleRead/WriteGets or sets the start angle for the cylinder’s sweep in radians
ThetaLengthdoubleRead/WriteGets or sets the sweep angle of the cylinder in radians

Methods

SignatureDescription
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

See Also