Bitbybit Docs
    Preparing search index...

    Class ExportDocumentToObjDto<T> (Inputs.OCCT)

    A document, a meshing tolerance and file options for assembly.manager.exportDocumentToObj, which writes the document as an OBJ file with the material library its mtllib line names.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • OptionalmeshDeflection: number
      • OptionalfileName: string
      • OptionaltryDownload: boolean

      Returns ExportDocumentToObjDto<T>

    Properties

    document: T

    The document from buildAssemblyDocument, loadStepToDoc or another loader.

    undefined
    
    meshDeflection?: number

    How closely triangles follow curved surfaces, in model units; smaller gives a finer mesh.

    0.1
    

    1e-7

    Infinity

    0.01

    fileName?: string

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

    assembly.obj
    
    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.

    false