ifcviewer: remove meshopt_simplify path, keep only simplifySloppy

Edge-collapse decimation (meshopt_simplify) returns BIM meshes unchanged
due to per-triangle vertex duplication and non-manifold topology. The
sloppy voxel-clustering decimator is faster, needs no shadow index
welding, and produces good results at the sub-30px LOD1 threshold.
Remove the non-sloppy branch, shadow buffer, IFC_LOD_SLOPPY and
IFC_LOD_LOCK_BORDER env vars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-04-20 15:41:06 +10:00
parent 3015f758ba
commit 5161b0a3f8
3 changed files with 25 additions and 82 deletions
+2 -2
View File
@@ -23,8 +23,8 @@
#include "SidecarCache.h"
// Build a LOD1 index slice for every mesh in `sd` whose triangle count is
// above `min_triangles`, using meshoptimizer's edge-collapse decimator. The
// LOD1 indices are appended to `sd.indices`; each MeshInfo's
// above `min_triangles`, using meshoptimizer's sloppy (voxel-clustering)
// decimator. The LOD1 indices are appended to `sd.indices`; each MeshInfo's
// lod1_ebo_byte_offset + lod1_index_count are populated to point at the
// appended range. Meshes that don't qualify (too small) or where the
// decimator couldn't meet the target within the error budget have