OpenSCAD Coffee Mug example
Practical parts
Lesson 15 of 22
Combine a hollow body with a capsule-ring handle without filling its opening.
Try changing:
heightbody_radiuswallhandle_radiusMedium 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
Ready
Z up · geometry preview
Your geometry will appear here
Preview or render the model to inspect it in 3D.
Geometry-only STL preview
Grid 10 units · Drag: orbit · Right-drag / two fingers: pan · Scroll / pinch: zoom
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.