Fast, double-precision GPU geometry verification for CAD assemblies, built on NVIDIA Warp.
Load .stl, .obj, or .step parts directly via Python or the CLI to check:
- Static fit — exact clearances, clashes, and 3D overlap volume across thousands of parts
- Disassembly — continuous swept withdrawal proofs that catch thin circlips and shims without step-size tunneling
- Kinematics — batched 3D rigid-pose clearance sweeps with no BVH refits
- Wall thickness — dense inward-normal ray scans that ignore exterior air gaps
- MuJoCo Warp — drop-in exact-CAD contact callback without convex hulls or SDF baking
Runs on CUDA GPUs, with Warp CPU and pure-NumPy fallbacks for laptops and CI.
Requires Python >= 3.10 (runout[mujoco] requires >= 3.11; runout[step] installs nanocct wheels on Python 3.12).
pip install runout # Core (CUDA + CPU/NumPy fallback, STL/OBJ)
pip install "runout[boolean]" # Exact 3D clash volume (mm^3) & STL export (manifold3d)
pip install "runout[step]" # Direct .step/.stp loading via OpenCASCADE 8 (nanocct)
pip install "runout[mujoco]" # Zero-copy MuJoCo Warp >= 4.0 contact bridge
pip install "runout[boolean,step,mujoco]" # Everythingimport runout
parts = {
"housing": runout.load_part_from_file("housing.stl", device="cuda:0"),
"shaft": runout.load_part_from_file("shaft.stl", device="cuda:0"),
"circlip": runout.load_part_from_file("circlip.stl", device="cuda:0"),
}
# Static clearance + exact overlap volume
static = runout.check_assembly_geometry_gpu(parts, min_clearance_mm=0.03)
assert static.passed, f"{static.min_clearance_mm:.4f} mm ({static.max_overlap_mm3:.4f} mm^3)"
# Continuous linear withdrawal (cannot tunnel past thin circlips or shims)
swept = runout.check_removable_gpu(parts, moving="shaft", outward=(0, 0, 1), travel_mm=60.0)
assert swept.passed, f"Blocked by {swept.blocked_by} at {swept.failure_t_mm:.4f} mm"
# Batched rigid poses (zero BVH refit)
poses = runout.pair_distance_poses_gpu(parts["shaft"], parts["housing"], transforms_a=T_nx4x4)
# Midpoint-confirmed inward-normal wall thickness
wall = runout.check_wall_thickness_gpu(parts["housing"], min_wall_mm=1.2, n_samples=200_000)Every command supports --json, -q, --device {auto,cuda:0,cpu,numpy}, and --precision {draft,standard,fine,metrology}, exiting 0 (pass), 1 (geometric fail), or 2 (usage/input error).
runout doctor --json
runout check assembly/ --min-clearance 0.03 --export-clash clash.stl --json
runout swept assembly/ --part bearing_outer_race --dir 0,0,1 --travel 120 --json
runout poses rotor.stl stator.stl --rotate-axis z --angles 0,360,180 --min-clearance 0.05 --json
runout wall nozzle.stl --min-wall 1.2 --samples 1000000 --json| Command | Purpose |
|---|---|
doctor |
Probe CUDA/CPU backends and run the FP64 self-test |
info |
Triangle counts, watertightness, volume, and AABB per part |
check |
All-pairs static clearance, interference, --max-dist, --all-witnesses, clash STL export |
pair |
Single-pair exact distance, penetration, and witness points |
swept |
Continuous zero-tunneling linear withdrawal proof for one part |
sequence |
Multi-step assembly build-order proof (or --init-manifest scaffold) |
poses |
Batched SE(3) pose sweep from array/JSON or generated rotation/translation |
wall |
Inward-normal ray-cast wall-thickness and slenderness check |
verify |
Run a declarative multi-gate JSON manifest (static, sequence, poses, wall) |
convert |
Convert .step/.stp, .obj, or ASCII .stl to binary .stl |
Drop-in zero-copy narrowphase callback for unmodified mujoco_warp >= 4.0 (wp.ScopedCapture() safe):
import mujoco, mujoco_warp as mjw, runout
from runout.mujoco import ContactPairSpec, attach_mujoco_warp, inspect_contacts
housing = runout.load_part_from_file("housing.stl", device="cuda:0")
shaft = runout.load_part_from_file("shaft.stl", device="cuda:0")
mj_model = mujoco.MjModel.from_xml_path("insertion.xml")
mjw_model, mjw_data = mjw.put_model(mj_model), mjw.make_data(mj_model, nworld=1024, nconmax=32, njmax=128)
bridge = attach_mujoco_warp(
mj_model, mjw_model,
parts={"housing_geom": housing, "shaft_geom": shaft},
pairs=[ContactPairSpec("housing_geom", "shaft_geom")],
nworld=1024, part_unit="mm",
)
mjw.step(mjw_model, mjw_data)
stats = inspect_contacts(mjw_data, bridge, managed_only=True)Measured on NVIDIA RTX PRO 6000 Blackwell (95 GB, sm_120, CUDA 13.4) and bare-metal NVIDIA RTX 5090 (CUDA 13.4) vs. Coal 3.0.3 (1T / 28-thread i7-14700K), Embree 4, OpenCASCADE 8, and MuJoCo Warp 4.1.0 GPU SDF.
MuJoCo Warp 4.1.0 exact-CAD insertion (41,122-tri splined titanium housing + shaft, 0.50 mm circlip stop — same RTX PRO 6000 GPU):
| Contact Method | Setup | Static VRAM | 16w Seating | Median Axial Error | Median CAD Overlap | 1,024w Step Rate (RL Mix / Seated) |
|---|---|---|---|---|---|---|
| Native Mesh (convex hull) | 0.05 s |
2 hulls | 0 / 16 |
+34.0 mm |
0 µm |
— |
GPU SDF (d=6, default) |
0.39 s |
10.7 MB |
0 / 16 |
-4.74 mm |
2,471 µm |
514.9k / 527.6k (punches circlip) |
GPU SDF (d=7) |
1.60 s |
45.3 MB |
12 / 16 |
-101.0 µm |
176.6 µm |
172.8k / 174.6k /s |
GPU SDF Hardened (d=8) |
6.31 s |
184.5 MB |
16 / 16 |
-74.3 µm |
162.6 µm |
103.2k / 102.8k /s |
runout.mujoco |
0.11 s |
42.2 MB |
16 / 16 |
1.05 µm |
2.56 µm |
206.0k / 191.2k /s |
On the exact same GPU, runout.mujoco is 2.00× faster than hardened d=8 GPU SDF (1.86× at 100% seated), 57.6× faster to set up, uses 4.4× less static VRAM, with 71× lower axial error and 64× lower CAD overlap. At 4,096 worlds (wp.ScopedCapture()), runout.mujoco scales to 372.6k world-steps/s on the 41k-tri splined assembly and 1,004,786 world-steps/s (4.08 ms/step, 32,769 active contacts) on the chamfered insertion benchmark.
Large-scale CAD verification (NVIDIA RTX PRO 6000 Blackwell, warm GPU times):
| Workload | Scale | runout Time |
Key Metric |
|---|---|---|---|
Static fit (check_assembly_geometry_gpu, max_dist=1 mm) |
3,000 parts (4.50M pairs) |
85.9 ms |
250.9 ms cold; exact 3D SAP + FP64 (+79.6 µm) |
4-DOF robotic arm static fit (max_dist=0.5 mm) |
1,352 parts (4.75M tris, 6,043 close pairs) |
112.4 ms |
0 clashes, tightest +24.46 µm |
| 4-DOF arm full multi-gate proof (static + traps + 77-wave build + 96-pose sweep + exploded cert) | 1,352 parts (4.75M tris, 129,878 pose checks) |
1.50 s |
0 clashes, global min clearance +27.17 µm |
Coaxial build sequence + 0.25 mm circlip trap |
380 steps (400 parts, 150 mm travel) |
50.4 ms |
7,534 proofs/s; trap caught at 58.4500 mm (23.8 ms) |
Multi-million-tri cooling nozzle wall X-ray (48 channels) |
1.32M tris, 2,000,000 midpoint-confirmed rays |
3.03 ms |
659 Mrays/s warm; 13.5 ms GPU prep (97.7M tris/s) |
176-part (983,646-tri, 15,400-pair) planetary actuator — bare-metal RTX 5090 vs. Coal 3.0.3 (1T / 28T i7-14700K):
| Gate | runout RTX 5090 |
Coal 1T / 28T (distance()) |
Speedup (1T / 28T) |
Notes |
|---|---|---|---|---|
Static fit (15,400 pairs, max_dist=1 mm) |
42.3 ms |
1,801 / 160 ms |
42.6× / 3.8× |
0 clashes, tightest +30.53 µm |
25 µm pin defect (891 close pairs) |
59.8 ms |
1,785 / 169 ms |
29.8× / 2.8× |
Exact -25.00 µm (1.54 mm³); Coal collide() is 11× off |
175-step continuous build proof |
45.5 ms |
1,705 / 203 ms |
37.5× / 4.5× |
Catches 0.40 mm circlip; Coal tunnels at 1.5–6.0 mm |
180-pose 360° kinematics |
90.7 ms |
19,748 / 1,062 ms |
218× / 11.7× |
0 clashes, min gap +45.00 µm |
| All 3 gates combined | 0.18 s |
23.25 s / 1.43 s |
130× / 8.0× |
Full FP64 clearance + continuous proof |
High-density CAD (bare-metal RTX 5090): 362k-tri cycloidal reducer — 2.23 ms for 180 poses (80,848 FPS, 360× vs 28T Coal); 476k-tri rocket nozzle — 1.69 ms mesh load and 1.185 ms for 1M midpoint-confirmed wall rays (844 Mrays/s, 52× vs 28T Embree, >3,600× vs OpenCASCADE 8).
- Separation distance, flush contact, and continuous swept checks are FP64-exact on the input triangle mesh; interior penetration depth uses vertex/centroid sampling plus transverse edge-crossing confirmation.
- Exact
overlap_mm3requires watertight meshes +runout[boolean]. On open/non-watertight meshes,overlap_mm3isnan(nullin JSON) and interference fails closed via generalized winding-number containment and edge crossings. .step/.stpinputs carry bounded tessellation chord deflection controlled by--precision(CLI) orlinear_deflection_mm/angular_deflection_rad(Python).- Rigid-body geometry and kinematics only — structural stress, thermal deformation, and compliant parts belong in FEA.