@@ -911,9 +911,9 @@ btSoftBody* btSoftBodyHelpers::CreateFromConvexHull(btSoftBodyWorldInfo& worldI
|
|||||||
&hres.m_OutputVertices[0],0);
|
&hres.m_OutputVertices[0],0);
|
||||||
for(int i=0;i<(int)hres.mNumFaces;++i)
|
for(int i=0;i<(int)hres.mNumFaces;++i)
|
||||||
{
|
{
|
||||||
const int idx[]={ hres.m_Indices[i*3+0],
|
const int idx[]={ static_cast<int>(hres.m_Indices[i*3+0]),
|
||||||
hres.m_Indices[i*3+1],
|
static_cast<int>(hres.m_Indices[i*3+1]),
|
||||||
hres.m_Indices[i*3+2]};
|
static_cast<int>(hres.m_Indices[i*3+2])};
|
||||||
if(idx[0]<idx[1]) psb->appendLink( idx[0],idx[1]);
|
if(idx[0]<idx[1]) psb->appendLink( idx[0],idx[1]);
|
||||||
if(idx[1]<idx[2]) psb->appendLink( idx[1],idx[2]);
|
if(idx[1]<idx[2]) psb->appendLink( idx[1],idx[2]);
|
||||||
if(idx[2]<idx[0]) psb->appendLink( idx[2],idx[0]);
|
if(idx[2]<idx[0]) psb->appendLink( idx[2],idx[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user