
Vase with marimo-cad
Make a vase for 3d printing with marimo-cad
About this notebook
This notebook builds a parametric 3D vase model. It uses build123d to define the shape and marimo-cad to show it. The vase has no external dataset. The code draws a profile from straight lines and spline curves, then revolves it 360 degrees around the vertical axis. The wall thickness comes from a second inner spline, so the vase is hollow.
You control the shape with sliders. You set the height, the base radius, the belly radius, the neck radius, and the top radius. Two more sliders set the belly height and neck height as a percentage of the total height. A final slider sets the wall thickness. When you move a slider, the model rebuilds and the viewer shows the new vase. The camera position stays fixed across changes.
The viewer is created one time, so it persists between slider updates. A download button exports the current model as an STL file. The export writes the shape to a temporary directory with export_stl, then reads the bytes back for download.











