Cylinder

Overview

Cylinder is a class in Aspose.3D FOSS for Java. Inherits from: Primitive, IMeshConvertible.

Parameterized Cylinder.

This class provides 56 methods for working with Cylinder objects in Java programs. Available methods include: A3DObject, Cylinder, Entity, Primitive, SceneObject, findProperty, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getGenerateFanCylinder, getHeight, and 39 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, castShadows, entityRendererKey, excluded, generateFanCylinder, height, and 17 more.

Properties

NameTypeAccessDescription
offsetBottomVector3Read/WriteGets the vertices transformation offset of the bottom side.
offsetTopVector3Read/WriteGets the vertices transformation offset of the top side.
generateFanCylinderbooleanRead/WriteGets whether to generate the fan-style cylinder when the ThetaLength is less than 2*PI, otherwise the model will not be cut.
shearBottomVector2Read/WriteGets of the shear transform of the bottom side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0)
@return of the shear transform of the bottom side, vect
shearTopVector2Read/WriteGets of the shear transform of the top side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0)
@return of the shear transform of the top side, vector sto
radiusTopdoubleRead/WriteGets the radius of cylinder’s top cap.
radiusBottomdoubleRead/WriteGets the radius of cylinder’s bottom cap.
heightdoubleRead/WriteGets the height of the cylinder.
radialSegmentsintRead/WriteGets the radial segments.
heightSegmentsintRead/WriteGets the height segments.
openEndedbooleanRead/WriteGets a value indicating whether this Cylinder open ended.
thetaStartdoubleRead/WriteGets the theta start.
thetaLengthdoubleRead/WriteGets the length of the theta.
castShadowsbooleanRead/WriteGets whether this geometry can cast shadow.
receiveShadowsbooleanRead/WriteGets whether this geometry can receive shadow.
parentNodeNodeRead/WriteGets or sets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanRead/WriteGets or sets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Cylinder()Initializes a new instance of Cylinder class.
Cylinder(radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: boolean)Initializes a new instance of Cylinder class.
getOffsetBottom() → Vector3Gets the vertices transformation offset of the bottom side.
setOffsetBottom(value: Vector3)Sets the offset bottom value.
getOffsetTop() → Vector3Gets the vertices transformation offset of the top side.
setOffsetTop(value: Vector3)Sets the offset top value.
getGenerateFanCylinder() → booleanGets whether to generate the fan-style cylinder when the ThetaLength is less than 2*PI, otherwise the model will not be cut.
setGenerateFanCylinder(value: boolean)Sets the generate fan cylinder value.
getShearBottom() → Vector2Gets of the shear transform of the bottom side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0)
@return of the shear transform of the bottom side, vect
setShearBottom(value: Vector2)Sets the shear bottom value.
getShearTop() → Vector2Gets of the shear transform of the top side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0)
@return of the shear transform of the top side, vector sto
setShearTop(value: Vector2)Sets the shear top value.
getRadiusTop() → doubleGets the radius of cylinder’s top cap.
setRadiusTop(value: double)Sets the radius top value.
getRadiusBottom() → doubleGets the radius of cylinder’s bottom cap.
setRadiusBottom(value: double)Sets the radius bottom value.
getHeight() → doubleGets the height of the cylinder.
setHeight(value: double)Sets the height value.
getRadialSegments() → intGets the radial segments.
setRadialSegments(value: int)Sets the radial segments value.
getHeightSegments() → intGets the height segments.
setHeightSegments(value: int)Sets the height segments value.
getOpenEnded() → booleanGets a value indicating whether this Cylinder open ended.
setOpenEnded(value: boolean)Sets the open ended value.
getThetaStart() → doubleGets the theta start.
setThetaStart(value: double)Sets the theta start value.
getThetaLength() → doubleGets the length of the theta.
setThetaLength(value: double)Sets the theta length value.
toMesh() → MeshConvert current object to mesh
@return The mesh.
getCastShadows() → booleanGets whether this geometry can cast shadow.
setCastShadows(value: boolean)Sets the cast shadows value.
getReceiveShadows() → booleanGets whether this geometry can receive shadow.
setReceiveShadows(value: boolean)Sets the receive shadows value.
Primitive()Initializes a new instance of the Primitive class.
Primitive(name: String)Initializes a new instance of the Primitive class.
Entity(name: String)Calls Entity(name) on this Cylinder instance.
getParentNode() → NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes() → ArrayList<Node>Returns the parent nodes.
getExcluded() → booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxInitializes a new instance of Cylinder class.
getEntityRendererKey() → EntityRendererKeyReturns the entity renderer key.
SceneObject()Calls SceneObject on this Cylinder instance.
SceneObject(name: String)Calls SceneObject(name) on this Cylinder instance.
getScene() → SceneReturns the scene.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
A3DObject(name: String)Calls A3DObject(name) on this Cylinder instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String) → PropertyCalls findProperty(name) on this Cylinder instance.
getProperty(name: String) → ObjectCalls getProperty(name) on this Cylinder instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanCalls removeProperty(name) on this Cylinder instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this Cylinder instance.

See Also

 English