added InternalEdgeDemo and fixes for btInternalEdgeUtility
This commit is contained in:
@@ -938,6 +938,16 @@ public:
|
||||
wv0 = m_worldTrans*triangle[0];
|
||||
wv1 = m_worldTrans*triangle[1];
|
||||
wv2 = m_worldTrans*triangle[2];
|
||||
btVector3 center = (wv0+wv1+wv2)*btScalar(1./3.);
|
||||
|
||||
btVector3 normal = (wv1-wv0).cross(wv2-wv0);
|
||||
normal.normalize();
|
||||
btVector3 normalColor(1,1,0);
|
||||
m_debugDrawer->drawLine(center,center+normal,normalColor);
|
||||
|
||||
|
||||
|
||||
|
||||
m_debugDrawer->drawLine(wv0,wv1,m_color);
|
||||
m_debugDrawer->drawLine(wv1,wv2,m_color);
|
||||
m_debugDrawer->drawLine(wv2,wv0,m_color);
|
||||
|
||||
Reference in New Issue
Block a user