Significant Change: Now the importer compute the bbox. All the importer should do.
This commit is contained in:
parent
80467d1f41
commit
646a31972f
|
|
@ -991,17 +991,16 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
|
|||
|
||||
// vn and fn should be correct but if someone wrongly saved some deleted elements they can be wrong.
|
||||
m.vn = 0;
|
||||
VertexIterator vi;
|
||||
for(vi=m.vert.begin();vi!=m.vert.end();++vi)
|
||||
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi)
|
||||
if( ! (*vi).IsD() )
|
||||
++m.vn;
|
||||
|
||||
m.fn = 0;
|
||||
FaceIterator fi;
|
||||
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
||||
for(FaceIterator fi=m.face.begin();fi!=m.face.end();++fi)
|
||||
if( ! (*fi).IsD() )
|
||||
++m.fn;
|
||||
|
||||
tri::UpdateBounding<OpenMeshType>::Box(m);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue