The abstract class from which other classes inherit. Common methods and properties live here.
Position a manifold model for later export.
Track created GLTFNodes for top level scripts.
Include an imported model for visualization purposes.
Map various types to a flat array of GLTFNodes
Get a list of GLTF nodes that have been created in this model.
Clear the list of cached GLTF nodes.
Nodes enable ManifoldCAD users to build models that are beyond a single Manifold object. This can range from assembling models to animation to even including non-manifold objects from other sources.
ManifoldCAD uses the
GLTFNodeclass to manage objects that will be exported into a gltf-transform document.It's important to note that gltf-transform also has a
Nodeclass, representing objects that are already part of a gltf-transform document. That class can mostly be seen in import and export related code.This leads to the confusing case where,
NonManifoldGLTFNodeis both. It is a manifoldCAD node that contains an imported gltf-transformNode. It specifies how that gltf-transform node will be scaled, rotated and translated when it is eventually copied into a new gltf-transform document at export time.