Bitbybit Docs
    Preparing search index...

    Class SaveSvgDto<T> (Inputs.OCCT)

    A shape, a view and file options for io.saveShapeSvg, which draws the edges the view sees as an SVG drawing, and the edges other faces cover dashed when asked.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • Optionalframe: Bit.Inputs.Base.Frame
      • OptionaldrawHidden: boolean
      • Optionalprecision: number
      • OptionalfileName: string
      • OptionaltryDownload: boolean

      Returns SaveSvgDto<T>

    Properties

    shape: T

    The shape to draw.

    undefined
    

    The view, as in operations.hiddenLines: the eye sits on the side the normal points to and looks back along it, and the drawing's x runs along the direction.

    undefined
    
    drawHidden?: boolean

    When true, the edges other faces cover are drawn too, dashed.

    false
    
    precision?: number

    How far the straight segments that trace a curved edge may stray from it, in model units; a smaller value follows curves more closely and makes a bigger file.

    0.01
    

    0

    true

    Infinity

    0.001

    fileName?: string

    The name the downloaded file gets.

    shape.svg
    
    tryDownload?: boolean

    When true, a browser download of the file is started where that is possible; the kernel itself only returns the text.

    true