Bitbybit Docs
    Preparing search index...

    Class ShapeFromPathDto

    Generic builder input: turn one or more subpaths into wires and, optionally, faces. SVG-agnostic.

    Index

    Constructors

    • Parameters

      • Optionalsubpaths: PathSubpath[]
      • OptionalmakeFaces: boolean
      • OptionaljoinSegments: boolean
      • Optionaltolerance: number
      • Optionalscale: number
      • OptionalflipY: boolean
      • Optionalorigin: Point3

      Returns ShapeFromPathDto

    Properties

    subpaths: PathSubpath[]

    Subpaths describing the geometry.

    undefined
    
    makeFaces: boolean

    Build faces from the (closed) subpaths in addition to wires.

    false
    
    joinSegments: boolean

    Join each subpath's segments into a single curve where possible.

    true
    
    tolerance: number

    Tolerance used when joining/sewing segments.

    1e-7
    
    scale: number

    Uniform scale applied to path coordinates.

    1
    
    flipY: boolean

    Negate Y so the path appears upright (Y up) in CAD.

    true
    
    origin: Point3

    Translation applied after scale/flip.

    [0, 0, 0]