Bases: collada.DaeObject
A class containing the data coming from a COLLADA <geometry> tag
Create a geometry instance
| Parameters: |
|
|---|
Methods
| __init__(collada, id, name, sourcebyid[, ...]) | Create a geometry instance |
| bind(matrix, materialnodebysymbol) | Binds this geometry to a transform matrix and material mapping. |
| createLineSet(indices, inputlist, materialid) | Create a set of lines for use in this geometry instance. |
| createPolylist(indices, vcounts, inputlist, ...) | Create a polylist for use with this geometry instance. |
| createPolygons(indices, inputlist, materialid) | Create a polygons for use with this geometry instance. |
| createTriangleSet(indices, inputlist, materialid) | Create a set of triangles for use in this geometry instance. |
| load(collada, localscope, node) | |
| save() | Saves the geometry back to xmlnode |
The collada.Collada object this geometry belongs to
The unique string identifier for the geometry
The text string naming the geometry
A boolean indicating whether or not the geometry should be rendered double sided
A dictionary containing collada.source.Source objects indexed by their id.
List of primitives (base type collada.primitive.Primitive) inside this geometry.
ElementTree representation of the geometry.
Create a set of lines for use in this geometry instance.
| Parameters: |
|
|---|---|
| Return type: |
Create a set of triangles for use in this geometry instance.
| Parameters: |
|
|---|---|
| Return type: |
Create a polylist for use with this geometry instance.
| Parameters: |
|
|---|---|
| Return type: |
Create a polygons for use with this geometry instance.
| Parameters: |
|
|---|---|
| Return type: |
Binds this geometry to a transform matrix and material mapping. The geometry’s points get transformed by the given matrix and its inputs get mapped to the given materials.
| Parameters: |
|
|---|---|
| Return type: |