arris
A B-Rep geometric kernel in pure Rust, for code-CAD scripts, AI agents and CAE pipelines.
An arris is the sharp edge where two surfaces meet — the thing a B-Rep kernel exists to compute.
Arris is a library, not an application. It builds solids, cuts and fuses them, blends their edges, measures, tessellates and exports them, from Rust or from Python. Four things set it apart:
- Every operation says what it did. It returns the new body and a provenance record — the faces, edges and vertices it generated, modified and deleted — so a script can pick "the edge the extrude made" instead of an index that shifts when the model changes.
- It refuses rather than guesses. Geometry it cannot do is a typed error naming the entities involved, never a panic and never an invalid shape; every result passes the invariant checker. Every vertex, edge and face carries its own tolerance instead of one global epsilon.
- It is deterministic. Same input, same output, same entity ids, on
every platform: a body built for
wasm32is byte-identical to the native one. - It is pure Rust. No
unsafe, no C++ underneath, one crate to depend on, and a Python wheel built from the same code.
Pre-1.0: the API breaks between minor versions. CHANGELOG.md lists every change, and every break with its fix.
Install
Python — a prebuilt wheel for Linux, macOS and Windows, no Rust toolchain needed:
pip install arris
Rust — one crate, arris, re-exports the whole kernel; the API is on
docs.rs:
cargo add arris
Example: a bracket in Python
Rotate it in 3D in your browser, and see which faces each operation made
# A motor-mount bracket: extruded L profile, fused boss, bore and bolt pattern cut
# in one call, fillets on the bend and hole rims, and a chamfer on the boss.
# Full script with per-operation face colouring: crates/arris-py/examples/bracket.py
import arris
from arris.build import Solid, Workplane
# 1. Extrude the L plate, then fuse a boss on the upright leg
plate = Workplane.XZ().polygon([(0, 0), (60, 0), (60, 8), (8, 8), (8, 50), (0, 50)]).extrude(-40)
boss = Solid.cylinder((8, 20, 32), (1, 0, 0), 14, 12)
boss = boss.tag("boss", boss.faces()) # a tag follows its faces through every later operation
part = plate.fuse(boss)
# 2. Cut bore, bolt holes and counterbores in one multi-tool call
bore = Solid.cylinder((-1, 20, 32), (1, 0, 0), 8, 23)
holes = [Solid.cylinder((40, y, -1), (0, 0, 1), 3.5, 10) for y in (8, 32)]
wells = [Solid.cylinder((40, y, 5), (0, 0, 1), 6, 4) for y in (8, 32)]
part = part.cut(bore, *holes, *wells)
# 3. Fillets and chamfer: edges selected by provenance, never by index
bend = part.edges().from_role(arris.Role("extrude", "Rise", 0, 3)).one()
part = part.fillet([bend], 4)
skin = part.faces().kind("plane").normal((0, 0, 1)) - part.faces().created_by(wells[0]) - part.faces().created_by(wells[1])
walls = (part.faces().created_by(wells[0]) | part.faces().created_by(wells[1])).kind("cylinder")
rims = walls.edges() & skin.edges()
part = part.fillet(rims, 0.8)
crown = part.faces().tagged("boss")
lip = (crown.kind("plane").edges() & crown.kind("cylinder").edges()).one()
part = part.chamfer([lip], 1.5)
The binding beneath
arris.build is pure Python over the binding, arris.Model, which stays
available for anything the layer does not wrap:
# A motor-mount bracket: extruded L profile, fused boss, bore and bolt pattern cut
# in one call, fillets on the bend and hole rims, and a chamfer on the boss.
# Every face is coloured by the operation that made it, followed through provenance.
# The same part on the raw binding; the layer above it is the first snippet.
import arris
model = arris.Model()
# 1. Extrude the L plate
profile = arris.Profile(
arris.Loop.polygon([(0, 0), (60, 0), (60, 8), (8, 8), (8, 50), (0, 50)]),
origin=(0, 0, 0), normal=(0, -1, 0), x_axis=(1, 0, 0),
)
plate, plate_rec = model.extrude(profile, (0, 1, 0), 40)
# 2. Fuse a boss on the upright leg
boss, boss_rec = model.primitive_cylinder((8, 20, 32), (1, 0, 0), 14, 12)
body, fuse_rec = model.fuse(plate, boss)
# 3. Cut bore, bolt holes, and counterbores in one multi-tool call
wells = [model.primitive_cylinder((40, y, 5), (0, 0, 1), 6, 4) for y in (8, 32)]
tools = [
model.primitive_cylinder((-1, 20, 32), (1, 0, 0), 8, 23)[0],
*(model.primitive_cylinder((40, y, -1), (0, 0, 1), 3.5, 10)[0] for y in (8, 32)),
*(w for w, _ in wells),
]
body, cut_rec = model.cut_many(body, tools)
history = plate_rec.then(fuse_rec).then(cut_rec)
# 4. Fillets and chamfer: edges selected by provenance
[bend] = [e for e in history.generated_from(arris.Role("extrude", "Rise", 0, 3)) if isinstance(e, arris.Edge)]
body, _ = model.fillet(body, [bend], 4)
rims = [
e for _, w_rec in wells
for f in w_rec.generated_from(arris.Role("cylinder", "Wall"))
for e in cut_rec.generated_from(f)
if isinstance(e, arris.Edge)
]
body, _ = model.fillet(body, rims, 0.8)
[lip] = [e for e in boss_rec.generated_from(arris.Role("cylinder", "TopRim")) if isinstance(e, arris.Edge)]
body, _ = model.chamfer(body, [lip], 1.5)
What it does
| Area | What you get |
|---|---|
| Modelling | Primitives, rigid transforms and mirroring; extrude (in any direction) and revolve of profiles of lines, arcs and elliptic arcs, including the horn and spindle tori an arc clear of the axis or ending on it makes; offset faces, shell to a wall, split by a plane; a profile as a one-face sheet body |
| Sweep and loft | Sweep a profile along lines, arcs, helix arcs and B-spline curves, with rotation-minimising or fixed-binormal frames; loft through two or more profiles, ruled or smooth |
| Booleans | Cut, fuse and common, one tool or many in one call, in any pose, over planes, cylinders, elliptic cylinders, cones, spheres, tori and NURBS faces — free-form against analytic and free-form against free-form. Results can have cavities, split pieces and disjoint shells. Fuses and through-cuts can produce touching lumps, each keeping its own contact edges and vertices. |
| Fillet and chamfer | Constant-radius fillets and single-distance chamfers along chains of edges, with miters, corners, steps, hole rims, seam crossings (square or slanted) and tangent cusps. A fillet can use a ball as large as the wall it rolls on (horn and spindle tori) or roll over the face's edge or a hole's rim. Blends on free-form faces use fitted NURBS surfaces. |
| Queries | Ray hits, exact point classification in a batch (inside, outside, on or undecided), minimum distance, interference with the shared volume, clash screening of an assembly and planar sections. Volume, centroid and inertia for a solid, and area, centroid and surface inertia for a body or face. A tight world-axis-aligned box of any entity, face frames and plane projection. |
| Meshing | Tessellation to a chord tolerance, per face or for the whole body. Meshes from the same body's faces weld along their shared edges. NumPy arrays from Python. |
| STEP | Every solid or surface model in a file read as a checked body (horn and spindle tori included) or a typed refusal naming why; small gaps closed and reversed faces turned back, each repair named on the body; assemblies; AP214 export in the unit you choose |
| Other formats | STL and OBJ export; a deterministic native format in JSON and bytes, which every later release reads |
Not yet
- Blends take one radius or distance along the chain. Some corners,
tangent chains and oversized blends return
VertexBlend,TangentChainorBlendTooLarge. - Offset and shell refuse elliptic-cylinder and NURBS faces.
- Booleans refuse NURBS faces that lie flush against another face over an
area, and report
NonManifoldorTangentContactfor contacts that would leave a single lump touching itself. - The STEP reader refuses surface models whose faces need sewing.
Arris is narrower than Open CASCADE and is not aiming for feature parity. docs/COMPARISON.md sets out what each does today and where they differ, and its capability matrix, held cell for cell by a test, gives what each operation does and refuses for each face kind.
How it is tested
- An oracle for every fixture. The corpus records Open CASCADE's measurements, counts and point classifications. Where its measurements disagree with a verified closed form or second oracle, the fixture uses that reference. Open CASCADE runs through Python in the test tools. PROVENANCE.md
- A checker after every operation. Every result passes the invariant checker, which runs after every operation in debug builds.
- Properties over random operands. Volume additivity, cut-then-fuse, commutativity, STEP round trips and more, over random operands in random poses from a fixed seed; nightly on a seed drawn from the date, up to five times CI's case count within a time budget.
- Real parts. A corpus of real STEP parts is read, checked, cut and blended, and a differential runs random recipes through Arris and Open CASCADE side by side.
Workspace
crates/arris is the facade a consumer depends on. It re-exports the
layered crates beneath it, and a crate never depends on one above it
(tools/check-layers.sh holds that in CI and in the pre-commit hook):
| Crate | Holds |
|---|---|
arris-math |
Points, frames, intervals, tolerances, the deterministic transcendentals |
arris-geom |
Curves and surfaces, NURBS, intersections, sections and fits |
arris-topo |
The B-Rep in an arena: bodies, shells, faces, edges, vertices, provenance |
arris-check |
The invariant checker |
arris-ops |
Primitives, booleans, blends, sweeps, lofts, queries |
arris-mesh |
Tessellation |
arris-io |
STEP, STL, OBJ and the native format |
arris-py |
The Python binding, published to PyPI |
arris-debug holds the developer tools — the rasteriser, the fixtures, the
property-test strategies — and is not published. The layout and its reasons
are in docs/ARCHITECTURE.md.
Prior work
Arris stands on four open projects, and it reads them, not copies them. Arris contains no code, comments or identifiers from any of them, and no line-by-line translation. Each one was read for its algorithms and for the mistakes it made, and the approach was reimplemented for Arris's own representation. PROVENANCE.md sets out the rule.
- Open CASCADE (LGPL 2.1, with an exception). The mature C++ kernel, and the test oracle. Arris runs it through Python to produce expected values; no crate links it, at build or run time. See docs/COMPARISON.md.
- truck. The original pure-Rust NURBS B-Rep. Arris learns from its NURBS evaluation, its tessellation and its marching intersections, and from why they fail at seams.
- monstertruck. An active fork of truck, with fillets, healing and more STEP. Arris learns from its fillet and healing work.
- Fornjot. A validation-first B-Rep kernel, which never reached booleans. Arris learns from its layered validation and its per-object checks.
Licence
MIT or Apache-2.0, at your option. See LICENSE-MIT and LICENSE-APACHE.
Metadata
Release files for arris 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arris-0.12.1.tar.gz | 3.0 MB | With provenance | Details for arris-0.12.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| arris-0.12.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for arris-0.12.1-cp310-abi3-win_amd64.whl |
| arris-0.12.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for arris-0.12.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| arris-0.12.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for arris-0.12.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| arris-0.12.1-cp310-abi3-macosx_11_0_x86_64.whl | CPython 3.10 | abi3 | macOS 11.0+ x86-64 | Details for arris-0.12.1-cp310-abi3-macosx_11_0_x86_64.whl |
| arris-0.12.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for arris-0.12.1-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 24.1 MB
Release files / arris-0.12.1.tar.gz
| Download URL | arris-0.12.1.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbd3317ba7fdfbf79d5feb709ebaa3b52ac9b18be0e9965af00f4c16acaa40ea
|
|
BLAKE2b-256 checksum How to use checksums |
8604df9254ea6e2487bbfda9c8c8e3e21568f9d9b6658865b8846328fc6c4269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / arris-0.12.1-cp310-abi3-win_amd64.whl
| Download URL | arris-0.12.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
97e49014ee77286424652b8d589d338046337f6b752fce5a36f1c1e934783bdc
|
|
BLAKE2b-256 checksum How to use checksums |
c9ed870d3753b6b8bc70d3e00cba915d2fcbe994a3bb53c23c651f46328ee9c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / arris-0.12.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | arris-0.12.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2b940713e58d02fb961f4335438b022bd1ecf3d2a8aa68c746d600c758013aa2
|
|
BLAKE2b-256 checksum How to use checksums |
350f9d23b6ccd0b556efc250bc2dc2548aac0a2d528fe909cf6d6aef7a7af939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / arris-0.12.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | arris-0.12.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b7da5ff11ab607c79275c25ec032e63433c8e0f2b4e19b0646176ad4dd019ffa
|
|
BLAKE2b-256 checksum How to use checksums |
7fee58f465e2ed0bda301540da366f81edf374f6858b3b42ec59484a409dba16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / arris-0.12.1-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | arris-0.12.1-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
b33df925ee41366135ad986d48b17499e3c0909f000228cda185734114557532
|
|
BLAKE2b-256 checksum How to use checksums |
7a2144ef79c8bc61e0633a0b31e71c93feb088e8ce6fa94bdb43ff77bc4866e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / arris-0.12.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | arris-0.12.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c6931ce45fcc6025fe6442f427a64a52f3605b6994658ed3c456a20515c240b8
|
|
BLAKE2b-256 checksum How to use checksums |
d7a7505b512030d383980ba21533dbca087dca15eae5bea3e5b7179e9a3fd344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for arris 0.12.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for arris-0.12.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.