[ODE] TriMesh - do we need to sort triangles?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Sun Apr 22 19:39:56 MST 2007


Yes, you need to have consistent winding on the trimeshes (they are 
one-sided).
The only way to get rid of that behavior is to add each triangle twice, 
with both windings (at a bit of a speed hit).

Cheers,

          / h+


Jürgen Ladstätter wrote:
>
> Hi there,
>
>  
>
> ist again me with my small trimesh problems. Trimesh collision 
> detection works quite well for our maps, the funny thing is, that if 
> the triangles vertexpoints are not clockwise sorted, the bodies fall 
> through the floor.
>
>  
>
> So my question to you is: does ODE do the normal vector calculation 
> for physics base on the vertexpoint order? And if so, do you know any 
> function to skip that?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ODE mailing list
> ODE at ode.org
> http://ode.org/mailman/listinfo/ode


More information about the ODE mailing list