collada.primitive.BoundPrimitive¶
-
class
collada.primitive.BoundPrimitive¶ Bases:
objectA
digraph inheritancee2f7590ba7 { rankdir=LR; size="8.0, 12.0"; "BoundLineSet" [URL="collada.lineset.BoundLineSet.html#collada.lineset.BoundLineSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="A line set bound to a transform matrix and materials mapping."]; "BoundPrimitive" -> "BoundLineSet" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPolygons" [URL="collada.polygons.BoundPolygons.html#collada.polygons.BoundPolygons",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Polygons bound to a transform matrix and materials mapping."]; "BoundPolylist" -> "BoundPolygons" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPolylist" [URL="collada.polylist.BoundPolylist.html#collada.polylist.BoundPolylist",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="A polylist bound to a transform matrix and materials mapping."]; "BoundPrimitive" -> "BoundPolylist" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPrimitive" [URL="#collada.primitive.BoundPrimitive",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="A :class:`collada.primitive.Primitive` bound to a transform matrix"]; "BoundTriangleSet" [URL="collada.triangleset.BoundTriangleSet.html#collada.triangleset.BoundTriangleSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="A triangle set bound to a transform matrix and materials mapping."]; "BoundPrimitive" -> "BoundTriangleSet" [arrowsize=0.5,style="setlinewidth(0.5)"]; }collada.primitive.Primitivebound to a transform matrix and material mapping.-
__init__()¶ x.__init__(…) initializes x; see help(type(x)) for signature
Methods
shapes()Iterate through the items in this primitive. Attributes
normalRead-only numpy.array of size Nx3 where N is the number of normal values in the primitive’s normal source array. normal_indexRead-only numpy.array of size Nx3 where N is the number of vertices in the primitive. texcoord_indexsetRead-only tuple of texture coordinate index arrays. texcoordsetRead-only tuple of texture coordinate arrays. vertexRead-only numpy.array of size Nx3 where N is the number of vertex points in the primitive’s vertex source array. vertex_indexRead-only numpy.array of size Nx3 where N is the number of vertices in the primitive. -
shapes()¶ Iterate through the items in this primitive. The shape returned depends on the primitive type. Examples: Triangle, Polygon.
-
vertex¶ Read-only numpy.array of size Nx3 where N is the number of vertex points in the primitive’s vertex source array. The values will be transformed according to the bound transformation matrix.
-
normal¶ Read-only numpy.array of size Nx3 where N is the number of normal values in the primitive’s normal source array. The values will be transformed according to the bound transformation matrix.
-
texcoordset¶ Read-only tuple of texture coordinate arrays. Each value is a numpy.array of size Nx2 where N is the number of texture coordinates in the primitive’s source array. The values will be transformed according to the bound transformation matrix.
-
vertex_index¶ Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive. To get the actual vertex points, one can use this array to select into the vertex array, e.g.
vertex[vertex_index]. The values will be transformed according to the bound transformation matrix.
-
normal_index¶ Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive. To get the actual normal values, one can use this array to select into the normals array, e.g.
normal[normal_index]. The values will be transformed according to the bound transformation matrix.
-
texcoord_indexset¶ Read-only tuple of texture coordinate index arrays. Each value is a numpy.array of size Nx2 where N is the number of vertices in the primitive. To get the actual texture coordinates, one can use the array to select into the texcoordset array, e.g.
texcoordset[0][texcoord_indexset[0]]would select the first set of texture coordinates. The values will be transformed according to the bound transformation matrix.
-