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

NameTypeAccessDescription
visiblebooleanRead/WriteIndicates whether the geometry is visible in the scene
castShadowsbooleanRead/WriteIndicates whether the geometry casts shadows
receiveShadowsbooleanRead/WriteIndicates whether the geometry receives shadows
vertexElementsVertexElement[]ReadProvides the list of vertex elements attached to the geometry
controlPointsVector4[]Read/WriteProvides the list of control points (Vector4) of the geometry

Methods

SignatureDescription
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)VertexElementCreates a VertexElement of the given type with optional mapping and reference modes
createElementUV(uvMapping: TextureMapping, mappingMode: MappingMode | null, referenceMode: ReferenceMode | null)VertexElementUVCreates 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 | nullReturns the VertexElement of the specified type or null if not present
getVertexElementOfUV(textureMapping: TextureMapping)VertexElementUV | nullReturns the UV VertexElement for the given texture mapping or null
removeProperty(_prop: Property | string)booleanRemoves 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()anyNot implemented in the FOSS edition — throws at runtime. Returns a key used for entity rendering

See Also