threecrate

Fast 3D point cloud and mesh processing in Rust and Python, with an agent skill that lets Claude Code, Codex, Gemini CLI and others work on your scans.
Ask your agent to "make my scan printable" and it cleans the scan, closes the holes, adds a base, checks the result with a picture and saves an STL. No Blender, no MeshLab, no guessing at parameters.
A real, unedited Claude Code run with the threecrate skill, replayed. More in the demo.
Installation (30-second setup)
1. Get the skill
Claude Code
claude plugin marketplace add rajgandhi1/threecrate
claude plugin install threecrate@threecrate
Or type /plugin marketplace add rajgandhi1/threecrate, then /plugin install threecrate@threecrate, as two prompts.
Codex
codex plugin marketplace add rajgandhi1/threecrate
codex plugin add threecrate@threecrate
Start a new thread after installing.
Gemini CLI
gemini extensions install https://github.com/rajgandhi1/threecrate
OpenCode, Cursor or any other agent
Copy the skills/threecrate folder into your agent's skills folder. INSTALL.md has the exact commands for each agent.
Any MCP client (instead of the skill)
claude mcp add threecrate -- uvx threecrate-mcp
threecrate-mcp gives the agent tools such as inspect_mesh, repair_for_print and render, which hands it a picture of the result.
The skill needs python 3.8 or newer on your PATH. The agent installs threecrate into a virtual environment the first time.
2. Ask in plain words
- "Make table_scan.ply printable."
- "Is part.stl ready to print?"
- "Clean up this scan and drop the floor."
- "Align these two scans."
- "How tall is the pole in street.pcd?"
3. That's it
Want to try it first? samples/ has small scans with known answers, and the demo shows a full run.
Why threecrate
#1: Scans don't print
The problem. A phone or LiDAR scan comes out with stray points, the table it stood on, holes, no base and flipped faces. The slicer rejects it, and fixing it means learning MeshLab or Blender.
The fix. repair_for_print takes a point cloud or a mesh and returns a watertight STL, with a report of every step. analyze_mesh tells you what is wrong before you start.
#2: Agents can't see 3D
The problem. An agent can run a mesh tool, but it can't tell whether the result looks right. It reports success on a blob.
The fix. render draws any cloud or mesh from five views into one PNG, with no GPU. Holes and inside-out faces show orange. The skill makes the agent look at the before and after picture before it reports.
#3: Parameters are guesswork
The problem. Every voxel size, radius and threshold depends on the scan's units and density. Wrong values delete real points or do nothing.
The fix. The skill inspects each scan first and sizes every parameter from its point spacing. One guide per task keeps the agent on a known path: clean, align, make printable, measure.
#4: 3D libraries are slow or heavy
The problem. Open3D and PCL are large C++ builds. Pure Python is too slow for millions of points.
The fix. threecrate is Rust with a pip install. It is 1.5x to 3.4x faster than Open3D on reading, downsampling, normals and ICP across TUM, KITTI and nuScenes frames, with the same ICP accuracy (measured on Windows; in a Linux container the two are close). GPU code runs on any card through wgpu. Full numbers in docs/benchmarks.md.
Reference
Python
pip install threecrate
import threecrate as tc