Bitbybit Docs
    Preparing search index...

    Class ConvertStepToGltfAdvancedDto (Inputs.OCCT)

    A STEP file with every reading, meshing and writing option for io.convertStepToGltfAdvanced; switch off what is not needed for a faster conversion.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

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

      Returns ConvertStepToGltfAdvancedDto

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

    When true, colors are read from the file; needed for a colored glTF.

    true
    
    readNames: boolean

    When true, part names are read from the file; switch it off for faster parsing when names are not needed.

    true
    
    readMaterials: boolean

    When true, materials are read from the file; needed for material properties in the glTF.

    true
    
    readLayers: boolean

    When true, layer information is read from the file; rarely needed for glTF.

    false
    
    readProps: boolean

    When true, validation properties are read from the file; rarely needed for glTF.

    false
    
    meshDeflection: 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.1

    meshParallel: boolean

    When true, faces are meshed on several threads where the build allows it.

    true
    
    faceCountThreshold: number

    Above this many faces the assembly is meshed solid by solid to save memory; -1 meshes everything in one pass, which is fastest.

    -1
    

    -1

    500000

    10000

    meshRelative: boolean

    When true, meshDeflection 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
    
    mergeFaces: boolean

    When true, the faces of a part are joined into one mesh, which makes a smaller file.

    true
    
    splitIndices16: boolean

    When true, merged meshes use 16-bit indexes where they fit, which makes a smaller file.

    true
    
    parallelWrite: boolean

    When true, the glTF is written on several threads, which helps with large files.

    true
    
    embedTextures: boolean

    When true, textures are embedded in the GLB instead of referenced as separate files.

    true
    
    forceUVExport: boolean

    When true, texture coordinates are written even for meshes without textures.

    false
    
    nodeNameFormat: gltfNameFormatEnum

    What the glTF nodes are named after: the instance, the product, a combination, or nothing.

    instance
    
    meshNameFormat: gltfNameFormatEnum

    What the glTF meshes are named after: the instance, the product, a combination, or nothing.

    instance
    
    transformFormat: gltfTransformFormatEnum

    How node placements are written: compact as translation, rotation and scale where possible, mat4 always as a matrix, trs always as the three parts.

    compact
    
    adjustZtoY: boolean

    When true, the file's Z-up is turned into glTF's Y-up; false keeps Z up.

    true
    
    scale: number

    A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps the size.

    1.0
    

    0.000001

    1000000

    0.001