Bitbybit Docs
    Preparing search index...

    Class ConvertStepToGltfDto

    Options for converting STEP to glTF format. Uses native OCCT RWGltf_CafWriter for fast conversion with full attribute preservation.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionalstepData: string | File | Blob | ArrayBuffer | Uint8Array

      Returns ConvertStepToGltfDto

    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