OpenSCAD Coffee Mug example

Intermediate

Practical parts

Lesson 15 of 22

Combine a hollow body with a capsule-ring handle without filling its opening.

Try changing:

heightbody_radiuswallhandle_radius

Medium compile complexity. Two hulls and a hollow cylinder; curved booleans dominate.

How this model works

The outer handle is the hull of two horizontal cylinders; a smaller hull cuts its opening. The handle overlaps the outside of the cup but does not reach its inner cavity. Subtracting the cavity after joining the body and handle guarantees an open interior. This is a demonstration only: it is not food-safe, heat-safe, dishwasher-safe, or a validated drinking vessel.

main.scad

Loading draft

Ctrl/Cmd+Enter or F5: preview · F6: render · Ctrl/Cmd+F: search · Ctrl+Space: complete · Tab: leave editor

0 messages

Make it your own

Adjust wall and handle_radius while preserving the handle opening. Inspect a cross-section to confirm the floor and cavity remain intact.

Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.

FAQ