Bitbybit Docs
    Preparing search index...

    Class SaveStlDto<T> (Inputs.OCCT)

    A shape, a file name and meshing options for io.saveShapeStl, which triangulates the shape and writes it as an STL file.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • OptionalfileName: string
      • Optionalprecision: number
      • OptionaladjustYtoZ: boolean
      • OptionaltryDownload: boolean
      • Optionalbinary: boolean

      Returns SaveStlDto<T>

    Properties

    shape: T

    The shape written to the file.

    undefined
    
    fileName: string

    The name the downloaded file gets.

    shape.stl
    
    precision: number

    The meshing tolerance in model units; a smaller value follows curved surfaces more closely and makes a bigger file.

    0.01
    
    adjustYtoZ: boolean

    When true, the shape is turned so this library's Y-up becomes Z-up.

    false
    
    tryDownload?: boolean

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

    true
    
    binary?: boolean

    When true, the STL is written in its binary form, which is much smaller than the text form.

    true