### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »

# collada.polygons.BoundPolygons

class `collada.polygons.``BoundPolygons`(pl, matrix, materialnodebysymbol)

  Bases: `collada.polylist.BoundPolylist`

  Polygons bound to a transform matrix and materials mapping.

  digraph inheritancee2f7590ba7 { rankdir=LR; size="8.0, 12.0"; "BoundPolylist" [style="setlinewidth(0.5)",URL="collada.polylist.BoundPolylist.html#collada.polylist.BoundPolylist",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A polylist bound to a transform matrix and materials mapping.",height=0.25,shape=box,fontsize=10]; "BoundPrimitive" -> "BoundPolylist" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundLineSet" [style="setlinewidth(0.5)",URL="collada.lineset.BoundLineSet.html#collada.lineset.BoundLineSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A line set bound to a transform matrix and materials mapping.",height=0.25,shape=box,fontsize=10]; "BoundPrimitive" -> "BoundLineSet" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPrimitive" [style="setlinewidth(0.5)",URL="collada.primitive.BoundPrimitive.html#collada.primitive.BoundPrimitive",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A :class:`collada.primitive.Primitive` bound to a transform matrix",height=0.25,shape=box,fontsize=10]; "BoundTriangleSet" [style="setlinewidth(0.5)",URL="collada.triangleset.BoundTriangleSet.html#collada.triangleset.BoundTriangleSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A triangle set bound to a transform matrix and materials mapping.",height=0.25,shape=box,fontsize=10]; "BoundPrimitive" -> "BoundTriangleSet" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPolygons" [style="setlinewidth(0.5)",URL="#collada.polygons.BoundPolygons",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Polygons bound to a transform matrix and materials mapping.",height=0.25,shape=box,fontsize=10]; "BoundPolylist" -> "BoundPolygons" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

  `__init__`(pl, matrix, materialnodebysymbol)

    Create a BoundPolygons from a Polygons, transform and material mapping

  Methods

  `__init__`(pl, matrix, materialnodebysymbol) | Create a BoundPolygons from a Polygons, transform and material mapping
  `polygons`() | Iterate through all the polygons contained in the set.
  `shapes`() | Iterate through all the polygons contained in the set.
  `triangleset`() | This performs a simple triangulation of the polylist using the fanning method.

  Attributes

  `normal` | Read-only numpy.array of size Nx3 where N is the number of normal values in the
  `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
  `vertex_index` | Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.

  `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.

  `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.

  `polygons`()

    Iterate through all the polygons contained in the set.

    Return type: | generator of `collada.polylist.Polygon`

  `shapes`()

    Iterate through all the polygons contained in the set.

    Return type: | generator of `collada.polylist.Polygon`

  `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.

  `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.

  `triangleset`()

    This performs a simple triangulation of the polylist using the fanning method.

    Return type: | `collada.triangleset.BoundTriangleSet`

  `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.

  `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.

### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »