bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class ConvertStepToGltfAdvancedDto

    Advanced options for converting STEP to glTF format. Provides full control over STEP reading, meshing, and glTF options. Use this for performance tuning - disable features you don't need.

    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
    
    readColors: boolean

    Read color attributes from STEP file. Required for colored glTF output.

    true
    
    readNames: boolean

    Read name attributes from STEP file. Disable for faster parsing if names are not needed.

    true
    
    readMaterials: boolean

    Read material attributes from STEP file. Required for material properties in glTF.

    true
    
    readLayers: boolean

    Read layer attributes from STEP file. Usually not needed for glTF output.

    false
    
    readProps: boolean

    Read validation properties from STEP file. Usually not needed for glTF output.

    false
    
    meshDeflection: number

    Mesh precision (linear deflection) for triangulation. Smaller values produce finer meshes but increase file size.

    0.1
    

    0.001

    10

    0.01

    meshAngle: number

    Mesh angular deflection in radians. Controls curvature-based refinement.

    0.5
    

    0.01

    3.14159

    0.1

    meshParallel: boolean

    Enable parallel meshing for multi-threaded builds. Recommended to keep enabled.

    true
    
    faceCountThreshold: number

    Face count threshold for adaptive meshing. Compounds with more faces are meshed per-solid to avoid stack overflow. Set to -1 to always mesh as single unit.

    50000
    

    -1

    500000

    10000

    mergeFaces: boolean

    Merge faces within a single part into one mesh. Produces smaller file sizes.

    true
    
    splitIndices16: boolean

    Prefer 16-bit indices when merging faces. Produces smaller binary data when mesh fits in 16-bit indices.

    true
    
    parallelWrite: boolean

    Enable parallel glTF writing. Recommended for large files.

    true
    
    embedTextures: boolean

    Embed textures in GLB output. Only applies to binary (GLB) format.

    true
    
    forceUVExport: boolean

    Export UV coordinates even without textures.

    false
    
    nodeNameFormat: gltfNameFormatEnum

    Node naming format in output glTF.

    instance
    
    meshNameFormat: gltfNameFormatEnum

    Mesh naming format in output glTF.

    instance
    
    transformFormat: gltfTransformFormatEnum

    Transformation format in output glTF.

    compact
    
    adjustZtoY: boolean

    Convert Z-up (OCCT default) to Y-up (glTF standard). Set to false to keep Z-up coordinate system.

    true
    
    scale: number

    Scale factor for the model. Useful for unit conversion (e.g., 0.001 to convert mm to meters). Set to 1.0 for no scaling.

    1.0
    

    0.000001

    1000000

    0.001