ModelInterface interface
Contract for models.
Signature:
interface ModelInterface
Remarks
Models are a fundamental part of how the Core3D SDK navigates 3D objects. They're an abstraction over the adapter's underlying 3D object representation.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
The zone recipient filter. |
Methods
Method |
Description |
---|---|
Add a node to this model. | |
Dispose of this model and internals. | |
Find a mesh by its URI. | |
Find a mesh by its URN. | |
Given an internal object (as understood by the adapter), try to find a matching node. | |
Find a node by its URI. | |
Find a node by its URN. | |
Find a zone by its URI. | |
Find a zone by its URN. | |
Compute the combined area of all node bounding boxes in UV units. | |
Get a map of { node URI -> computed area of bounding box }. The values are in UV units. | |
Return the URI of the largest mesh by area. | |
Get the ratio. | |
List all meshes within this model. | |
List all zones within this model. | |
Load and prepare internals. | |
Parse an array buffer and prepare internals | |
Remove a node from this model. | |
Set the model ratio. | |
Set the model variant. | |
Set the zone recipient filter. |