Configure STEP writer standard settings (color, layer, name, schema).
Create an XCAF document with named, colored shape nodes. Caller must delete the returned handle.
Export shape to 3MF format. Returns binary data.
Export shape to GLB format. Returns binary data.
Export shape to OBJ format. Returns binary data.
Export shape to PLY format (binary). Returns binary data.
Optionaloptions: { unit?: string }Export shapes to STEP with full configuration (units, assembly mode).
Optionaloptions: { modelUnit?: string; schema?: number; unit?: string }Optionalbinary: booleanImport from 3MF format. Returns solid shapes.
Import from GLB format. Returns a solid shape.
Import from OBJ format. Returns a solid shape.
Serialize a shape to a string format for persistence.
Cross-kernel warning: The serialization format is kernel-specific. OCCT uses its native BREP text format; brepkit proxies to STEP. Data produced by one kernel cannot be deserialized by the other.
Create a kernel color from RGB 0-255 and alpha 0-1.
Wrap a JS string as a kernel extended string.
Write an XCAF document to STEP format and return the string.
Optionaloptions: { modelUnit?: string; unit?: string }
Configure STEP writer unit settings.