From cc87da63d7173e0ba40e9ddfadee304af965988e Mon Sep 17 00:00:00 2001 From: QuimMoya Date: Thu, 23 Apr 2026 07:23:45 +0200 Subject: [PATCH 1/3] Add mesh orientation repair (two-layer voting algorithm) --- examples/viewer/index.html | 1 + examples/viewer/web-ifc-three.ts | 80 ++- examples/viewer/web-ifc-viewer.ts | 36 +- package.json | 4 +- src/cpp/wasm/web-ifc-wasm.cpp | 102 ++++ .../operations/mesh-orientation-repair.cpp | 548 ++++++++++++++++++ .../operations/mesh-orientation-repair.h | 112 ++++ src/ts/web-ifc-api.ts | 103 ++++ 8 files changed, 966 insertions(+), 20 deletions(-) create mode 100644 src/cpp/web-ifc/geometry/operations/mesh-orientation-repair.cpp create mode 100644 src/cpp/web-ifc/geometry/operations/mesh-orientation-repair.h diff --git a/examples/viewer/index.html b/examples/viewer/index.html index 3af3f1253..92e31e970 100644 --- a/examples/viewer/index.html +++ b/examples/viewer/index.html @@ -24,6 +24,7 @@ + Log Level: