mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-16 09:34:36 +00:00
added a check for degen faces before starting topology.
This commit is contained in:
parent
88850769f8
commit
d7a1eea8f5
@ -887,6 +887,8 @@ bool MainWindow::open(QString fileName, GLArea *gla)
|
||||
if( mask & vcg::tri::io::Mask::IOM_BITPOLYGONAL)
|
||||
{
|
||||
mm->updateDataMask(MeshModel::MM_POLYGONAL); // just to be sure. Hopefully it should be done in the plugin...
|
||||
int degNum = tri::Clean<CMeshO>::RemoveDegenerateFace(mm->cm);
|
||||
if(degNum) GLA()->log.Logf(0,"Warning model contains %i degenerate faces. Removed them.",degNum);
|
||||
mm->updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
vcg::tri::UpdateNormals<CMeshO>::PerBitQuadFaceNormalized(mm->cm);
|
||||
vcg::tri::UpdateNormals<CMeshO>::PerVertexFromCurrentFaceNormal(mm->cm);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user