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.

Methods

Method

Description

add(node)

Add a node to this model.

dispose()

Dispose of this model and internals.

findMeshByUri(uri)

Find a mesh by its URI.

findMeshByUrn(urn)

Find a mesh by its URN.

findNodeByInternalObject(object)

Given an internal object (as understood by the adapter), try to find a matching node.

findNodeByUri(uri)

Find a node by its URI.

findNodeByUrn(urn)

Find a node by its URN.

findZoneByUri(uri)

Find a zone by its URI.

findZoneByUrn(urn)

Find a zone by its URN.

getArea()

Compute the combined area of all node bounding boxes in UV units.

getAreaMap()

Get a map of { node URI -> computed area of bounding box }. The values are in UV units.

getLargestMesh()

Return the URI of the largest mesh by area.

getRatio()

Get the ratio.

listMeshes()

List all meshes within this model.

listZones()

List all zones within this model.

load()

Load and prepare internals.

parse(data)

Parse an array buffer and prepare internals

remove(node)

Remove a node from this model.

setRatio(ratio)

Set the model ratio.

setVariant(variant)

Set the model variant.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.