made compliant to polygon_support
This commit is contained in:
parent
c7e86ab57a
commit
122f0412c8
|
@ -118,21 +118,16 @@ void SubSet(S_MESH_TYPE & m, STL_CONT & subSet)
|
|||
for(pfi=subSet.begin(); pfi!=subSet.end(); ++pfi)
|
||||
{
|
||||
assert(!(*pfi)->IsD());
|
||||
// m.face.push_back(*(*pfi));
|
||||
(*fi).ImportLocal(**pfi);
|
||||
(*fi).V(0) = (S_VertexType*)(void*)(*pfi)->V(0);
|
||||
(*fi).V(1) = (S_VertexType*)(void*)(*pfi)->V(1);
|
||||
(*fi).V(2) = (S_VertexType*)(void*)(*pfi)->V(2);
|
||||
for(int ii = 0 ; ii < (*fi).VN(); ++ii)
|
||||
(*fi).V(ii) = (S_VertexType*)(void*)(*pfi)->V(ii);
|
||||
++fi;
|
||||
}
|
||||
|
||||
|
||||
for(fi=m.face.begin(); fi!=m.face.end(); ++fi)
|
||||
{
|
||||
newVertices.push_back(InsertedV<S_MESH_TYPE>((*fi).V(0), &(*fi),0));
|
||||
newVertices.push_back(InsertedV<S_MESH_TYPE>((*fi).V(1), &(*fi),1));
|
||||
newVertices.push_back(InsertedV<S_MESH_TYPE>((*fi).V(2), &(*fi),2));
|
||||
}
|
||||
for(int ii = 0 ; ii < (*fi).VN(); ++ii)
|
||||
newVertices.push_back(InsertedV<S_MESH_TYPE>((*fi).V(ii), &(*fi),ii));
|
||||
|
||||
sort(newVertices.begin(), newVertices.end());
|
||||
|
||||
|
@ -159,9 +154,8 @@ void SubSet(S_MESH_TYPE & m, STL_CONT & subSet)
|
|||
|
||||
for(fi=m.face.begin(); fi!=m.face.end(); ++fi)
|
||||
{
|
||||
(*fi).V(0)=redirect[(size_t)(*fi).V(0)];
|
||||
(*fi).V(1)=redirect[(size_t)(*fi).V(1)];
|
||||
(*fi).V(2)=redirect[(size_t)(*fi).V(2)];
|
||||
for(int ii = 0 ; ii < (*fi).VN(); ++ii)
|
||||
(*fi).V(ii)=redirect[(size_t)(*fi).V(ii)];
|
||||
}
|
||||
m.vn=(int)m.vert.size();
|
||||
m.fn=(int)m.face.size();
|
||||
|
|
Loading…
Reference in New Issue