Parse IFC-SPF text and extract mesh geometry from IFCEXTRUDEDAREASOLID entities.
This is an experimental feature that extracts a practical subset of IFC geometry:
IFCEXTRUDEDAREASOLID
IFCPOLYLINE
IFCDIRECTION
IFCAXIS2PLACEMENT3D
Returns an IfcGeometryResult containing all extracted meshes.
IfcGeometryResult
text
let result = parse_ifc_geometry(ifc_text); console.log(`Extracted ${result.meshCount()} meshes`); Copy
let result = parse_ifc_geometry(ifc_text); console.log(`Extracted ${result.meshCount()} meshes`);
Parse IFC-SPF text and extract mesh geometry from IFCEXTRUDEDAREASOLID entities.
This is an experimental feature that extracts a practical subset of IFC geometry:
IFCEXTRUDEDAREASOLIDentities are triangulated into indexed meshesIFCPOLYLINEprofiles provide the cross-sectionIFCDIRECTIONandIFCAXIS2PLACEMENT3Ddefine extrusion direction and positionReturns an
IfcGeometryResultcontaining all extracted meshes.Arguments
text- The full IFC-SPF file content as a UTF-8 string.Example