mesh

clay.util. mesh

Source:

Methods

# (static) merge(meshes, applyWorldTransform) → {clay.Mesh}

Source:

Merge multiple meshes to one. Note that these meshes must have the same material

Parameters:
Name Type Description
meshes Array.<clay.Mesh>
applyWorldTransform boolean
Returns:
Type
clay.Mesh

# (static) splitByJoints(mesh, maxJointNumber, inPlace) → {clay.Node}

Source:

Split mesh into sub meshes, each mesh will have maxJointNumber joints.

Parameters:
Name Type Description
mesh clay.Mesh
maxJointNumber number
inPlace boolean
Returns:
Type
clay.Node