[ODE] TriCollider Mesh problems ;)

Dino Patti dino at nordmark.dk
Tue Sep 16 20:54:26 MST 2003


Hi everyone,

I have this problem with the tricollider, I have built this simple mesh (triangle):

-- SNIP --
mVertices = new dReal[9];
mVertices[0] = 0; mVertices[1] = -5; mVertices[2] = 2; // vertex 1
mVertices[3] = -2; mVertices[4] = -5; mVertices[5] = -2; // vertex 2
mVertices[6] = 2; mVertices[7] = -5; mVertices[8] = -2; // vertex 3
mIndices = new int[3];
mIndices[0] = 0; mIndices[1] = 1; mIndices[2] = 2; // index 1

dGeomTriMeshDataBuildSimple (mTriMeshData, mVertices, 3, mIndices, 3);
mCollisionMesh = dCreateTriMesh(gWorld.GetSpaceID(), mTriMeshData, 0, 0, 0);
-- SNIP --

But the program crashes in my first loop at startup .. 
(mVertices and mIndices are not deleted)

I've compiled opcode in debug mode to run a stack trace and i ended up in:
-SNIP---------> OPC_OptimizedTree.h 
class OPCODE_API AABBCollisionTree : public AABBOptimizedTree
{
    IMPLEMENT_COLLISION_TREE(AABBCollisionTree, AABBCollisionNode)
};
<--------SNIP-

The last traceable file in my project was in my "nearCallback" function.

Where the colliding objects where dTriMeshClass (7) and dSimpleSpaceClass (8)...

Anyone have any clue what it could be?
I've checked test_trimesh.cpp from the ode project, but i can't see the technical diffrence...

/*Dino*/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webserver.computershop.calgary.ab.ca/pipermail/ode/attachments/20030916/44384c46/attachment-0001.htm


More information about the ODE mailing list