mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user