Entity
Overview
Entity is a class in Aspose.3D FOSS for TypeScript.
Inherits from: SceneObject.
Entity.getBoundingBox returns the entity’s axis-aligned bounding box.
This class declares 8 methods for Entity objects in TypeScript programs.
Available methods include: constructor, findProperty, getBoundingBox, getEntityRendererKey, getProperty, removeProperty, setProperty, toString.
Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.
Properties: excluded, name, parentNode, parentNodes, properties, scene.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
parentNodes | Node[] | Read | Gets the parent nodes. |
parentNode | Node | undefined | Read/Write | Gets the parent node. |
excluded | boolean | Read/Write | Gets the excluded. |
scene | Scene | null | Read/Write | Gets the scene. |
name | string | Read/Write | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
constructor(name: string) | Calls constructor(name) on this Entity instance. |
getBoundingBox() → BoundingBox | Not implemented in the FOSS edition — throws at runtime. Returns the bounding box. |
getEntityRendererKey() → any | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
findProperty(propertyName: string) → Property | null | Calls findProperty(propertyName) on this Entity instance. |
getProperty(property: string) → any | Calls getProperty(property) on this Entity instance. |
setProperty(property: string, value: any) | Sets the property value. |
removeProperty(property: string | Property) → boolean | Calls removeProperty(property) on this Entity instance. |
toString() → string | Calls toString on this Entity instance. |