corrected a bug: a pushback of normal was missing in the case (qH[m.face[i].V(j)] == 0)
This commit is contained in:
parent
dd56766889
commit
32d500be36
|
|
@ -175,7 +175,11 @@ bool IntersectionPlaneMesh(TriMeshType & m,
|
||||||
Point3<ScalarType> nn =(n0*fabs(q1) + n1*fabs(q0))/fabs(q0-q1);
|
Point3<ScalarType> nn =(n0*fabs(q1) + n1*fabs(q0))/fabs(q0-q1);
|
||||||
nmVec.push_back(nn);
|
nmVec.push_back(nn);
|
||||||
}
|
}
|
||||||
if(qH[m.face[i].V(j)]==0) ptVec.push_back(m.face[i].V(j)->cP());
|
if (qH[m.face[i].V(j)] == 0)
|
||||||
|
{
|
||||||
|
ptVec.push_back(m.face[i].V(j)->cP());
|
||||||
|
nmVec.push_back(m.face[i].V(j)->cN());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(ptVec.size()>=2)
|
if(ptVec.size()>=2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue