GLTFContent.add_mesh_to_node
- GLTFContent.add_mesh_to_node(node, mesh)[source]
Adds an existing mesh to
node
ifmesh
is a valid mesh key, or throughadd_mesh
creates and adds a mesh tonode
.- Parameters
node (
compas.files.GLTFNode
)mesh (Union[
compas.datastructures.Mesh
, int])
- Returns