From adf05509e9d8e68c517a3ed4105d78d3a6d0da27 Mon Sep 17 00:00:00 2001 From: Vishwajeet Date: Tue, 17 Nov 2026 00:52:50 +0200 Subject: [PATCH] Prepare the 3.0.1 release --- CHANGELOG.md | 34 +++++++++++++++++++++++ MIGRATION.md | 2 +- docs/opengeometry/changelog.mdx | 19 +++++++++++++ main/opengeometry/Cargo.lock | 2 +- main/opengeometry/Cargo.toml | 2 +- main/opengeometry/test-support/Cargo.lock | 2 +- main/package-lock.json | 4 +-- main/package.json | 2 +- 8 files changed, 60 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d0af69a..43c6f6f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/MIGRATION.md b/MIGRATION.md index dc3b3cca..e60fbe46 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -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 diff --git a/docs/opengeometry/changelog.mdx b/docs/opengeometry/changelog.mdx index d12141eb..b01a1914 100644 --- a/docs/opengeometry/changelog.mdx +++ b/docs/opengeometry/changelog.mdx @@ -5,6 +5,25 @@ icon: clock-rotate-left rss: true --- + + +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. + + + 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). diff --git a/main/opengeometry/Cargo.lock b/main/opengeometry/Cargo.lock index f09a853c..7899c5b4 100644 --- a/main/opengeometry/Cargo.lock +++ b/main/opengeometry/Cargo.lock @@ -164,7 +164,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "opengeometry" -version = "3.0.0" +version = "3.0.1" dependencies = [ "console_error_panic_hook", "earcutr", diff --git a/main/opengeometry/Cargo.toml b/main/opengeometry/Cargo.toml index cd08c3c9..3f596618 100644 --- a/main/opengeometry/Cargo.toml +++ b/main/opengeometry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opengeometry" -version = "3.0.0" +version = "3.0.1" edition = "2021" license = "MPL-2.0" diff --git a/main/opengeometry/test-support/Cargo.lock b/main/opengeometry/test-support/Cargo.lock index 47d8439b..44b7f4b2 100644 --- a/main/opengeometry/test-support/Cargo.lock +++ b/main/opengeometry/test-support/Cargo.lock @@ -84,7 +84,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "opengeometry" -version = "3.0.0" +version = "3.0.1" dependencies = [ "console_error_panic_hook", "earcutr", diff --git a/main/package-lock.json b/main/package-lock.json index f77d8321..319bcb53 100644 --- a/main/package-lock.json +++ b/main/package-lock.json @@ -1,12 +1,12 @@ { "name": "opengeometry", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opengeometry", - "version": "3.0.0", + "version": "3.0.1", "license": "MPL-2.0", "devDependencies": { "@eslint/js": "9.35.0", diff --git a/main/package.json b/main/package.json index 06b34dfb..2ec9726c 100644 --- a/main/package.json +++ b/main/package.json @@ -1,6 +1,6 @@ { "name": "opengeometry", - "version": "3.0.0", + "version": "3.0.1", "private": true, "type": "module", "license": "MPL-2.0",