Torus

Overview

Torus is a class in Aspose.3D FOSS for Java. Inherits from: Primitive.

Parameterized torus.

This class provides 40 methods for working with Torus objects in Java programs. Available methods include: A3DObject, Entity, Primitive, SceneObject, Torus, findProperty, getArc, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getName, and 23 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: arc, boundingBox, castShadows, entityRendererKey, excluded, name, and 9 more.

Properties

NameTypeAccessDescription
radiusdoubleRead/WriteGets the radius of the torus.
tubedoubleRead/WriteGets the radius of the tube.
radialSegmentsintRead/WriteGets the radial segments.
tubularSegmentsintRead/WriteGets the tubular segments.
arcdoubleRead/WriteGets the arc.
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
Torus()Initializes a new instance of the Torus class.
Torus(name: String, radius: double, tube: double, radialSegments: int, tubularSegments: int, arc: double)Initializes a new instance of the Torus class.
getRadius() → doubleGets the radius of the torus.
setRadius(value: double)Sets the radius value.
getTube() → doubleGets the radius of the tube.
setTube(value: double)Sets the tube value.
getRadialSegments() → intGets the radial segments.
setRadialSegments(value: int)Sets the radial segments value.
getTubularSegments() → intGets the tubular segments.
setTubularSegments(value: int)Sets the tubular segments value.
getArc() → doubleGets the arc.
setArc(value: double)Sets the arc value.
toMesh() → MeshNot implemented in the FOSS edition — throws at runtime. Calls toMesh on this Torus instance.
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 Torus 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() → BoundingBoxReturns the bounding box.
getEntityRendererKey() → EntityRendererKeyReturns the entity renderer key.
SceneObject()Parameterized torus.
SceneObject(name: String)Calls SceneObject(name) on this Torus instance.
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this Torus instance.
A3DObject(name: String)Calls A3DObject(name) on this Torus instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyInitializes a new instance of the Torus class.
getProperty(name: String) → ObjectCalls getProperty(name) on this Torus instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanGets the radius of the torus.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this Torus instance.

See Also

 English