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
| Name | Type | Access | Description |
|---|---|---|---|
offsetBottom | Vector3 | Read | Gets the vertices transformation offset of the bottom side. |
offsetTop | Vector3 | Read | Gets the vertices transformation offset of the top side. |
generateFanCylinder | boolean | Read | Gets whether to generate the fan-style cylinder when the ThetaLength is less than 2*PI, otherwise the model will not be cut. |
shearBottom | Vector2 | Read | Gets 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 | |||
shearTop | Vector2 | Read | Gets 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 | |||
radiusTop | double | Read | Gets the radius of cylinder’s top cap. |
radiusBottom | double | Read | Gets the radius of cylinder’s bottom cap. |
height | double | Read | Gets the height of the cylinder. |
radialSegments | int | Read | Gets the radial segments. |
heightSegments | int | Read | Gets the height segments. |
openEnded | boolean | Read | Gets a value indicating whether this Cylinder open ended. |
thetaStart | double | Read | Gets the theta start. |
thetaLength | double | Read | Gets the length of the theta. |
castShadows | boolean | Read | Gets whether this geometry can cast shadow. |
receiveShadows | boolean | Read | Gets whether this geometry can receive shadow. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
entityRendererKey | EntityRendererKey | Read | Gets the entity renderer key. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
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() → Vector3 | Gets the vertices transformation offset of the bottom side. |
setOffsetBottom(value: Vector3) | Sets the offset bottom value. |
getOffsetTop() → Vector3 | Gets the vertices transformation offset of the top side. |
setOffsetTop(value: Vector3) | Sets the offset top value. |
getGenerateFanCylinder() → boolean | Gets 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() → Vector2 | Gets 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() → Vector2 | Gets 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() → double | Gets the radius of cylinder’s top cap. |
setRadiusTop(value: double) | Sets the radius top value. |
getRadiusBottom() → double | Gets the radius of cylinder’s bottom cap. |
setRadiusBottom(value: double) | Sets the radius bottom value. |
getHeight() → double | Gets the height of the cylinder. |
setHeight(value: double) | Sets the height value. |
getRadialSegments() → int | Gets the radial segments. |
setRadialSegments(value: int) | Sets the radial segments value. |
getHeightSegments() → int | Gets the height segments. |
setHeightSegments(value: int) | Sets the height segments value. |
getOpenEnded() → boolean | Gets a value indicating whether this Cylinder open ended. |
setOpenEnded(value: boolean) | Sets the open ended value. |
getThetaStart() → double | Gets the theta start. |
setThetaStart(value: double) | Sets the theta start value. |
getThetaLength() → double | Gets the length of the theta. |
setThetaLength(value: double) | Sets the theta length value. |
toMesh() → Mesh | Convert current object to mesh |
| @return The mesh. | |
getCastShadows() → boolean | Gets whether this geometry can cast shadow. |
setCastShadows(value: boolean) | Sets the cast shadows value. |
getReceiveShadows() → boolean | Gets 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() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Returns the parent nodes. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getBoundingBox() → BoundingBox | Initializes a new instance of Cylinder class. |
getEntityRendererKey() → EntityRendererKey | Returns the entity renderer key. |
SceneObject() | Calls SceneObject on this Cylinder instance. |
SceneObject(name: String) | Calls SceneObject(name) on this Cylinder instance. |
getScene() → Scene | Returns 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() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Initializes a new instance of Cylinder class. |
findProperty(name: String) → Property | Calls findProperty(name) on this Cylinder instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Cylinder instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Cylinder instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Cylinder instance. |