earcut CDT • browser preview
Mesh triangles
Slab boundary
Opening void
Python · ifc_slab_mesh
from ifc_slab_mesh import triangulate_ifc_file # Parse slabs, subtract openings, run CDT result = triangulate_ifc_file("building.ifc") for name, mesh in result.meshes.items(): print(f"{name}: {mesh.faces.shape[0]} triangles, {mesh.area:.1f} m²") # CLI equivalent # ifc-slab-mesh building.ifc -o ./meshes --format obj
Why Shewchuk Triangle over CGAL, Earcut, or scipy?
Read ADR-0001 →