Dev.to AI 🤖 Ai 👁 0 📖 3 min read

What would you make if adjusting a 3D part were easier?

There’s a particular kind of annoying that comes with finding something that almost fits. The bracket is a little too narrow. The mounting holes need to move. You can describe the change in a sentence: make this wider,

There’s a particular kind of annoying that comes with finding something that almost fits.

The bracket is a little too narrow. The mounting holes need to move. You can describe the change in a sentence: make this wider, move that over, keep the rest.

If you write software, you might already be thinking about a parameter you could change and a test you could run afterward.

That’s a useful way to introduce Ringwright, an open-source CAD project I’m working on. It lets you describe and edit 3D parts through JSON instructions, preview the result, and run checks before saving a new revision.

The engine is written in Rust. You can use it from your terminal, call it from a script, or connect a compatible AI assistant through MCP, the Model Context Protocol.

You don’t need an assistant to try it. Let’s start with a plate.

One small edit

Suppose you have a mounting plate and want its width to be 120 mm. In Ringwright, the change looks like this:

{
  "schema_version": 1,
  "document": "plate",
  "base_revision": "r1",
  "operations": [
    {
      "op": "set_parameter",
      "id": "plate.width",
      "value": 120,
      "unit": "mm"
    }
  ],
  "checks": [
    {
      "kind": "valid_solid",
      "body": "plate.body"
    }
  ]
}

The instruction names the part, the revision you’re editing, and the parameter to change. It also asks Ringwright to check that the resulting body is a valid solid.

That check has a specific scope. It doesn’t tell you whether the plate will fit your desk or carry a particular load. Those questions need their own measurements and engineering judgment.

The useful bit is that the check is part of the edit. If a required check fails, that candidate can’t be committed.

Try it from your terminal

With Rust and a native linker installed, clone the repository and install the CLI:

git clone https://github.com/copyleftdev/ringwright.git
cd ringwright
cargo install --path crates/cli --locked

The repository includes the plate example and the JSON above:

ringwright init plate --revision 1
ringwright inspect plate
ringwright dry-run examples/widen-plate.json

dry-run builds a preview without changing the saved part. Its response includes the check results and result.candidate_digest, an identifier for that preview.

After reviewing the results, replace DIGEST below with that identifier:

ringwright commit --document plate --candidate DIGEST --base r1 --key widen-plate-1
ringwright export --document plate --revision r2

The export response tells you where to find the STEP file, which you can open in other CAD tools.

For a developer, there are some familiar ideas here. The base revision protects against stale edits. The candidate identifies the preview you reviewed. The commit key lets you retry the same request without saving the edit twice.

Those details become useful when a script—or an assistant—is making repeated changes.

Where AI fits

A compatible assistant can connect to Ringwright’s MCP server and use its modeling tools. That gives it a way to submit an edit and read the resulting measurements and failures.

It also gives you something concrete to review: the instructions, the model, and the checks that actually ran.

You still need to supply meaningful dimensions and decide whether the result suits the job. Ringwright is experimental, and the current workflow involves a command-line tool and JSON. There’s a learning curve.

The default installation uses the Rust-only truck geometry backend. An optional Open CASCADE backend adds more modeling operations, STEP import, and drawing sheets. The setup guide covers the extra build requirements.

Start with something ordinary

I’ve also put together a browser showcase with a bracket, a flange, a heat sink, and a funnel. You can rotate the models, inspect their edges, and download the STEP files.

A bracket makes a good starting point because it’s easy to imagine changing it. Move a hole. Widen the base. Make room for a different fastener.

The website displays precomputed models; the Rust engine doesn’t run in your browser. The photos are visual references, and the model dimensions were chosen explicitly. There’s no automatic recovery of accurate dimensions from a photograph.

Some geometry checks also use sampling, with limits reported in their results. Passing a check doesn’t establish that a part is ready to manufacture.

If you’d like to try it or look through the implementation, Ringwright is on GitHub.

What’s a small part you’ve wanted to make or modify—and what made it difficult? I’d be interested to hear whether the sticking point was measuring it, editing the model, or figuring out how to check the result.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.