Skip to content

v1.15.0 — TopologyGraph renamed to BRepGraph

Choose a tag to compare

@gsdali gsdali released this 20 Jul 10:16
b71b657

TopologyGraph read as too close to OCCT's own TopoDS_* family (TopoDS_Shape, TopoDS_Face, ...) on a skim, without signaling that it specifically wraps the BRepGraph durable-identity engine. Renamed to BRepGraph, matching both the C++ package it wraps and this file's own name (BRepGraph.swift). Closes #333.

Deprecated typealias — existing code keeps compiling

@available(*, deprecated, renamed: "BRepGraph")
public typealias TopologyGraph = BRepGraph

Existing code compiles unchanged (with a deprecation warning) under the old name. New code should use BRepGraph. The typealias stays until a later release drops it per the usual deprecation policy — no removal date set yet.

Docs

Docs move alongside the rename: docs/reference/TopologyGraph*.mdBRepGraph*.md, docs/guides/cookbook/topology-graph*.mdbrep-graph*.md. Also fixes a pre-existing bug in docs/reference/Measurement.md: both angle() examples called shape.topologyGraph() / graph.constructionAxes() / graph.constructionPlanes(), none of which exist in the source — replaced with real, verified-working examples.

Tests/OCCTTopologyGraphTestsTests/OCCTBRepGraphTests (internal only, no consumer-visible effect).

Full changelog: https://github.com/SecondMouseAU/OCCTSwift/blob/main/docs/CHANGELOG.md#v1150-july-2026--topologygraph-renamed-to-brepgraph-closes-333