Bitbybit Docs
    Preparing search index...

    Class ExportDocumentToGltfDto<T> (Inputs.OCCT)

    A document, meshing settings and file options for assembly.manager.exportDocumentToGltf.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • OptionalmeshDeflection: number
      • OptionalmeshAngle: number
      • OptionalmergeFaces: boolean
      • OptionalforceUVExport: boolean
      • OptionalfileName: string
      • OptionaltryDownload: boolean

      Returns ExportDocumentToGltfDto<T>

    Properties

    document: T

    The document from buildAssemblyDocument or loadStepToDoc.

    undefined
    
    meshDeflection: number

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

    0.1
    
    meshAngle: number

    The largest angle, in radians, between the normals of neighboring triangles; smaller gives smoother curves.

    0.5
    
    internalVerticesMode: boolean

    When true, extra vertices are added inside curved faces for a closer fit, at the cost of speed.

    false
    
    controlSurfaceDeflection: boolean

    When true, an extra pass refines triangles that bulge beyond the deflection, at the cost of speed.

    false
    
    mergeFaces: boolean

    When true, faces with the same material are joined into one mesh; false keeps every face separate.

    false
    
    forceUVExport: boolean

    When true, texture coordinates are written even for meshes without textures.

    false
    
    fileName: string

    The name the downloaded file gets; it should end in .glb.

    assembly.glb
    
    tryDownload: boolean

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

    false