Skip to main content
Every failure throws an OGError. Catch it and branch on code:
An OGError has:
  • code: a stable name, such as InvalidParameter.
  • call: the call that failed, such as Solid.constructor.
  • message: a text for people. Do not parse it.
  • details: an object with more data for some codes. For a failed operate it has handlers, attempted, families, toolIndex and ogIds.
A call that throws leaves the document as it was.

Codes

Events

OpenGeometry.on(event, handler) subscribes to the runtime. It returns a function that unsubscribes.

A fatal error

After a KernelPanic, the runtime sends 'fatal' and refuses every kernel call with KernelPanic. Call OpenGeometry.reset(), then make your bodies again.

Limits

  • One to a hundred tool solids in one operate call.
  • measure caps its mesh at 2 000 000 triangles.
  • A 2D region boolean takes at most 100 000 points or edges across both operands.
  • Sizes must be above four times the geometric tolerance, 4e-8 m.
  • Some pairs of curved surfaces are not covered yet and throw CoverageGap. Some refused booleans take seconds, because the kernel tries several methods before it refuses.
Last modified on November 10, 2026