Skip to content

Commit

Permalink
added requirement for doo sabin to have faux flag consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
cignoni committed Nov 7, 2024
1 parent 61eb845 commit 0ab95f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/meshlabplugins/filter_meshing/meshfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,12 @@ std::map<std::string, QVariant> ExtraMeshFilterPlugin::applyFilter(
case FP_REFINE_DOOSABIN :
{
PMesh baseIn, refinedOut;
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
if(!tri::Clean<CMeshO>::IsFaceFauxConsistent(m.cm))
{
throw MLException("Mesh has inconsistent Faux Edge tagging.");
}

tri::PolygonSupport<CMeshO,PMesh>::ImportFromTriMesh(baseIn,m.cm);
tri::Clean<PMesh>::RemoveUnreferencedVertex(baseIn);
tri::Allocator<PMesh>::CompactEveryVector(baseIn);
Expand Down

0 comments on commit 0ab95f8

Please sign in to comment.