From e9d0696be65676e1657676974b17809d8a0f9fbd Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 15 Apr 2018 23:55:48 +0800 Subject: [PATCH] Reduce faces --- src/meshgenerator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index ac35d565..0ba169d7 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -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]; }