Bitbybit Docs
    Preparing search index...

    Class OCCTSVG

    SVG importer (worker facade). Parses an SVG document and builds OCCT wires/faces, laid on the ground and aligned per the import options.

    Index

    Constructors

    • Parameters

      • occWorkerManager: OCCTWorkerManager

      Returns OCCTSVG

    Properties

    occWorkerManager: OCCTWorkerManager

    io

    • Parses an SVG document and builds a single compound shape containing every drawable element, laid on the ground and aligned per the import options. Use this to draw, extrude or transform the whole drawing as one shape.

      Parameters

      • inputs: LoadSVGDto

        SVG text and import/placement options

      Returns Promise<TopoDSShapePointer>

      load svg

      true

    • Parses an SVG document and builds an OCCT shape per drawable element, each bundled with its resolved fill/stroke/stroke-width metadata, plus warnings and the SVG view box. Use this when you need per-element shapes and their colours/styles. Faces are optional and best-effort.

      Parameters

      • inputs: LoadSVGDto

        SVG text and import/placement options

      Returns Promise<SVGResult<TopoDSShapePointer>>

      load svg structured

      false