Skip to content

Commit

Permalink
Reduce faces
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Apr 15, 2018
1 parent b749919 commit e9d0696
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/meshgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ void MeshGenerator::process()
mergedMeshId = unionMeshs(meshliteContext, meshIds, &errorCount);
if (errorCount)
broken = true;
//else if (mergedMeshId > 0)
// mergedMeshId = meshlite_combine_coplanar_faces(meshliteContext, mergedMeshId);
else if (mergedMeshId > 0)
mergedMeshId = meshlite_combine_coplanar_faces(meshliteContext, mergedMeshId);
if (mergedMeshId > 0)
mergedMeshId = meshlite_fix_hole(meshliteContext, mergedMeshId);
} else if (meshIds.size() > 0) {
mergedMeshId = meshIds[0];
}
Expand Down

0 comments on commit e9d0696

Please sign in to comment.