ex_quiddity

Read a STEP file and ask what it is: its holes, pockets, slots, bosses, fillets and turned features, where its surfaces are, and what a sensor placed on it would perceive.

It binds quiddity and haecceity — both pure Rust, no OpenCascade and no CAD system behind them — through Rustler. The geometry is the B-rep itself, so a ray hits the surface rather than a mesh of it.

{:ok, part} = Quiddity.open("bracket.step")
{:ok, recognition} = Quiddity.features(part)

Quiddity.Recognition.families(recognition)
#=> [{"holes", 4}, {"fillets", 6}, {"pockets", 1}]

Everything is in millimetres, in the file's own coordinates, and the same file always gives the same answer.

What it answers

Question Call
What is this part? Quiddity.open/1, Quiddity.features/1
What is this face, and whose? Quiddity.face/2, Quiddity.Recognition.owner/2
What is at this point? Quiddity.ray/4, Quiddity.nearest/3
Inside, outside, or on it? Quiddity.classify/2
How heavy is it? Quiddity.mass/2
What would a camera see? Quiddity.frame/2
What does the file demand? Quiddity.pmi/2 — dimensions, tolerances, datums
What changed between revisions? Quiddity.correspond/2
What is it made of? Quiddity.mesh/2, Quiddity.samples/2

A frame is the interesting one: rays are cast against the exact B-rep, so every pixel knows the point on the surface, the outward normal there, and which face it landed on — not a depth buffer's approximation of it.

Install

def deps do
  [{:ex_quiddity, "~> 0.1.3"}]
end

The Rust engine is compiled when the dependency is: building wants a Rust toolchain (scripts/install-rust.sh installs one), and running wants none.

As an MCP server

mix quiddity.mcp speaks the Model Context Protocol over stdio, so an assistant can ask about a part directly:

{"mcpServers": {"quiddity": {"command": "mix", "args": ["run", "--no-halt", "quiddity.mcp"]}}}

Seven tools: quiddity_part, quiddity_features, quiddity_face, quiddity_probe, quiddity_sense, quiddity_correspond, quiddity_export_mjcf.

Where to find what

Question Where
The curated surface, and the engine behind it Quiddity
What was recognised, and what every face is Quiddity.Recognition
Cameras, frames, points, normals, semantic_3d Quiddity.Camera, Quiddity.Frame
Writing a scene for MuJoCo Quiddity.Mjcf
The protocol server and its tools Quiddity.Mcp, Quiddity.Mcp.Tools
Why the wrapper exists, and what it refuses to do why
What is not here yet roadmap
Working on the package: the generated engine, MCP wiring, releasing development

The same pages are published from main at d-led.github.io/ex.quiddity, with llms.txt for a model with no browser; HexDocs is the released version.

Limits, said out loud

Licence

MPL-2.0 (LICENSE). The engine it binds is Apache-2.0 and stays a dependency; NOTICE says what came from where.