Geometry
Overview
Geometry is a class in Aspose.3D FOSS for Java.
Inherits from: Entity.
Geometry.Geometry creates a new Geometry with default name.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
visible | boolean | Read | Property indicates whether the geometry is rendered |
castShadows | boolean | Read | Property indicates if the geometry casts shadows |
receiveShadows | boolean | Read | Property indicates if the geometry receives shadows |
controlPoints | java.util.List<Vector4> | Read | Property provides access to the geometry’s control point list |
vertexElements | java.util.List<VertexElement> | Read | Property provides access to the geometry’s vertex element list |
deformers | java.util.List<Deformer> | Read | Property provides access to the geometry’s deformer list |
deformers2 | java.util.Collection<T> | Read | Property provides access to a generic collection of deformers |
Methods
| Signature | Description |
|---|---|
Geometry() | Creates a new Geometry with default name |
Geometry(name: String) | |
getVisible() → boolean | Returns true if the geometry is visible in the scene |
setVisible(value: boolean) | Sets the geometry’s visibility flag to the given value |
getCastShadows() → boolean | Returns true if the geometry casts shadows |
setCastShadows(value: boolean) | Sets whether the geometry casts shadows |
getReceiveShadows() → boolean | Returns true if the geometry receives shadows |
setReceiveShadows(value: boolean) | Sets whether the geometry receives shadows |
getControlPoints() → java.util.List<Vector4> | Returns the list of control point vectors defining the geometry |
getVertexElements() → java.util.List<VertexElement> | Returns the list of vertex elements associated with the geometry |
getDeformers() → java.util.List<Deformer> | Returns the list of deformers applied to the geometry |
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 | |
addElement(element: VertexElement) | Adds the provided vertex element to the geometry’s element collection |
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 | |
getDeformers2() → java.util.Collection<T> | Returns a collection of deformers of generic type T |