STEP file content and mesh precision settings. Accepts File, Blob, string, ArrayBuffer, or Uint8Array.
GLB binary data as Uint8Array (can be used directly with Three.js, Babylon.js, etc.)
Convert a STEP file to glTF format with full control over all options.
This advanced method allows fine-grained control over:
Use this for performance tuning - disable features you don't need for faster processing.
Advanced options including STEP data, mesh settings, and glTF settings.
GLB binary data as Uint8Array
// Fast conversion - only colors, no names (for large files)
const glbData = await occt.io.convertStepToGltfAdvanced({
stepData: stepContent,
readColors: true,
readNames: false, // Skip name parsing for speed
readMaterials: true,
readLayers: false,
readProps: false,
meshDeflection: 0.1,
meshParallel: true,
mergeFaces: true
});
Parse a STEP file and return the assembly structure as JSON.
Uses OCCT's native XCAFPrs_DocumentExplorer for efficient traversal. Runs entirely in C++ for maximum performance.
Returns an object containing an array of nodes with:
STEP file content. Accepts File, Blob, string, ArrayBuffer, or Uint8Array.
Parsed assembly structure
Creates DXF paths from an OCCT shape Important - shapes containing wires must lie on XZ plane (Y=0) for correct 2D DXF export.
Shape to convert to DXF paths
Adds layer and color information to DXF paths Important - shapes containing wires must lie on XZ plane (Y=0) for correct 2D DXF export.
DXF paths, layer name, and color
Assembles multiple path parts into a complete DXF file. Important - shapes containing wires must lie on XZ plane (Y=0) for correct 2D DXF export.
Multiple DXF paths parts
Saves the step file
STEP filename and shape to be saved
Saves the step file and returns the text value
STEP filename and shape to be saved
Saves the stl file
STL filename and shape to be saved
Saves the stl file and returns
STL filename and shape to be saved
Imports the step or iges asset file
OCCT Shape
Imports the step or iges asset file from text
OCCT Shape
Convert a STEP file to glTF format (binary GLB).
Uses OCCT's native RWGltf_CafWriter for fast conversion with full preservation of:
The coordinate system is automatically converted from OCCT (Z-up) to glTF (Y-up).