Generate, validate, and render JSCAD v2 CAD scripts from natural language prompts
94
94%
Does it follow best practices?
Impact
97%
1.64xAverage score across 3 eval scenarios
Passed
No known issues
A ceramics studio wants a JSCAD script for a classic cylindrical coffee mug to use as a reference model for their 3D printer. The mug has a hollow cylindrical body (open at the top), a curved handle on the side, and a flat base. The outer diameter of the body should be about 80mm, the wall thickness 4mm, and the total height 95mm. The handle should attach to the outside of the body and form a D-shaped loop that a finger can fit through.
Write a JSCAD main() function that produces this mug geometry as a single assembled solid.
Produce a single file named mug.js containing the complete JSCAD script.
The script must define a main() function that returns the assembled mug geometry. Do not produce any other files.