collada.triangleset.BoundTriangleSet

class collada.triangleset.BoundTriangleSet(ts, matrix, materialnodebysymbol)

A triangle set bound to a transform matrix and materials mapping.

__init__(ts, matrix, materialnodebysymbol)

Create a bound triangle set from a triangle set, transform and material mapping. This gets created when a triangle set is instantiated in a scene. Do not create this manually.

Methods

__init__(ts, matrix, materialnodebysymbol)

Create a bound triangle set from a triangle set, transform and material mapping.

generateNormals()

If normals is None or you wish for normals to be recomputed, call this method to recompute them.

shapes()

Iterate through all the triangles contained in the set.

triangles()

Iterate through all the triangles contained in the set.

Attributes

normal

Read-only numpy.array of size Nx3 where N is the number of normal values in the primitive's normal source array.

normal_index

Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.

texcoord_indexset

Read-only tuple of texture coordinate index arrays.

texcoordset

Read-only tuple of texture coordinate arrays.

vertex

Read-only numpy.array of size Nx3 where N is the number of vertex points in the primitive's vertex source array.

vertex_index

Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.