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
| Name | Type | Access | Description |
|---|---|---|---|
radius | double | Read | Gets the radius of the torus. |
tube | double | Read | Gets the radius of the tube. |
radialSegments | int | Read | Gets the radial segments. |
tubularSegments | int | Read | Gets the tubular segments. |
arc | double | Read | Gets the arc. |
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 |
|---|---|
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() → double | Gets the radius of the torus. |
setRadius(value: double) | Sets the radius value. |
getTube() → double | Gets the radius of the tube. |
setTube(value: double) | Sets the tube value. |
getRadialSegments() → int | Gets the radial segments. |
setRadialSegments(value: int) | Sets the radial segments value. |
getTubularSegments() → int | Gets the tubular segments. |
setTubularSegments(value: int) | Sets the tubular segments value. |
getArc() → double | Gets the arc. |
setArc(value: double) | Sets the arc value. |
toMesh() → Mesh | Not implemented in the FOSS edition — throws at runtime. Calls toMesh on this Torus instance. |
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 Torus 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 | Returns the bounding box. |
getEntityRendererKey() → EntityRendererKey | Returns the entity renderer key. |
SceneObject() | Parameterized torus. |
SceneObject(name: String) | Calls SceneObject(name) on this Torus instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Torus instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Torus instance. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Initializes a new instance of the Torus class. |
getProperty(name: String) → Object | Calls getProperty(name) on this Torus instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Gets the radius of the torus. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Torus instance. |