Class: ColladaMesh

ColladaMesh(geometryId)

Represents a collada mesh tag.

Constructor

new ColladaMesh(geometryId)

Constructs a ColladaMesh
Parameters:
Name Type Description
geometryId String The id of a geometry node
Source:

Methods

parse(element)

Parses and computes the geometry of a mesh. Internal. Applications should not call this function.
Parameters:
Name Type Description
element Node A mesh node.
Source:

parseInputs(element, sources, verticesInputs)

Parses the inputs of a mesh. Internal. Applications should not call this function.
Parameters:
Name Type Description
element Node The node containing the primitives and inputs.
sources Object An object containing the vertices source and stride.
verticesInputs Object An object containing the inputs links.
Source:

parsePolygons(element, sources, verticesInputs, vCount)

Parses the polygons primitive and computes the indices and vertices. Internal. Applications should not call this function.
Parameters:
Name Type Description
element Node The node containing the primitives and inputs.
sources Object An object containing the inputs for vertices, normals and uvs.
verticesInputs Object An object containing the inputs links.
vCount Number Optional parameter, specifies the the vertex count for a polygon
Source:

parseVertices(element, verticesInputs)

Parses the vertices tag of a mesh. Internal. Applications should not call this function.
Parameters:
Name Type Description
element Node The node containing the primitives and inputs.
verticesInputs Object An object in which to save the inputs of the vertices tag.
Source:

transformMeshInfo(mesh, inputs)

Packs the data in the mesh object. Internal. Applications should not call this function.
Parameters:
Name Type Description
mesh Object The mesh that will be returned.
inputs Array The array containing the inputs of the mesh.
Source: