Reduce faces

master
Jeremy Hu 2018-04-15 23:55:48 +08:00
parent b7499199c8
commit e9d0696be6
1 changed files with 4 additions and 2 deletions

View File

@ -283,8 +283,10 @@ void MeshGenerator::process()
mergedMeshId = unionMeshs(meshliteContext, meshIds, &errorCount); mergedMeshId = unionMeshs(meshliteContext, meshIds, &errorCount);
if (errorCount) if (errorCount)
broken = true; broken = true;
//else if (mergedMeshId > 0) else if (mergedMeshId > 0)
// mergedMeshId = meshlite_combine_coplanar_faces(meshliteContext, mergedMeshId); mergedMeshId = meshlite_combine_coplanar_faces(meshliteContext, mergedMeshId);
if (mergedMeshId > 0)
mergedMeshId = meshlite_fix_hole(meshliteContext, mergedMeshId);
} else if (meshIds.size() > 0) { } else if (meshIds.size() > 0) {
mergedMeshId = meshIds[0]; mergedMeshId = meshIds[0];
} }