Experiments: using AI to infer model features, then model from them

I’ve been testing how well AI can look at geometry, work out why it’s shaped the way it is, and use that understanding to build models in Rhino. Three workflows stood out:

  1. Reverse engineering from geometric features: the AI breaks a shape down into axes, profiles and repeated elements, then rebuilds it as clean NURBS (camshaft, intake manifold).
  2. Inferring the object type: the AI recognized a gear, extracted its defining parameters, and rebuilt a true involute gear from what it knows about gears.
  3. Adaptive defeaturing: the AI simplified a model by working through feature relationships, which made it much smaller while keeping the features that matter.

These are early experiments, not a product announcement. Details below.


1. Reverse engineering from geometric features

The AI breaks an existing mesh model down into its primary features: axes, profiles, symmetry, and repeated elements. It then rebuilds the shape as a NURBS model.

Camshaft: finds the shaft axis, lobe profiles, phase angles between lobes, and bearing journals, then rebuilds it as revolved and extruded features along that axis.

Intake manifold: finds the plenum, runner paths and flange planes, then builds the runners as sweeps along inferred centerlines that join into the plenum.

I prompt:

Simplified model: smooth main shapes, omitting small grooves, holes, and teeth.

It returns a reply as it recognizes what the model is:
I’ll rebuild the main journals, counterweights, and discs as smooth solids, omitting the small grooves, holes, and teeth. The assembly’s main parts can be rebuilt with circular journals and discs, plus counterweights formed from circular arcs and straight edges. I’ll preserve their positions and overall sizes, and simplify the counterweights to constant-thickness shapes.All 28 parts are valid closed solids. Small holes, grooves, and teeth are omitted; counterweights have constant thickness. The original and faceted copies remain preserved and hidden. The housing has a thin top flange, two large paired openings, curved side walls, and a rectangular side chamber. I’m rebuilding those features with smooth arcs and planar surfaces, simplifying the small bosses and edge details.

2. Inferring the object type

Here the AI first works out what the object is, then uses what it knows about that kind of part to decide what to measure. It recognized a gear and extracted tooth count, module, pressure angle, and bore/hub dimensions. It then rebuilt a true involute tooth profile instead of tracing what it saw. The result is the intended part, not a copy of a worn or imperfect sample.

I prompt:
Measure this gear and then recreate it as a NURBS model with detailed teeth.

It responds
The gear measures 6.193152″ maximum outside diameter, 0.602112″ thick, with a 0.491520″ bore and 48 teeth. Its teeth have straight flanks and slightly alternating tip heights. I’ll reproduce that measured shape and rebuild the bore as a true circle. Created and selected a **closed NURBS solid with all 48 teeth** on **Detailed NURBS gear**.

Measurement Inches
Maximum outside diameter 6.193152
Root diameter 5.750207
Bore diameter 0.491520
Thickness 0.602112

3. Adaptive defeaturing

The AI simplified a model by working through the geometric relationships between features: what’s structural, what’s cosmetic, and what depends on what. After importing from STEP the model is 121,394 KB. After grabbing the shell and defeaturing the model is 27,807 KB. The final model is 23% the original size. I could push it harder, but as a quick experiment it is impressive.
The model started with 10,000 NURBs faces.

I prompted:

Can you remove enough detail to get it to 4000 faces, still nurbs. Keep original shapes as much as possible.

It responds:
Joining adjacent surfaces and merging coplanar faces removed 48 faces without changing the shape. I also found many small connected parts with bolt-sized dimensions. I’ll remove those first, then retain the larger faces to meet the 4,000-face limit.

I prompt:

Defeature this model by removing all the small holes including their internal cylinder wall. And delete any bolts.

It responds:
The first pass filled 581 small opening rims and removed 61 separate fastener pieces. The geometry checks pass. I’m now checking for detached cylinder walls and remaining bolt pieces that weren’t connected to those rims. Removed small holes up to Ø30 mm, including their internal cylinder walls, and 61 identified fastener pieces. Retained materials and 3,381 valid NURBS faces.


What kinds of parts would you want to try this on?

The gear as shrinkwrapped mesh with no sharp edges would be an interesting test.

I tried to get this AI feature going but must have missed a step and it does not work yet.
Is it correct that I don’t need a payed subscription for claude?

You need a subscription to Claude or Chat-gpt. In the future, we will try and support open source and other LLM engines.

Did you take a look at this announcement? Rhino BETA Feature: RhinoAI

This will be great with GrokBot, getting a bunch of bots to collab on a project.

Yep, multiple bots and Rhinos running at the same time would need to run the Rhino MCP and connect from Claude desktop or Codex.

You might try and connect the RhinoMCP to Grokbot and see if it works. In Rhino 9 WIP type MCPconnect and see what is says. I think there is one tab that has the prompt to type into Grokbot to see if can find the MCP.

Here you go. Shrinkwrapped rounded edges. This is the statistics it gathers off this model that can be compared the the values in the post above:

The selected model appears to be a 48-tooth spur gear.

Tooth count 48
Outside diameter ≈6.184 in (157.08 mm)
Overall thickness ≈0.602 in (15.29 mm)
Root diameter ≈5.77 in (146.5 mm)
Bore diameter ≈0.487 in (12.37 mm)
Angular tooth spacing 7.5°

Created the gear on Reconstructed gear - NURBS. It reports

48 teeth, matching overall diameter and thickness
Circular through-bore
Valid closed solid with no naked edges
The original mesh is preserved and hidden. 
The tooth profile is a smoothed reconstruction, not a certified involute profile; 
edge chamfers are omitted.

And if you were doing this a lot you would want a Gear skill in the LLM to validate the gear dinmensions before building.

Yep, multiple bots and Rhinos running at the same time would need to run the Rhino MCP and connect from Claude desktop or Codex.

That’s interesting. Sounds like it could be useful for rebuilding scanned geometry.

For some models yes. But, I am not sure what the range of inputs or models it would serve well.

Might be worth experimenting with.

I asked it to align two 3D scanned bike saddles. Both are aligned quite well in the YZ plane in Artec Studio.

Ai suggested aligning the seating surfaces which worked well.

What I dislike is that the Ai feature messes with my viewports.

image

In a second test I asked it to align a helmet scan so it is sitting on the YZ plane as symmetrical as possible, which can be done ‘manually’ by looping over a few sections.

I mirrored the helmet and for a 3D scan this is really quite good

I think it is messing with the viewports because it is taking screenshots to see it own process. I think I may be able to report that so it always uses a hidden viewport? Wont hurt to ask…

Looked a little closer and we already have that wish: Martin - this is on the list as RH-96660. Titled - The agent is grabbing screenshots from the visible viewports, and we’d like it to use its own hidden view.

In one query I saw it switch between different display modes.

Maybe a floating viewport could be used to display progress in whatever view the Ai wants it

Scott, this is really cool. Have you seen the snippets from QuickSurface AI.

I used ChatGPT to analyse multiple sequences in watersports. It is incredible what can be done.

I look forward to your progress. Well done.

I’ve been using Hermes Agent with DeepSeek API installed in a Ubuntu WSL connected to Rhino via the McNeel MCP from the package manager using Telegram as interface to send commands to my laptop at home while I am outside.

Mostly simple tests or asking to open a file from a job to grab some screenshoots for me to send to the client, but it worked like a charm.

there was a few connection issues between the WSL and Windows, but the agent itself was able to figure out a solution.