Link Search Menu Expand Document

OCCTSwiftIO API Reference

A per-type function reference for the public OCCTSwiftIO + MeshIO API: one page per type or logical group, every public symbol documented with its real signature, parameters, return, and a runnable example.

The package spans two products:

  • OCCTSwiftIO (OCCT-backed): CAD load/export, JWW, manifests, ML export.
  • MeshIO (pure Swift, no OCCT): mesh formats into a neutral Mesh.

Pages

OCCTSwiftIO (CAD)

  • ShapeLoader: load / loadRobust / loadFromManifest, and the ShapeLoadResult it returns.
  • ExportManager: export(shapes:format:to:deflection:) and the ExportFormat enum.
  • CADFileFormat: the load-side format enum and its extension initializer.
  • ScriptManifest: ScriptManifest, BodyDescriptor, ManifestMetadata.
  • ImportProgressClosure: closure-backed ImportProgress + cancellation.
  • GraphExport (ML): BRepGraph.exportForML() / exportJSON() and the GraphExport struct.
  • CADBodyMetadata: sub-body selection metadata produced by the bridge layer.
  • DirectoryWatcher: kqueue-backed file/directory change notifications (macOS-only).

MeshIO (mesh)

  • Mesh: the neutral indexed-triangle value type.
  • MeshIO: load / write plus MeshFormat and MeshError.
  • Mesh format readers: STL, OBJ, PLY (native) and the glTF / 3MF adapters.

Coverage

  • Formats: the full read/write coverage table and per-format notes.

Table of contents