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

    Class ConvertStepToGltfWithDracoDto

    Options for converting STEP to glTF format with explicit Draco geometry compression settings. Mirrors ConvertStepToGltfDto and exposes the Draco knobs (8 trailing parameters of the underlying native function).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    stepData: string | File | Blob | ArrayBuffer | Uint8Array

    STEP data as string (for plain text files), ArrayBuffer, Uint8Array, File, or Blob. Supports compressed .stpz files - gzip-compressed data is automatically decompressed.

    undefined
    
    meshPrecision: number

    Mesh linear deflection (triangulation precision). When meshRelative is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%) so small parts get fine meshes and large parts get coarse ones. When meshRelative is false, this is an absolute value in model units (mm for STEP).

    0.005
    

    0.0001

    10

    0.001

    meshAngle: number

    Mesh angular deflection in radians (max normal deviation between adjacent triangles). Smaller values produce smoother curved surfaces but more triangles.

    0.5
    

    0.01

    3.14159

    0.05

    meshRelative: boolean

    Use size-aware relative deflection per face. Recommended default for mixed-scale assemblies (machine + small fasteners) - dramatically reduces triangle count and meshing time with negligible visual difference. Set to false for absolute deflection (the value of meshPrecision is then interpreted in model units).

    true
    
    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
    
    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