Geometry
Overview
Geometry is a class in Aspose.3D FOSS for Java.
Inherits from: Entity.
Geometry objects expose control points via getControlPoints() and allow creation of custom vertex elements with createElement(type).
This class provides 41 methods for working with Geometry objects in Java programs.
Available methods include: A3DObject, Entity, Geometry, SceneObject, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows, getControlPoints, and 23 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 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
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 |
|---|---|
Geometry() | Creates a new Geometry with default name |
Geometry(name: String) | Calls Geometry(name) on this Geometry 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 | Returns the vertex element of the specified type, or null if absent |
createElement(type: VertexElementType) → VertexElement | Creates a new vertex element of the given type with default mapping and reference modes |
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElement | Calls createElement(type, mappingMode, referenceMode) on this Geometry instance. |
addElement(element: VertexElement) | Adds the provided vertex element to the geometry’s element collection |
addDeformer(deformer: Deformer) | Adds a deformer to this geometry and sets the owner reference. |
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUV | Returns the UV vertex element for the specified texture mapping |
createElementUV(mapping: TextureMapping) → VertexElementUV | Creates a UV vertex element for the given texture mapping with default modes |
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUV | Calls createElementUV(mapping, mappingMode, referenceMode) on this Geometry instance. |
getDeformers2() → java.util.Collection<T> | Returns the deformers2. |
Entity(name: String) | Calls Entity(name) on this Geometry 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() | Calls SceneObject on this Geometry instance. |
SceneObject(name: String) | Calls SceneObject(name) on this Geometry instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Geometry instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Geometry 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 Geometry instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Geometry instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Geometry instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Geometry instance. |