Normalizing a zero vector in btConnectivityProcessor

cj3j
Posts: 8
Joined: Wed Nov 20, 2013 6:40 am

Normalizing a zero vector in btConnectivityProcessor

Post by cj3j »

I have a triangle mesh that's resulting in a zero vector being normalized in btConnectivityProcessor::processTriangle() It's the 'edge' vector:

Code: Select all

btVector3 edge(m_triangleVerticesA[sharedVertsA[1]]-m_triangleVerticesA[sharedVertsA[0]]);
I can't see anything obviously wrong with the mesh upon visual inspection. Any idea what would cause this? Is it okay to just exit out of the function when this situation occurs?
cj3j
Posts: 8
Joined: Wed Nov 20, 2013 6:40 am

Re: Normalizing a zero vector in btConnectivityProcessor

Post by cj3j »

Nevermind? I had my m_equalVertexThreshold set too high.