Sphere
Overview
Sphere is a class in Aspose.3D FOSS for Java.
Inherits from: Geometry, IMeshConvertible.
Parameterized sphere.
This class provides 60 methods for working with Sphere objects in Java programs.
Available methods include: A3DObject, Entity, Geometry, SceneObject, Sphere, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows, 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, controlPoints, deformers, deformers2, entityRendererKey, and 16 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
widthSegments | int | Read | Gets or sets the width segments. |
heightSegments | int | Read | Gets or sets the height segments. |
phiStart | double | Read | Gets or sets the phi start. |
phiLength | double | Read | Gets or sets the length of phi. |
thetaStart | double | Read | Gets or sets the theta start. |
thetaLength | double | Read | Gets or sets the length of theta. |
radius | double | Read | Gets or sets radius of the sphere. |
visible | boolean | Read | Gets the visible. |
castShadows | boolean | Read | Gets the cast shadows. |
receiveShadows | boolean | Read | Gets the receive shadows. |
controlPoints | java.util.List<Vector4> | Read | Gets the control points. |
vertexElements | java.util.List<VertexElement> | Read | Gets the vertex elements. |
deformers | java.util.List<Deformer> | Read | Gets the deformers. |
deformers2 | java.util.Collection<T> | Read | Gets the deformers2. |
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 |
|---|---|
Sphere() | Initializes a new instance of Sphere with default radius 1. |
Sphere(radius: double) | Initializes a new instance of Sphere class with specified radius. |
Sphere(radius: double, widthSegments: int, heightSegments: int) | Initializes a new instance of Sphere class with specified radius, width segments and height segments. |
Sphere(name: String, radius: double, widthSegments: int, heightSegments: int, phiStart: double, phiLength: double, thetaStart: double, thetaLength: double) | Initializes a new instance of Sphere class. |
getWidthSegments() → int | Gets or sets the width segments. |
setWidthSegments(value: int) | Sets the width segments value. |
getHeightSegments() → int | Gets or sets the height segments. |
setHeightSegments(value: int) | Sets the height segments value. |
getPhiStart() → double | Gets or sets the phi start. |
setPhiStart(value: double) | Sets the phi start value. |
getPhiLength() → double | Gets or sets the length of phi. |
setPhiLength(value: double) | Sets the phi length value. |
getThetaStart() → double | Gets or sets the theta start. |
setThetaStart(value: double) | Sets the theta start value. |
getThetaLength() → double | Gets or sets the length of theta. |
setThetaLength(value: double) | Sets the theta length value. |
getRadius() → double | Gets or sets radius of the sphere. |
setRadius(value: double) | Sets the radius value. |
toMesh() → Mesh | Convert current object to mesh. |
Geometry() | Calls Geometry on this Sphere instance. |
Geometry(name: String) | Calls Geometry(name) on this Sphere instance. |
getVisible() → boolean | Returns the visible. |
setVisible(value: boolean) | Sets the visible value. |
getCastShadows() → boolean | Returns the cast shadows. |
setCastShadows(value: boolean) | Sets the cast shadows value. |
getReceiveShadows() → boolean | Returns the receive shadows. |
setReceiveShadows(value: boolean) | Initializes a new instance of Sphere 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) → VertexElement | Calls getElement(type) on this Sphere instance. |
createElement(type: VertexElementType) → VertexElement | Gets or sets the height segments. |
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElement | Calls createElement(type, mappingMode, referenceMode) on this Sphere instance. |
addElement(element: VertexElement) | Gets or sets the theta start. |
addDeformer(deformer: Deformer) | Adds a deformer to this geometry and sets the owner reference. |
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUV | Calls getVertexElementOfUV(mapping) on this Sphere instance. |
createElementUV(mapping: TextureMapping) → VertexElementUV | Calls createElementUV(mapping) on this Sphere instance. |
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUV | Calls createElementUV(mapping, mappingMode, referenceMode) on this Sphere instance. |
getDeformers2() → java.util.Collection<T> | Returns the deformers2. |
Entity(name: String) | Calls Entity(name) on this Sphere instance. |
getParentNode() → Node | Initializes a new instance of Sphere with default radius 1. |
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 sphere. |
SceneObject(name: String) | Calls SceneObject(name) on this Sphere instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Sphere instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Sphere instance. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Initializes a new instance of Sphere class with specified radius. |
findProperty(name: String) → Property | Calls findProperty(name) on this Sphere instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Sphere instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Sphere instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Sphere instance. |