Geometry
Overview
Geometry is a class in Aspose.3D FOSS for Typescript.
Inherits from: Entity.
Geometry.constructor creates a Geometry with an optional name.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
visible | boolean | Read/Write | Indicates whether the geometry is visible in the scene |
castShadows | boolean | Read/Write | Indicates whether the geometry casts shadows |
receiveShadows | boolean | Read/Write | Indicates whether the geometry receives shadows |
vertexElements | VertexElement[] | Read | Provides the list of vertex elements attached to the geometry |
controlPoints | Vector4[] | Read/Write | Provides the list of control points (Vector4) of the geometry |
Methods
| Signature | Description |
|---|---|
constructor(name: string | null) | Creates a Geometry with an optional name |
addControlPoint(point: Vector4) | Adds a Vector4 point to the geometry’s control points list |
createElement(elementType: VertexElementType, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null) → VertexElement | Creates a VertexElement of the given type with optional mapping and reference modes |
createElementUV(uvMapping: TextureMapping, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null) → VertexElementUV | Creates a UV VertexElement for the specified texture mapping and optional modes |
addElement(element: VertexElement) | Adds a VertexElement to the geometry’s vertexElements collection |
getElement(elementType: VertexElementType) → VertexElement | null | Returns the VertexElement of the specified type or null if not present |
getVertexElementOfUV(textureMapping: TextureMapping) → VertexElementUV | null | Returns the UV VertexElement for the given texture mapping or null |
removeProperty(_prop: Property | string) → boolean | Removes a property by object or name and returns true if removal succeeded |
getProperty(_property: string) → any | |
setProperty(_property: string, _value: any) | |
findProperty(_property: string) → Property | null | |
getBoundingBox() → any | |
getEntityRendererKey() → any | Not implemented in the FOSS edition — throws at runtime. Returns a key used for entity rendering |