142 enum { MAX_PIVOTS = 4096, DEFAULT_NODE_ARRAY_SIZE = 512, NODE_ARRAY_GROWTH_SIZE = 32 };
145 W3dHierarchyStruct HierarchyHeader;
146 DynamicVectorClass<HierarchyNodeStruct> Node;
149 Matrix3 OriginOffsetTransform;
152 static bool TerrainModeEnabled;
154 void add_tree(INode * node,
int pidx);
155 int add_node(INode * node,
int pidx);
157 bool save_header(ChunkSaveClass & csave);
158 bool save_pivots(ChunkSaveClass & csave);
159 bool save_fixups(ChunkSaveClass & csave);
161 bool load_header(ChunkLoadClass & cload);
162 bool load_pivots(ChunkLoadClass & cload);
163 bool load_fixups(ChunkLoadClass & cload);
165 Matrix3 get_relative_transform(
int nodeidx)
const;
166 Matrix3 fixup_matrix(
const Matrix3 & src)
const;