Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class _bhkConvexVerticesShape
[hide private]
[frames] | no frames]

Class _bhkConvexVerticesShape

source code

                  object --+                                            
                           |                                            
      utils.graph.DetailNode --+                                        
                               |                                        
          utils.graph.GlobalNode --+                                    
                                   |                                    
object_models.xml.struct_.StructBase --+                                
                                       |                                
                     NifFormat._NiObject --+                            
                                           |                            
                          NifFormat.NiObject --+                        
                                               |                        
                         NifFormat._bhkRefObject --+                    
                                                   |                    
                              NifFormat.bhkRefObject --+                
                                                       |                
                               NifFormat.bhkSerializable --+            
                                                           |            
                                          NifFormat.bhkShape --+        
                                                               |        
                                     NifFormat.bhkSphereRepShape --+    
                                                                   |    
                                            NifFormat.bhkConvexShape --+
                                                                       |
                                                                      NifFormat._bhkConvexVerticesShape
Known Subclasses:

A convex shape built from vertices. Note that if the shape is used ina non-static object (such as clutter), then they will simply fallthrough ground when they are under a bhkListShape.
Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from bhkRefObject: get_shape_mass_center_inertia

Inherited from NiObject: apply_scale, find, find_chain, is_interchangeable, tree

Inherited from NiObject (private): _validateTree

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _names = ['material', 'radius', 'unknown_6_floats', 'num_verti...

Inherited from bhkSerializable (private): _games, _is_template

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  normals
Half spaces as determined by the set of vertices above.
  num_normals
The number of half spaces.
  num_vertices
Number of vertices.
  unknown_6_floats
Unknown.
  vertices
Vertices.

Inherited from bhkSphereRepShape: material, radius

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2cfa910>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfa990>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfadd0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfae90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfaed0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfaf50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01090>]

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2cfadd0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfae90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfaed0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2cfaf50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01090>]

_names

Value:
['material',
 'radius',
 'unknown_6_floats',
 'num_vertices',
 'vertices',
 'num_normals',
 'normals']

Property Details [hide private]

normals

Half spaces as determined by the set of vertices above. First three components define the normal pointing to the exterior, fourth component is the signed distance of the separating plane to the origin: it is minus the dot product of v and n, where v is any vertex on the separating plane, and n is the normal. Lexicographically sorted.
Get Method:
<functools.partial object at 0x2cfeec0>

num_normals

The number of half spaces.
Get Method:
<functools.partial object at 0x2cfedb8>
Set Method:
<functools.partial object at 0x2cfee10>

num_vertices

Number of vertices.
Get Method:
<functools.partial object at 0x2cfec00>
Set Method:
<functools.partial object at 0x2cfec58>

unknown_6_floats

Unknown. Must be (0.0,0.0,-0.0,0.0,0.0,-0.0) for arrow detection to work (mind the minus signs, -0.0 is 0x80000000 in hex).
Get Method:
<functools.partial object at 0x2cfeb50>

vertices

Vertices. Fourth component is 0. Lexicographically sorted.
Get Method:
<functools.partial object at 0x2cfed08>