Skip to content

BRepAX

JAX-native differentiable geometry and STEP/B-Rep evaluation.

BRepAX combines OCCT preparation with JAX numerical kernels for CAD experiments and geometry evaluation. Start with the API overview for supported inputs, differentiation assumptions, and known limits.

Quick Install

pip install brepax

Minimal Example

import jax
from brepax.io.step import read_step
from brepax.brep.triangulate import triangulate_shape, divergence_volume

shape = read_step("part.step")
tris, params = triangulate_shape(shape)
vol = divergence_volume(tris)
grad = jax.grad(divergence_volume)(tris)  # d(volume)/d(vertices)

Documentation