20 #ifndef __OPC_BASEMODEL_H__ 21 #define __OPC_BASEMODEL_H__ 33 #ifdef __MESHMERIZER_H__ 35 #endif // __MESHMERIZER_H__ 71 virtual udword GetUsedBytes()
const = 0;
114 inline_ udword GetNbNodes()
const {
return mTree->GetNbNodes(); }
172 bool CreateTree(
bool no_leaf,
bool quantized);
175 #endif //__OPC_BASEMODEL_H__ const MeshInterface * mIMesh
User-defined mesh interface.
bool mCanRemap
true => allows OPCODE to reorganize client arrays
bool mNoLeaf
true => discard leaf nodes (else use a normal tree)
AABBTree * mSource
Original source tree.
AABBOptimizedTree * mTree
Optimized tree owned by the model.
Special case for 1-node models.
int BOOL
Another boolean type.
unsigned int udword
sizeof(udword) must be 4
BuildSettings mSettings
Builder's settings.
Simple wrapper around build-related settings [Opcode 1.3].
Compressed/uncompressed tree.
MeshInterface * mIMesh
Mesh interface (access to triangles & vertices) (*)
bool mKeepOriginal
true => keep a copy of the original tree (debug purpose)
Model creation structure.
udword mModelCode
Model code = combination of ModelFlag(s)
bool mQuantized
true => quantize the tree (else use a normal tree)
static BodyCustomizerHandle create(BodyHandle bodyHandle, const char *modelName)