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

NameTypeAccessDescription
indicesList<Integer>ReadGets the indices.
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
Shape()Initializes a new instance of the Shape class.
Shape(name: String)Initializes a new instance of the Shape class.
fromControlPoints() → ShapeCreate 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() → 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)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) → VertexElementCalls getElement(type) on this Shape instance.
createElement(type: VertexElementType) → VertexElementCalls createElement(type) on this Shape instance.
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementCalls 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) → VertexElementUVCalls getVertexElementOfUV(mapping) on this Shape instance.
createElementUV(mapping: TextureMapping) → VertexElementUVCalls createElementUV(mapping) on this Shape instance.
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUVCalls 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() → NodeInitializes 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() → booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxReturns the bounding box.
getEntityRendererKey() → EntityRendererKeyReturns the entity renderer key.
SceneObject()Calls SceneObject on this Shape instance.
SceneObject(name: String)Calls SceneObject(name) on this Shape instance.
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this Shape instance.
A3DObject(name: String)Calls A3DObject(name) on this Shape instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this Shape instance.
getProperty(name: String) → ObjectCreate a shape with specified control points with a default indices.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanCalls removeProperty(name) on this Shape instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this Shape instance.

See Also

 English