IFC slab CDT triangulator

Parses IfcSlab footprints, subtracts IfcOpeningElement voids, and produces quality-constrained Delaunay meshes via Shewchuk's triangle library. Python API and CLI.

201,810triangles / s
45 / 45tests pass
0CVEs
MITlicense
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 →