Go to the documentation of this file.
104 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
106 #endif // __MESHMERIZER_H__
127 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
129 #endif // __MESHMERIZER_H__
142 if(!
create.mIMesh || !
create.mIMesh->IsValid())
return false;
145 if(
create.mSettings.mLimit!=1)
return SetIceError(
"OPCODE WARNING: supports complete trees only! Use mLimit = 1.\n",
null);
149 if(NbDegenerate)
Log(
"OPCODE WARNING: found %d degenerate faces in model! Collision might report wrong results!\n", NbDegenerate);
155 SetMeshInterface(
create.mIMesh);
179 if(!mSource->Build(&TB))
return false;
183 if(!CreateTree(
create.mNoLeaf,
create.mQuantized))
return false;
186 if(!mTree->Build(mSource))
return false;
191 #ifdef __MESHMERIZER_H__
196 mHull =
new CollisionHull;
199 CONVEXHULLCREATE CHC;
201 CHC.NbVerts =
create.mIMesh->GetNbVertices();
202 CHC.Vertices =
create.mIMesh->GetVerts();
203 CHC.UnifyNormals =
true;
204 CHC.ReduceVertices =
true;
205 CHC.WordFaces =
false;
208 #endif // __MESHMERIZER_H__
222 return mTree->GetUsedBytes();
virtual bool Build(const OPCODECREATE &create)=0
#define DELETESINGLE(x)
Deletes an instance of a class.
udword mNbPrimitives
Total number of primitives.
unsigned int udword
sizeof(udword) must be 4
static BodyCustomizerHandle create(BodyHandle bodyHandle, const char *modelName)
Model creation structure.
BuildSettings mSettings
Splitting rules & split limit [Opcode 1.3].
virtual udword GetUsedBytes() const =0
#define SetIceError(a, b)
const MeshInterface * mIMesh
Shortcut to an app-controlled mesh interface.
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03