Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,40 @@ All notable changes to the `opengeometry` package are in this file. The format f
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the package follows
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.1] - 2026-11-17

Some booleans that threw in 3.0.0 now build, and some refused pairs throw a different error.
See "3.0 to 3.0.1" in [MIGRATION.md](./MIGRATION.md) for each case.

### Changed

- `operate` builds the union and the intersection of two planar solids that are not both
axis-aligned boxes: a turned cuboid, a polyhedron with sloped faces such as a roof, or a
polyhedron that is not convex. Faces of both bodies that lie in one plane and face the same
way become one face. The report's `handlers` is `['boolean_planar_polyhedra']`.
- `OG_OPERATION_SUBTRACT` cuts an extrusion whose profile has arcs, or a cylinder, with a
slanted cuboid or convex prism, such as a mitre. The cut end is an exact ellipse, and two
mitres work in one call. A cuboid or convex prism minus a slanted rod also builds.
- Two planar solids that touch on a face unite into one solid. Their intersection, and a
subtraction that leaves nothing, throw `EmptyResult`.
- A union or intersection of two planar solids that is still refused throws `CoverageGap` with
`details.families` equal to `['layered planar profile extrusion', 'layered planar profile extrusion']`,
not `['canonical aligned cuboid', 'canonical aligned cuboid']`. Code that matches the old pair
must match the new one.

### Fixed

- Subtracting a body that lies wholly inside another made a cavity for only one of its solids
and could put it in the wrong solid. Each solid now gets its cavity in the solid that holds it.
- A body with a cavity or several solids whose shells lie on different sides of the other body
gave a wrong result for some pairs. It now throws `UnresolvedIntersection`.
- Subtracting a hollow body that lies wholly inside another threw `InvalidTopology`, and
subtracting a body that only stands on a face of the host threw `InvalidTopology`. Both build.
- A pair where one solid lay inside the other, very close to its face, threw
`UnresolvedIntersection`. It builds.
- Flat faces that are parallel up to rounding, as after turning a polyhedron about a slanted
axis, made some booleans throw `UnresolvedIntersection`. They build.

## [3.0.0] - 2026-11-10

3.0 is a new API. Code written for 2.0 does not run without changes. Version 2.5 was not
Expand Down
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It is written for people and for coding assistants alike: each section says what
4. For a name the table does not list, look in "Partly replaced". Anything listed under "Removed" has no replacement: take that code out, or stay on the older version.
5. Finish with its "Check your result" steps.

## Unreleased
## 3.0 to 3.0.1

### What changed

Expand Down
19 changes: 19 additions & 0 deletions docs/opengeometry/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ icon: clock-rotate-left
rss: true
---

<Update label="3.0.1" description="2026-11-17">

Some booleans that threw in 3.0.0 now build, and some refused pairs throw a different error.

### Changed

- **Planar union and intersection.** `operate` unites and intersects turned cuboids, sloped polyhedra such as roofs, and polyhedra that are not convex. Coplanar faces of both bodies merge into one face.
- **Slanted cuts of arc extrusions.** Subtract a slanted cuboid or convex prism, such as a mitre, from an extrusion with arcs or a cylinder. The cut end is an exact ellipse.
- **Touching solids.** Two planar solids that touch on a face unite into one solid. Their intersection, and a subtraction that leaves nothing, throw `EmptyResult`.
- **`CoverageGap` details.** A refused planar union or intersection names `['layered planar profile extrusion', 'layered planar profile extrusion']` in `details.families`.

### Fixed

- Subtracting a body wholly inside another gives each of its solids a cavity in the right solid.
- Some bodies with cavities or several solids gave a wrong result. They now throw `UnresolvedIntersection`.
- Some contained, hollow, touching or slightly turned pairs that threw `InvalidTopology` or `UnresolvedIntersection` now build.

</Update>

<Update label="3.0.0" description="2026-11-10">

3.0 is a new API. Code written for 2.0 does not run without changes. Follow [Migrate from 2.0](/opengeometry/migrate-from-2-0).
Expand Down
2 changes: 1 addition & 1 deletion main/opengeometry/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main/opengeometry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opengeometry"
version = "3.0.0"
version = "3.0.1"
edition = "2021"
license = "MPL-2.0"

Expand Down
2 changes: 1 addition & 1 deletion main/opengeometry/test-support/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions main/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opengeometry",
"version": "3.0.0",
"version": "3.0.1",
"private": true,
"type": "module",
"license": "MPL-2.0",
Expand Down
Loading