changed some method to work with polygons
This commit is contained in:
parent
2f871fc16e
commit
b01f2c111e
|
@ -182,7 +182,7 @@ public:
|
||||||
|
|
||||||
for(FaceIterator fi = m.face.begin(); fi!=m.face.end(); ++fi)
|
for(FaceIterator fi = m.face.begin(); fi!=m.face.end(); ++fi)
|
||||||
if( !(*fi).IsD() )
|
if( !(*fi).IsD() )
|
||||||
for(k = 0; k < 3; ++k)
|
for(k = 0; k < (*fi).VN(); ++k)
|
||||||
if( mp.find( (typename MeshType::VertexPointer)(*fi).V(k) ) != mp.end() )
|
if( mp.find( (typename MeshType::VertexPointer)(*fi).V(k) ) != mp.end() )
|
||||||
{
|
{
|
||||||
(*fi).V(k) = &*mp[ (*fi).V(k) ];
|
(*fi).V(k) = &*mp[ (*fi).V(k) ];
|
||||||
|
@ -343,7 +343,7 @@ public:
|
||||||
|
|
||||||
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
||||||
if( !(*fi).IsD() )
|
if( !(*fi).IsD() )
|
||||||
for(j=0;j<3;++j)
|
for(j=0;j<(*fi).VN();++j)
|
||||||
(*fi).V(j)->SetUserBit(referredBit);
|
(*fi).V(j)->SetUserBit(referredBit);
|
||||||
|
|
||||||
for(ei=m.edge.begin();ei!=m.edge.end();++ei)
|
for(ei=m.edge.begin();ei!=m.edge.end();++ei)
|
||||||
|
|
Loading…
Reference in New Issue