Bitbybit Docs
    Preparing search index...

    Class ConvertStepToGltfDto (Inputs.OCCT)

    A STEP file and meshing settings for io.convertStepToGltf, which converts it into a binary glTF.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionalstepData: string | ArrayBuffer | File | Blob | Uint8Array<ArrayBufferLike>

      Returns ConvertStepToGltfDto

    Properties

    stepData: string | ArrayBuffer | File | Blob | Uint8Array<ArrayBufferLike>

    The STEP file as text, ArrayBuffer, Uint8Array, File or Blob; gzip-compressed .stpz content is unpacked on its own.

    undefined
    
    meshPrecision: number

    How closely triangles follow curved surfaces: with meshRelative true a fraction of each edge's length, otherwise an absolute distance in model units.

    0.005
    

    0.0001

    10

    0.001

    meshAngle: number

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

    0.5
    

    0.01

    3.14159

    0.05

    meshRelative: boolean

    When true, meshPrecision scales with each part's size, so small fasteners and large housings both mesh well; when false it is an absolute distance.

    true
    
    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 precision, at the cost of speed.

    false