---
title: "github.com/secondmouseau/occtswift (swift) | Since.dev"
description: "What each github.com/secondmouseau/occtswift release on Swift Package Index removed, renamed or changed, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/secondmouseau/occtswift
last_updated: 2026-12-04
---

# github.com/secondmouseau/occtswift breaking changes

github.com/secondmouseau/occtswift 4.0.0-rc.1 (November 27, 2026) is its newest release with breaking changes, 2 of them. The first: Behavior changed split. Every breaking API change we have recorded in github.com/secondmouseau/occtswift on Swift Package Index: 32 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 27, 2026. [Source repository](https://github.com/SecondMouseAU/OCCTSwift)

- From [4.0.0-beta.1](#v-4-0-0-beta-1) to [4.0.0-rc.1](#v-4-0-0-rc-1): 31 breaking changes in 7 versions.

## github.com/secondmouseau/occtswift 4.0.0-rc.1 breaking changes

github.com/secondmouseau/occtswift 4.0.0-rc.1, released November 27, 2026: 2 breaking changes.

- **Behavior changed** `split`  

A shape far from the plane's point used to be returned whole; it is now cut, so code that relied on one piece may now get two. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-rc.1)
- **Behavior changed** `surfaceCount`  

After reset(), surfaceCount now answers a refusal or 0 instead of the previous count, so code that read the stale value will see a different result. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-rc.1)

## github.com/secondmouseau/occtswift 4.0.0-beta.7 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.7, released November 27, 2026: 2 breaking changes.

- **Behavior changed** `Shape.fromBREPString`  

A BREP string whose trailing space was stripped now throws ImportError.importFailed or returns nil. Stop trimming stored BREP strings, or append a newline or a space after the root reference. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.7)
- **Behavior changed** `Shape.loadBREP`  

A BREP whose trailing space was stripped now throws ImportError.importFailed or returns nil. Stop trimming stored BREP files, or append a newline or a space after the root reference. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.7)

## github.com/secondmouseau/occtswift 4.0.0-beta.6 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.6, released November 27, 2026: 12 breaking changes.

- **Behavior changed** `circularPattern`  

For a partial angle the last copy now lands at the angle. To keep old positions pass angle \* Double(count - 1) / Double(count). [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Behavior changed** `circularPatternWithFullHistory`  

For a partial angle the last copy now lands at the angle. To keep old positions pass angle \* Double(count - 1) / Double(count). [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Behavior changed** `CoordinateSystem3D.direction`  

CoordinateSystem3D.direction now returns the unit direction, so values returned to existing code change. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Behavior changed** `OffsetAncestors.create`  

A positive offset now offsets outward, the opposite of before. Callers that negated the offset to compensate should stop negating. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Behavior changed** `Shape.offsetWire`  

A positive offset now offsets outward, the opposite of before. Callers that negated the offset to compensate should stop negating. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Signature changed** `AssemblyNode.transform`  

The package no longer depends on Apple's simd, so transform is now Matrix4x4F. Use node.transform.columnMajorElements or convert to simd_float4x4 manually. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Signature changed** `Camera.projectionMatrix`  

The package no longer depends on Apple's simd, so projectionMatrix is now Matrix4x4F instead of a simd type. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Signature changed** `Camera.viewMatrix`  

The package no longer depends on Apple's simd, so viewMatrix is now Matrix4x4F instead of a simd type. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Signature changed** `DrawingAnnotation.CuttingPlaneLine.init`  

DrawingAnnotation.CuttingPlaneLine.init is failable, so callers must handle an optional result. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)
- **Signature changed** `GProps.matrixOfInertia`  

The package no longer depends on Apple's simd, so matrixOfInertia is now Matrix3x3D. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.6)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## github.com/secondmouseau/occtswift 4.0.0-beta.5 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.5, released November 27, 2026: 7 breaking changes.

- **Removed** `Shape.isEmptyShape`  

Shape.isEmptyShape is removed. Use Shape.isNull instead. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Edge.length`  

Edge lengths are now measured with adaptive arc length, so returned values change slightly for existing code. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Shape.analyze`  

Shape.analyze(tolerance:) orders each wire before counting gaps, so a primitive box now reads gapCount == 0 and isHealthy == true. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Shape.chamfered`  

Shape.chamfered now answers nil for a result the kernel reported done but BRepCheck found invalid. Force-unwrapping callers will trap. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Shape.filleted`  

Shape.filleted now answers nil for a result the kernel reported done but BRepCheck found invalid. Force-unwrapping callers will trap. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Shape.solid`  

Shape.solid(from:) returns the repaired face of a body that stays open, so the result differs from before. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)
- **Behavior changed** `Shape.solidWithFullHistory`  

Shape.solidWithFullHistory(from:) returns the repaired face of a body that stays open, so the result differs from before. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.5)

## github.com/secondmouseau/occtswift 4.0.0-beta.4 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.4, released November 27, 2026: 2 breaking changes.

- **Removed** `Shape.isSelfIntersecting`  

Shape.isSelfIntersecting(hardTimeout:) is absent on wasm. Use isSelfIntersecting(timeout:) instead, which has a cooperative bound. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.4)
- **Behavior changed** `Document.datum`  

Document.datum(at:) now returns a datum where it previously returned nil for a datum with an annotation point and no plane. Callers asserting the old refusal will see a new value. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.4)

## github.com/secondmouseau/occtswift 4.0.0-beta.3 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.3, released November 27, 2026: 5 breaking changes.

- **Behavior changed**  

Enum raw values changed, so a value persisted by an earlier version or exchanged with another tool is now read as a different case. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.3)
- **Behavior changed** `BoundSortBox.compare`  

BoundSortBox.compare now returns 0-based indices with the same signature, so code relying on the old indices will read different values. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.3)
- **Behavior changed** `dividedByNumber`  

dividedByNumber now actually divides, so existing callers receive different values under the same signature. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.3)
- **Behavior changed** `featCut`  

featCut previously returned the wrong shape for every call; it now returns real geometry, so results change for existing code. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.3)
- **Behavior changed** `featFuse`  

featFuse previously returned the wrong shape for every call; it now returns real geometry, so results change for existing code. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.3)

## Older versions

2 older versions.

### github.com/secondmouseau/occtswift 4.0.0-beta.2 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.2, released November 27, 2026: 1 breaking change.

- **Signature changed** `Edge.adjacentFaces`  

It now returns \[Face\]? instead of (Face, Face?)?, so existing callers will not compile and must be updated. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.2)

### github.com/secondmouseau/occtswift 4.0.0-beta.1 breaking changes

github.com/secondmouseau/occtswift 4.0.0-beta.1, released November 27, 2026: 1 breaking change.

- **Removed** `OCCTDatumInfo.name`  

The name property of OCCTDatumInfo was removed in a change that requires a major version. Code that reads it must stop using it. [github.com](https://github.com/SecondMouseAU/OCCTSwift/releases/tag/v4.0.0-beta.1)

## Related packages

- [github.com/secondmouseau/swiftdxf](https://since.dev/packages/swift/github.com/secondmouseau/swiftdxf.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
