[ODE] Problem with Trimesh

Chris Ledwith cledwith at d-a-s.com
Mon Nov 17 13:46:48 MST 2003


Hi,
Look into triangle and vertex strides in collision_trimesh.cpp and
OPC_MeshInterface.cpp

-Chris

-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org] On Behalf Of Stuart O
Anderson
Sent: Monday, November 17, 2003 9:47 AM
To: ode at q12.org
Subject: [ODE] Problem with Trimesh

Hi -

I've got a problem with dGeomTriMeshGetTriangle, which appears both in my
own code and with the test_trimesh code.  Essentially I'm getting the
wrong values back from the function.  For example, I retreive vtx 1 of
triangle 1 in test_trimesh right before calling dsSimulationLoop for the
first time.  It get <1,-5,-5,0>, which doesn't make any sense since no
vertex should have '1' as a component.  (the correct result would have
been <-5,-5,2.5>).  I checked out the relevant code but can't see anything
obviously wrong.  Maybe something inside of OPCODE?  has anyone else run
into this?

Stuart
_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list