Skip to content

v3.0.0 - stable, on OCCTSwift 4.0.0

Latest

Choose a tag to compare

@gsdali gsdali released this 28 Nov 00:31
b5aa3b2

The stable v3.0.0. Everything in v3.0.0-beta.1 to v3.0.0-beta.8 is in it, plus what merged to main after beta.8 (below). It is taken with from: "3.0.0", no longer by naming a pre-release, and it requires OCCTSwift 4.0.0 or later and OCCTSwiftIO 2.0.0 or later (#90, refs #74): the betas pinned OCCTSwift to exactly 4.0.0-beta.6 and took OCCTSwiftIO from 2.0.0-beta.4. The 2.0.0 line stays on OCCTSwift 3.

.package(url: "https://github.com/SecondMouseAU/OCCTSwiftInteraction.git", from: "3.0.0")

3.0.0 is a major because OCCTSwift 4.0.0 replaced the untyped GD&T types that CADLoadResult exposes (OCCTSwift#996), and the betas carry further breaks: Axis is renamed ComparisonAxis (#60) and the InteractiveObject, SubShapeRef and SubShape aliases in OCCTSwiftAIS are removed (#61). The per-change entries, with their migrations, are in docs/CHANGELOG-OCCTSwiftCADKit.md, -OCCTSwiftAIS.md and -OCCTSwiftTools.md under ## 3.0.0 and the beta headings.

Since beta.8

Breaking

  • CADKit: SelectionChangeSource has a new case, bodyRecut(bodyID:), so an exhaustive switch over it with no default needs the case (#77). Handle it as you handle bodyRemoved(bodyID:) if you keep picks per body: a recut renumbers the body's sub-shapes and mints its durable uids afresh.

Fixed (CADKit)

  • A cap recut left the selection naming the uncut body's sub-shapes; it is now remapped through OCCT's split history, so selection, PickedFaceInfo.uid and selection.json follow the recut (#77).
  • A cap plane whose point is far from a body left the body uncut and uncapped. The cap kept its own copy of OCCTSwift's plane split, which centred its cutting face on the plane's point; a 4 x 4 x 4 box at x = 100 against z = 0.5 came back as one solid where Shape.split(atPlane:normal:) on OCCTSwift 4.0.0 gives two. The cap now calls Shape.splitWithFullHistory(atPlane:normal:) and the copy is gone (#90).
  • A selection highlight went stale when a comparison changed the bodies under it (#72), was drawn where a side-by-side candidate was not (#73), was still drawn for a hidden entity (#78), and a vertex highlight stayed lit where a wipe draws nothing (#79).

New (AIS)

  • InteractiveContext.select(_:scheme:) over a set of sub-shapes applies the scheme to every member at once, so selection publishes one change (#77). Additive.

Verification

Resolved from the published URLs (OCCTSwift 4.0.0, OCCTSwiftIO 2.0.0, SwiftDXF 0.6.1, SwiftJWW 2.0.0, OCCTSwiftViewport 1.3.3): the build is clean of errors and all 513 tests pass, run serially with OCCT_SERIAL=1 swift test --parallel --num-workers 1 (75 in OCCTSwiftToolsTests, 230 in OCCTSwiftCADKitTests, 208 in OCCTSwiftAISTests, 53 suites). tests and code-style are green on the merge commit.