Bitbybit Docs
    Preparing search index...

    Class SaveObjDto<T> (Inputs.OCCT)

    A shape, a file name and meshing options for io.saveShapeObj, which triangulates the shape and writes it as an OBJ file with the material library its mtllib line names.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns SaveObjDto<T>

    Properties

    shape: T

    The shape written to the file.

    undefined
    
    fileName?: string

    The name the downloaded file gets. Without its extension it also names the shape and the material library, so it may hold no spaces or slashes.

    shape.obj
    
    precision?: number

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

    0.01
    

    1e-7

    Infinity

    0.001

    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 OBJ file and of any material library is started where that is possible; the kernel itself only returns the texts.

    true