brepjs API Reference
    Preparing search index...

    Function importDXF

    • Import a DXF file from a Blob, returning kernel wires.

      Parses ASCII DXF LINE, CIRCLE, ARC, LWPOLYLINE and R12 POLYLINE entities, polyline bulges included, in world coordinates (planar entities are mapped out of their object coordinate system). Polygon and polyface meshes are skipped. Edges that meet end to end become one wire, so disconnected outlines come back as separate wires.

      Parameters

      • blob: Blob

        A Blob containing ASCII DXF data.

      • Optionaloptions: DXFImportOptions

        Optional import settings (layer filter).

      Returns Promise<Result<Wire[]>>

      A Result wrapping an array of wires.