Blog/2026-01-11/Modeling With Claude

From Rest of What I Know
Revision as of 06:35, 11 January 2026 by Roshan (talk | contribs) (Created page with "thumb|The little magnets allow you to connect the different sections temporarily We've been playing quite a bit of [https://boardgamegeek.com/boardgame/2651/power-grid Power Grid] and one of the things that annoys me is when you have to pick up a power plant or move them around. I always have trouble picking one up from the second row and putting it in the first or picking up a plant because I can't put my fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The little magnets allow you to connect the different sections temporarily

We've been playing quite a bit of Power Grid and one of the things that annoys me is when you have to pick up a power plant or move them around. I always have trouble picking one up from the second row and putting it in the first or picking up a plant because I can't put my finger under the damned card!

Fortunately, we have a 3D printer so it was just a matter of creating the most obvious thing, a little flat surface to host the card on with finger divots. When I first started building things with my 3D printer, I used Claude Code with Python in order to build the model.

I use Claude for all sorts of things: code (obviously), creating the markup for wiki template uses, research, and also to model! And recently I'd read somewhere about using OpenSCAD as a way to represent the model. The problem with Claude and Python is that Claude attempts to write code to create an STL file, but the primitives it operates with are not particularly useful. It still gets there eventually but you frequently end up with self-intersecting meshes and so on.

This time, I have to say that the OpenSCAD approach works. With a few verbal descriptions of what I want, Claude was able to produce a small ramp. With some screenshots and instructions it was able to produce a lip, split it into 3 sections, and add the scallop for a finger.

The one thing that Claude (even with Opus 4.5 Max and the ability to create PNG renders to look at the intermediate output) failed to do was to put the little holes for magnets in the right place.

Frequently, the holes for the magnets would intersect with one or two of the flat surfaces. That sort of ruins the whole thing.

But even that was pretty easily surmounted. If you get Claude to use Python to model the angle of the ramp and where to place the holes so they don't intersect, it will figure that out.

Anyway, I wanted a few things in the model and Claude delivered them all:

  • I wanted a bit of a ramp so that the cards would slide in one predictable direction
  • I wanted a lip on the left and right to prevent movement off the ramps
  • I wanted a lip at the lower end of the ramp to prevent cards from falling off
  • I wanted a bit of a scallop so I could put my finger underneath and pick up a card
  • I wanted it in a left 2-wide, a single wide, and a right single-wide so that we could shift from the 4x2 plant auctions to the 3x2 plant auctions neatly
And this is how it snaps together

Claude delivered on pretty much all of them, though the lips on the left and right are a bit shallow, and the scallop is instead a big gouge. The magnet holes worked out perfectly. You can get the 3 mm x 1.5 mm magnets on Amazon pretty easily, and Claude added a little bit of slop so I could slather on some CA glue on the rim of each and shove it in the hole to dry.

In the end, the whole thing worked out quite well!