bhkPackedNiTriStripsShape tests
===============================

Adding Shapes
-------------

>>> from pyffi.formats.nif import NifFormat
>>> shape = NifFormat.bhkPackedNiTriStripsShape()
>>> shape.num_sub_shapes
0
>>> shape.data is None
True
>>> triangles1 = [(0, 1, 2)]
>>> normals1 = [(1, 0, 0)]
>>> vertices1 = [(0, 0, 0), (0, 0, 1), (0, 1, 0)]
>>> triangles2 = [(0, 2, 1), (1, 2, 3)]
>>> normals2 = [(1, 0, 0), (-1, 0, 0)]
>>> vertices2 = [(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 0, 0)]
>>> shape.add_shape(triangles=triangles1, normals=normals1, vertices=vertices1,
...                layer=1, material=2)
>>> shape.add_shape(triangles=triangles2, normals=normals2, vertices=vertices2,
...                layer=3, material=4)
>>> shape.num_sub_shapes
2
>>> shape.sub_shapes[0].layer
1
>>> shape.sub_shapes[0].num_vertices
3
>>> shape.sub_shapes[0].material
2
>>> shape.sub_shapes[1].layer
3
>>> shape.sub_shapes[1].num_vertices
4
>>> shape.sub_shapes[1].material
4
>>> # for fallout 3 the subshape info is stored in the shape data
>>> shape.data.num_sub_shapes
2
>>> shape.data.sub_shapes[0].layer
1
>>> shape.data.sub_shapes[0].num_vertices
3
>>> shape.data.sub_shapes[0].material
2
>>> shape.data.sub_shapes[1].layer
3
>>> shape.data.sub_shapes[1].num_vertices
4
>>> shape.data.sub_shapes[1].material
4
>>> shape.data.num_triangles
3
>>> shape.data.num_vertices
7

