# Ringwright

> Build editable 3D parts with code and AI tools. Preview changes, check dimensions, and export CAD models you can keep working on.

Ringwright is an experimental, open-source parametric CAD engine written in Rust, with a Rust-only truck backend and an optional Open CASCADE backend. It is available as a command-line tool and an MCP (Model Context Protocol) server for compatible AI assistants.

## What it does

Describe a part in JSON using sketches, dimensions, constraints, and modeling features. Preview an edit with `dry-run`, review its measured checks, then save it with `commit`. Export the saved revision as STEP for other CAD tools. Failed checks prevent the edit from being committed.

An optional desktop viewer displays parts and renders images. The OCCT backend also supports STEP import and drawing sheets in SVG, PDF, and DXF.

## Try it

Clone [https://github.com/copyleftdev/ringwright](https://github.com/copyleftdev/ringwright), then run from the repository root:

```sh
cargo install --path crates/cli --locked
ringwright init plate --revision 1
ringwright dry-run examples/widen-plate.json
```

The dry-run returns `result.candidate_digest`. Use that identifier with `commit` to save the edit. The [getting-started guide](https://github.com/copyleftdev/ringwright#try-your-first-edit) covers saving and exporting it.

## The showcase

The [interactive website](https://copyleftdev.github.io/ringwright/) presents four models built by Ringwright: an angle bracket, flange, heat sink, and funnel. You can rotate them, inspect their edges, view a visual section, and download STEP files. The site uses precomputed outputs; the Rust CAD engine does not run in the browser.

Photographs are visual references. Model dimensions were chosen explicitly, not recovered automatically from photographs. The models are simplified studies, not manufacturer replicas. A passing geometry check does not establish manufacturing suitability. Thickness, overhang, and assembly checks use sampling with reported limits.

## Links

- [Source and installation](https://github.com/copyleftdev/ringwright)
- [Using Ringwright](https://github.com/copyleftdev/ringwright/blob/main/docs/usage.md)
- [Development and testing](https://github.com/copyleftdev/ringwright/blob/main/docs/testing.md)
- [Validation evidence](https://copyleftdev.github.io/ringwright/models/evidence.json)
- [Image credits and licenses](https://copyleftdev.github.io/ringwright/credits.html)

Ringwright source is dual-licensed MIT OR Apache-2.0. Dependencies, fonts, and reference photographs retain their own licenses.
