Minimal refactoring of mesh intersection
This commit is contained in:
parent
95d88a7af9
commit
d4293c7d78
|
@ -147,9 +147,8 @@ bool IntersectionPlaneMesh(TriMeshType & m,
|
|||
typename TriMeshType::template PerVertexAttributeHandle < ScalarType > qH =
|
||||
tri::Allocator<TriMeshType> :: template AddPerVertexAttribute < ScalarType >(m,"TemporaryPlaneDistance");
|
||||
|
||||
typename TriMeshType::VertexIterator vi;
|
||||
for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
||||
qH[vi] =SignedDistancePlanePoint(pl,(*vi).cP());
|
||||
for(auto vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
||||
qH[vi] = SignedDistancePlanePoint(pl,(*vi).cP());
|
||||
|
||||
for(size_t i=0;i<m.face.size();i++)
|
||||
if(!m.face[i].IsD())
|
||||
|
|
Loading…
Reference in New Issue