Shape
Overview
Shape is a class in Aspose.3D FOSS for Java.
Inherits from: Geometry.
The shape describes the deformation on a set of control points, which is similar to the cluster deformer in Maya.
This class provides 45 methods for working with Shape objects in Java programs.
Available methods include: A3DObject, Entity, Geometry, SceneObject, Shape, addDeformer, addElement, createElement, createElementUV, findProperty, fromControlPoints, getBoundingBox, and 26 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 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
indices | List<Integer> | Read | Gets the indices. |
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 |
|---|---|
Shape() | Initializes a new instance of the Shape class. |
Shape(name: String) | Initializes a new instance of the Shape class. |
fromControlPoints() → Shape | Create a shape with specified control points with a default indices. |
getIndices() → List<Integer> | Gets the indices. |
Geometry() | Calls Geometry on this Shape instance. |
Geometry(name: String) | Calls Geometry(name) on this Shape 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) | Sets the receive shadows value. |
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 Shape instance. |
createElement(type: VertexElementType) → VertexElement | Calls createElement(type) on this Shape instance. |
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElement | Calls createElement(type, mappingMode, referenceMode) on this Shape instance. |
addElement(element: VertexElement) | Calls addElement(element) on this Shape instance. |
addDeformer(deformer: Deformer) | Adds a deformer to this geometry and sets the owner reference. |
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUV | Calls getVertexElementOfUV(mapping) on this Shape instance. |
createElementUV(mapping: TextureMapping) → VertexElementUV | Calls createElementUV(mapping) on this Shape instance. |
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUV | Calls createElementUV(mapping, mappingMode, referenceMode) on this Shape instance. |
getDeformers2() → java.util.Collection<T> | Returns the deformers2. |
Entity(name: String) | Calls Entity(name) on this Shape instance. |
getParentNode() → Node | Initializes a new instance of the Shape class. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Initializes a new instance of the Shape class. |
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() | Calls SceneObject on this Shape instance. |
SceneObject(name: String) | Calls SceneObject(name) on this Shape instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Shape instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Shape instance. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Shape instance. |
getProperty(name: String) → Object | Create a shape with specified control points with a default indices. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Shape instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Shape instance. |