Package pyffi :: Package formats :: Package cgf :: Class CgfFormat :: Class PhysicsPolyhedron
[hide private]
[frames] | no frames]

Class PhysicsPolyhedron

source code

                  object --+            
                           |            
      utils.graph.DetailNode --+        
                               |        
          utils.graph.GlobalNode --+    
                                   |    
object_models.xml.struct_.StructBase --+
                                       |
                                      CgfFormat.PhysicsPolyhedron

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

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, tree, 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 = ['num_vertices', 'num_triangles', 'unknown_17', 'unkn...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  data_0
  data_1
  data_2
  data_type
0, 1, andsometimes also 2 (Objects/Characters/Alien/Hunter/weak_point_a.cgf)
  has_vertex_map
  num_triangles
  num_vertices
Number of vertices (in this physics mesh?).
  triangle_flags
Flags?
  triangle_map
  triangles
Triangles
  unknown_17
This could be determining the type of data coming further on? Typically, 3, 4, 5, or 8.
  unknown_18
  unknown_210
Junk?
  unknown_45
Random junk
  unknown_461
0
  unknown_462
0
  unknown_463
0.02
  unknown_464
not sure
  unknown_465
-1.0
  unknown_466
not sure
  unknown_467
-1.0
  unknown_468
not sure
  unknown_469
-1.0
  use_data_stream
Not sure.
  vertex_map
If the (non-physics) mesh has say 200 vertices, then the first 200entries of this map give a mapping identifying the unique vertices.The meaning of the extra entries is unknown.
  vertices
Vertices

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x274e350>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e390>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e410>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e450>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e4d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e510>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e610>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e690>,
...

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x274e350>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e390>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e410>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e450>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e4d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e510>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e610>,
 <pyffi.object_models.xml.StructAttribute object at 0x274e690>,
...

_names

Value:
['num_vertices',
 'num_triangles',
 'unknown_17',
 'unknown_18',
 'has_vertex_map',
 'vertex_map',
 'use_data_stream',
 'vertices',
...

Property Details [hide private]

data_0

Get Method:
<functools.partial object at 0x2754cb0>
Set Method:
<functools.partial object at 0x2754d08>

data_1

Get Method:
<functools.partial object at 0x2754db8>
Set Method:
<functools.partial object at 0x2754e10>

data_2

Get Method:
<functools.partial object at 0x2754ec0>
Set Method:
<functools.partial object at 0x2754f18>

data_type

0, 1, andsometimes also 2 (Objects/Characters/Alien/Hunter/weak_point_a.cgf)
Get Method:
<functools.partial object at 0x2754ba8>
Set Method:
<functools.partial object at 0x2754c00>

has_vertex_map

Get Method:
<functools.partial object at 0x2750af8>
Set Method:
<functools.partial object at 0x2750b50>

num_triangles

Get Method:
<functools.partial object at 0x27507e0>
Set Method:
<functools.partial object at 0x2750838>

num_vertices

Number of vertices (in this physics mesh?).
Get Method:
<functools.partial object at 0x27506d8>
Set Method:
<functools.partial object at 0x2750730>

triangle_flags

Flags?
Get Method:
<functools.partial object at 0x2754050>

triangle_map

Get Method:
<functools.partial object at 0x2754100>

triangles

Triangles
Get Method:
<functools.partial object at 0x2750e68>

unknown_17

This could be determining the type of data coming further on? Typically, 3, 4, 5, or 8.
Get Method:
<functools.partial object at 0x27508e8>
Set Method:
<functools.partial object at 0x2750940>

unknown_18

Get Method:
<functools.partial object at 0x27509f0>
Set Method:
<functools.partial object at 0x2750a48>

unknown_210

Junk?
Get Method:
<functools.partial object at 0x2750f18>
Set Method:
<functools.partial object at 0x2750f70>

unknown_45

Random junk
Get Method:
<functools.partial object at 0x27541b0>

unknown_461

0
Get Method:
<functools.partial object at 0x2754260>
Set Method:
<functools.partial object at 0x27542b8>

unknown_462

0
Get Method:
<functools.partial object at 0x2754368>
Set Method:
<functools.partial object at 0x27543c0>

unknown_463

0.02
Get Method:
<functools.partial object at 0x2754470>
Set Method:
<functools.partial object at 0x27544c8>

unknown_464

not sure
Get Method:
<functools.partial object at 0x2754578>
Set Method:
<functools.partial object at 0x27545d0>

unknown_465

-1.0
Get Method:
<functools.partial object at 0x2754680>
Set Method:
<functools.partial object at 0x27546d8>

unknown_466

not sure
Get Method:
<functools.partial object at 0x2754788>
Set Method:
<functools.partial object at 0x27547e0>

unknown_467

-1.0
Get Method:
<functools.partial object at 0x2754890>
Set Method:
<functools.partial object at 0x27548e8>

unknown_468

not sure
Get Method:
<functools.partial object at 0x2754998>
Set Method:
<functools.partial object at 0x27549f0>

unknown_469

-1.0
Get Method:
<functools.partial object at 0x2754aa0>
Set Method:
<functools.partial object at 0x2754af8>

use_data_stream

Not sure. Theory:Value of 1 means that vertices are recycled from the VERTICES DataStreamChunk.Value of 0 means that the vertices are defined here.
Get Method:
<functools.partial object at 0x2750cb0>
Set Method:
<functools.partial object at 0x2750d08>

vertex_map

If the (non-physics) mesh has say 200 vertices, then the first 200entries of this map give a mapping identifying the unique vertices.The meaning of the extra entries is unknown.
Get Method:
<functools.partial object at 0x2750c00>

vertices

Vertices
Get Method:
<functools.partial object at 0x2750db8>