wasm-spatial-core
    Preparing search index...

    Function parseIfcGeometry

    • 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 entities are triangulated into indexed meshes
      • Associated IFCPOLYLINE profiles provide the cross-section
      • IFCDIRECTION and IFCAXIS2PLACEMENT3D define extrusion direction and position

      Returns an IfcGeometryResult containing all extracted meshes.

      Arguments

      • text - The full IFC-SPF file content as a UTF-8 string.

      Example

      let result = parse_ifc_geometry(ifc_text);
      console.log(`Extracted ${result.meshCount()} meshes`);
      

      Parameters

      • text: string

      Returns IfcGeometryResult