| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
utils.graph.DetailNode --+
|
utils.graph.GlobalNode --+
|
object_models.xml.struct_.StructBase --+
|
NifFormat._NiObject --+
|
NifFormat.NiObject --+
|
NifFormat._NiGeometryData --+
|
NifFormat.NiGeometryData --+
|
NifFormat._NiTriBasedGeomData --+
|
NifFormat.NiTriBasedGeomData
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
_attribute_list =
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Yield list of triangle indices (relative to self.get_triangles()) of given triangles. Degenerate triangles in the list are assigned index None. >>> from pyffi.formats.nif import NifFormat >>> geomdata = NifFormat.NiTriShapeData() >>> geomdata.set_triangles([(0,1,2),(1,2,3),(2,3,4)]) >>> list(geomdata.get_triangle_indices([(1,2,3)])) [1] >>> list(geomdata.get_triangle_indices([(3,1,2)])) [1] >>> list(geomdata.get_triangle_indices([(2,3,1)])) [1] >>> list(geomdata.get_triangle_indices([(1,2,0),(4,2,3)])) [0, 2] >>> list(geomdata.get_triangle_indices([(0,0,0),(4,2,3)])) [None, 2] >>> list(geomdata.get_triangle_indices([(0,3,4),(4,2,3)])) # doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: ...
|
|
|||
_attribute_list
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 10 19:03:49 2011 | http://epydoc.sourceforge.net |