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

NameTypeAccessDescription
parentNodesNode[]ReadGets the parent nodes.
parentNodeNode | undefinedRead/WriteGets the parent node.
excludedbooleanRead/WriteGets the excluded.
sceneScene | nullRead/WriteGets the scene.
namestringRead/WriteGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
constructor(name: string)Calls constructor(name) on this Entity instance.
getBoundingBox()BoundingBoxNot implemented in the FOSS edition — throws at runtime. Returns the bounding box.
getEntityRendererKey()anyNot implemented in the FOSS edition — throws at runtime. Returns the entity renderer key.
findProperty(propertyName: string)Property | nullCalls findProperty(propertyName) on this Entity instance.
getProperty(property: string)anyCalls getProperty(property) on this Entity instance.
setProperty(property: string, value: any)Sets the property value.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this Entity instance.
toString()stringCalls toString on this Entity instance.

See Also

 English