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

NameTypeAccessDescription
widthSegmentsintReadGets or sets the width segments.
heightSegmentsintReadGets or sets the height segments.
phiStartdoubleReadGets or sets the phi start.
phiLengthdoubleReadGets or sets the length of phi.
thetaStartdoubleReadGets or sets the theta start.
thetaLengthdoubleReadGets or sets the length of theta.
radiusdoubleReadGets or sets radius of the sphere.
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.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
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()intGets or sets the width segments.
setWidthSegments(value: int)Sets the width segments value.
getHeightSegments()intGets or sets the height segments.
setHeightSegments(value: int)Sets the height segments value.
getPhiStart()doubleGets or sets the phi start.
setPhiStart(value: double)Sets the phi start value.
getPhiLength()doubleGets or sets the length of phi.
setPhiLength(value: double)Sets the phi length value.
getThetaStart()doubleGets or sets the theta start.
setThetaStart(value: double)Sets the theta start value.
getThetaLength()doubleGets or sets the length of theta.
setThetaLength(value: double)Sets the theta length value.
getRadius()doubleGets or sets radius of the sphere.
setRadius(value: double)Sets the radius value.
toMesh()MeshConvert current object to mesh.
Geometry()Calls Geometry on this Sphere instance.
Geometry(name: String)Calls Geometry(name) on this Sphere instance.
getVisible()booleanReturns the visible.
setVisible(value: boolean)Sets the visible value.
getCastShadows()booleanReturns the cast shadows.
setCastShadows(value: boolean)Sets the cast shadows value.
getReceiveShadows()booleanReturns 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)VertexElementCalls getElement(type) on this Sphere instance.
createElement(type: VertexElementType)VertexElementGets or sets the height segments.
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode)VertexElementCalls 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)VertexElementUVCalls getVertexElementOfUV(mapping) on this Sphere instance.
createElementUV(mapping: TextureMapping)VertexElementUVCalls createElementUV(mapping) on this Sphere instance.
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode)VertexElementUVCalls 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()NodeInitializes 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()booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxReturns the bounding box.
getEntityRendererKey()EntityRendererKeyReturns the entity renderer key.
SceneObject()Parameterized sphere.
SceneObject(name: String)Calls SceneObject(name) on this Sphere instance.
getScene()SceneReturns the scene.
A3DObject()Calls A3DObject on this Sphere instance.
A3DObject(name: String)Calls A3DObject(name) on this Sphere instance.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionInitializes a new instance of Sphere class with specified radius.
findProperty(name: String)PropertyCalls findProperty(name) on this Sphere instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Sphere instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Sphere instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this Sphere instance.

See Also

 English