Skip to main content
OpenGeometry 3.0 has a new API. Code written for 2.0 does not run on 3.0 without changes. Version 2.5 was not published: from 2.0, move straight to 3.0. The full guide is MIGRATION.md in the repository. It gives each change with code before and after, a table of replacements, every change of behaviour, and the checks to run at the end.

The main changes

Removed

These 2.0 features are not in 3.0, and have no replacement: IFC file text, STL and PDF export, projection, loft, triangulation as a public call, and curves other than lines, circles, arcs and polylines, such as the elliptical arc. Take that code out, or stay on 2.0. 3.0 has no spline, no ellipse and no elliptical arc. The 2.0 wedge and the 2.0 Curve class are gone too. Build a wedge as a five-face OG_PRIMITIVE_POLYHEDRON, and a 2.0 Curve as an OG_PRIMITIVE_POLYLINE wire through its points, as the next section shows.

Wedges and the 2.0 curve

A wedge is a five-face polyhedron: two triangles and three rectangles. Give its points and its faces to OG_PRIMITIVE_POLYHEDRON. Each face is a ring of point indices, counter-clockwise seen from outside.
This ramp is 2 m long, 1 m wide and 1 m high at its tall end. You can also extrude a closed triangle: a closed OG_PRIMITIVE_POLYLINE wire as the profile of OG_OPERATION_EXTRUDE. The 2.0 Curve was a polyline through its control points. In 3.0, make an OG_PRIMITIVE_POLYLINE wire through the same points.

How to move

  1. Install 3.0 and run your type check. A call to a 2.0 class or function fails at compile time.
  2. For each failure, find the call in MIGRATION.md under “Replace this with that”.
  3. Read “Different behaviour”, because some calls keep their name and change what they return.
  4. Run the “Check your result” steps.
The API reference lists every 3.0 export.
Last modified on November 10, 2026