Cylinder

Overview

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

Parameterized Cylinder.

This class provides 66 methods for working with Cylinder objects in Java programs. Available methods include: A3DObject, Cylinder, Entity, Geometry, SceneObject, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows, and 50 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, castShadows, controlPoints, deformers, deformers2, excluded, and 21 more.

Properties

NameTypeAccessDescription
offsetBottomVector3ReadGets or sets the vertices transformation offset of the bottom side.
offsetTopVector3ReadGets or sets the vertices transformation offset of the top side.
generateFanCylinderbooleanReadGets or sets whether to generate fan-style cylinder when ThetaLength is less than 2*PI.
shearBottomVector2ReadGets or sets shear transform of the bottom side.
shearTopVector2ReadGets or sets shear transform of the top side.
radiusTopdoubleReadGets or sets radius of cylinder’s top cap.
radiusBottomdoubleReadGets or sets radius of cylinder’s bottom cap.
heightdoubleReadGets or sets height of the cylinder.
radialSegmentsintReadGets or sets radial segments.
heightSegmentsintReadGets or sets height segments.
openEndedbooleanReadGets or sets a value indicating whether this cylinder is open ended.
thetaStartdoubleReadGets or sets theta start.
thetaLengthdoubleReadGets or sets length of theta.
visiblebooleanReadGets the visible.
castShadowsbooleanReadGets the cast shadows.
receiveShadowsbooleanReadGets the receive shadows.
controlPointsjava.util.List<Vector4>ReadGets the control points.
vertexElementsjava.util.List<VertexElement>ReadGets the vertex elements.
deformersjava.util.List<Deformer>ReadGets the deformers.
deformers2java.util.Collection<T>ReadGets the deformers2.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Cylinder()Initializes a new instance of Cylinder class.
Cylinder(radius: double, height: double)Initializes a new instance of Cylinder class.
Cylinder(radiusTop: double, radiusBottom: double, height: double)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.
Cylinder(name: String, radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: boolean, thetaStart: double, thetaLength: double)Initializes a new instance of Cylinder class.
getOffsetBottom()Vector3Gets or sets the vertices transformation offset of the bottom side.
setOffsetBottom(value: Vector3)Sets the offset bottom value.
getOffsetTop()Vector3Gets or sets the vertices transformation offset of the top side.
setOffsetTop(value: Vector3)Sets the offset top value.
getGenerateFanCylinder()booleanGets or sets whether to generate fan-style cylinder when ThetaLength is less than 2*PI.
setGenerateFanCylinder(value: boolean)Sets the generate fan cylinder value.
getShearBottom()Vector2Gets or sets shear transform of the bottom side.
setShearBottom(value: Vector2)Sets the shear bottom value.
getShearTop()Vector2Gets or sets shear transform of the top side.
setShearTop(value: Vector2)Sets the shear top value.
getRadiusTop()doubleGets or sets radius of cylinder’s top cap.
setRadiusTop(value: double)Sets the radius top value.
getRadiusBottom()doubleGets or sets radius of cylinder’s bottom cap.
setRadiusBottom(value: double)Sets the radius bottom value.
getHeight()doubleGets or sets height of the cylinder.
setHeight(value: double)Sets the height value.
getRadialSegments()intGets or sets radial segments.
setRadialSegments(value: int)Sets the radial segments value.
getHeightSegments()intGets or sets height segments.
setHeightSegments(value: int)Sets the height segments value.
getOpenEnded()booleanGets or sets a value indicating whether this cylinder is open ended.
setOpenEnded(value: boolean)Sets the open ended value.
getThetaStart()doubleGets or sets theta start.
setThetaStart(value: double)Sets the theta start value.
getThetaLength()doubleGets or sets length of theta.
setThetaLength(value: double)Sets the theta length value.
toMesh()MeshConvert current object to mesh.
Geometry()Calls Geometry on this Cylinder instance.
getVisible()booleanReturns the visible.
setVisible(value: boolean)Sets the visible value.
getCastShadows()booleanReturns the cast shadows.
setCastShadows(value: boolean)Initializes a new instance of Box class.
getReceiveShadows()booleanReturns the receive shadows.
setReceiveShadows(value: boolean)Initializes a new instance of Cylinder class.
getControlPoints()java.util.List<Vector4>Returns the control points.
getVertexElements()java.util.List<VertexElement>Returns the vertex elements.
getDeformers()java.util.List<Deformer>Returns the deformers.
getElement(type: VertexElementType)VertexElementGets or sets width segments.
createElement(type: VertexElementType)VertexElementGets or sets the height segments.
addElement(element: VertexElement)Calls addElement(element) on this Cylinder instance.
addDeformer(deformer: Deformer)Adds a deformer to this geometry and sets the owner reference.
getVertexElementOfUV(mapping: TextureMapping)VertexElementUVCalls getVertexElementOfUV(mapping) on this Cylinder instance.
createElementUV(mapping: TextureMapping)VertexElementUVCalls createElementUV(mapping) on this Cylinder instance.
getDeformers2()java.util.Collection<T>Returns the deformers2.
Entity()NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getParentNode()NodeConstructor of instance.
setParentNode(value: Node)The Boolean operator used in the operation to create the result mesh.
getParentNodes()ArrayList<Node>Protected constructor to allow derived classes to set name.
getExcluded()booleanThe Boolean operator used in the operation to create the result mesh.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxThe first operand of the Boolean operator.
SceneObject()Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances.
getScene()SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English