bitbybit.dev v1.0.2
    Preparing search index...

    Class ExportDocumentToGltfWithDracoDto<T>

    DTO for exporting an assembly document directly to glTF (GLB) format with explicit Draco geometry compression settings. Mirrors ExportDocumentToGltfDto and exposes the 8 Draco knobs of the underlying native function.

    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 ExportDocumentToGltfWithDracoDto<T>

    Properties

    document: T

    Assembly document handle from buildAssemblyDocument or loadStepToDoc

    undefined
    
    meshDeflection: number

    Mesh precision for triangulation. Lower values = finer mesh.

    0.1
    
    meshAngle: number

    Angular deflection for meshing in radians. Lower values = smoother curves.

    0.5
    
    internalVerticesMode: boolean

    Add interior vertices for better curved face fidelity (slower, set false for speed).

    false
    
    controlSurfaceDeflection: boolean

    Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed).

    false
    
    mergeFaces: boolean

    Whether to merge faces with same material for optimization. Set to false to preserve face boundaries.

    false
    
    forceUVExport: boolean

    Whether to texture coordinates (UVs).

    false
    
    fileName: string

    File name for download (optional, should end with .glb)

    assembly.glb
    
    tryDownload: boolean

    Whether to trigger a file download in the browser

    false
    
    useDraco: boolean

    Enable Draco geometry compression on output.

    true
    
    dracoCompressionLevel: number

    Draco compression level - 0 (fastest, largest) ... 10 (slowest, smallest).

    7
    

    0

    10

    1

    dracoQuantizePositionBits: number

    Quantization bits for vertex positions.

    14
    

    0

    31

    1

    dracoQuantizeNormalBits: number

    Quantization bits for normals.

    10
    

    0

    31

    1

    dracoQuantizeTexcoordBits: number

    Quantization bits for texture coordinates (UVs).

    12
    

    0

    31

    1

    dracoQuantizeColorBits: number

    Quantization bits for vertex colors.

    8
    

    0

    31

    1

    dracoQuantizeGenericBits: number

    Quantization bits for generic attributes.

    12
    

    0

    31

    1

    dracoUnifiedQuantization: boolean

    Apply a single quantization grid across all attributes.

    false