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 }Import from 3MF format. Returns a shape per object, as importOBJ returns the bodies of a mesh.
Import from GLB format. Returns the bodies of the mesh, as importOBJ does.
Import from OBJ format. Returns one body on its own and several as a compound: a solid per closed body, a shell per open one, a face per loose triangle.
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.
Write an XCAF document to STEP format and return the string.
Optionaloptions: { modelUnit?: string; unit?: string }
Create an XCAF document with named, colored shape nodes. Caller must delete the returned handle.