Skip to content

Triangulate faceted IFC faces with holes and concave bounds - #59

Merged
mahach666 merged 1 commit into
mainfrom
fix/brep-face-triangulation
Nov 24, 2026
Merged

mahach666 merged 1 commit into
mainfrom
fix/brep-face-triangulation

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Closes #17.

Triangulate planar faceted bounds with concave contours, holes, and disjoint regions. Follow IFC bound orientation, preserve shared points, and omit a face with missing or invalid coordinates instead of filling the hole or fabricating a point. The fast path for simple convex contours is linear. The complex path has a bounded work limit and rejects ambiguous crossings.

  • Verified convex, concave, nested, reversed and offset faces, a small hole, a distant region, 256 holes and a 7,000-vertex boundary. Release tests: 300 passed, 2 skipped, 0 failed.
  • The public Duplex and Revit 2022 structural IFC samples retain their element and mesh counts; triangle counts change as expected when bounds are triangulated differently.
  • No sample files or vendor code were added.

@mahach666
mahach666 merged commit 8bd79a3 into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faceted Brep import fills holes and mis-triangulates non-convex faces

1 participant