Using a 3D mesh playground with a coding agent

In SketchAgent, a coding agent writes geometry and checks rendered views in a browser-based 3D mesh playground. The author’s public Copenhagen scene is a worked example: the agent fixes a script error, takes several views and revises the scene. Open the trace and compare the first attempt with a later camera view. Explore the SketchAgent session.

Give the agent a shape it can verify

Try a bracket with a through-hole. Its outer dimensions, hole position and flat base give the agent three independent things to check. In a browser session connected to your coding agent via MCP (Model Context Protocol), give it this brief.

Build a rectangular plate 60 units long, 24 wide and 6 thick. Cut a circular hole of diameter 8 through the plate. Center it across the width and place its center 12 units from the left edge. Show a top view and a low oblique view before changing anything.

The SketchAgent author describes using Three.js with manifold-3d for mesh operations. For this part, the script can subtract a cylinder that extends past both faces. A dark disk drawn on the top surface would give a similar top view, so the second view matters. Read the author’s description of the playground.

Oblique view of a rectangular plate with an off-center through-hole
Reference geometry for the exercise, rendered from the dimensions in the prompt.

Ask for evidence with each revision

Use the preview tool to inspect the top, side and an oblique view. In the script, check that the hole position is measured from the edge you named. Then request one change: increase the hole diameter to 10 while keeping its center fixed. Compare the two top views. If the plate has moved as well, correct the coordinate reference before adding chamfers.

When a photograph is your starting point

A bracket can be described with dimensions and cuts. A fox with fur markings or a game prop covered in worn paint carries much of its identity in the surface. If you want to preserve the look of a drawing, the sketch-to-model walkthrough gives you a reference image and a downloadable textured result. For a physical bracket, verify dimensions and wall thickness in your modeling software before slicing.

Try the bracket description in Studio to explore its shape as a generated mesh.

Create a 3D model from text
← More 3d tools & research