Geometry
Overview
Geometry is a class in Aspose.3D FOSS for .NET.
Inherits from: Entity.
The base class of all renderable geometric objects (like Mesh, Box, Cylinder and etc.).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Visible | bool | Read/Write | Gets or sets a Boolean indicating whether the geometry is visible |
Deformers | IList<Deformer> | Read | Gets the list of Deformer objects applied to the geometry |
ControlPoints | IList<Vector4> | Read | Gets the list of control point vectors defining the geometry’s shape |
CastShadows | bool | Read/Write | Gets or sets a Boolean indicating whether the geometry casts shadows |
ReceiveShadows | bool | Read/Write | |
VertexElements | IList<VertexElement> | Read | Gets the collection of vertex elements that describe the geometry’s vertex data |
Methods
| Signature | Description |
|---|---|
GetDeformers() | Not implemented in the FOSS edition — throws at runtime. Gets all deformers |
GetElement(type: VertexElementType) | Gets a vertex element with specified type |
GetVertexElementOfUV(textureMapping: TextureMapping) | Gets a VertexElementUV instance with given texture mapping type |
CreateElement(type: VertexElementType) | Creates a vertex element with specified type and add it to geometry. |
AddElement(element: VertexElement) | Adds an existing vertex element to current geometry |
CreateElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) | Creates a vertex element with specified type and add it to geometry. |
CreateElementUV(uvMapping: TextureMapping) | Creates a VertexElementUV with given texture mapping type. |
CreateElementUV(uvMapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) | Creates a VertexElementUV with given texture mapping type. |