Geometry
Overview
Geometry is a class in Aspose.3D FOSS for Java.
Inherits from: Entity.
Geometry.Geometry creates a new Geometry with default name.
This class provides 16 methods for working with Geometry objects in Java programs.
Available methods include: Geometry, addElement, createElement, createElementUV, getCastShadows, getControlPoints, getDeformers, getDeformers2, getElement, getReceiveShadows, getVertexElementOfUV, getVertexElements, and 4 additional methods.
All exported members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: castShadows, controlPoints, deformers, deformers2, receiveShadows, vertexElements, and 1 more.
Description
Geometry is a class in the Aspose.3D FOSS library for Java that exposes 32 methods and 15 properties for programmatic use. It extends Entity, inheriting shared functionality from its parent type.
Core capabilities include: boolean; boolean; boolean. These operations enable developers to integrate geometry functionality directly into Java applications.
The class also provides the visible property (gets the visible), the castShadows property (gets the cast shadows), the receiveShadows property (gets the receive shadows).
The class offers 5 constructor overloads, allowing flexible initialization depending on the calling context.
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. |
Methods
| Signature | Description |
|---|---|
Geometry() | Creates a new Geometry with default name |
Geometry(name: String) | |
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 | |
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 the deformers2. |