An application for converting a 3D mathematical equation into an STL surface. Great for generating geometric shapes to print as vases, vessels or pots!
Note
See the examples directory for samples of r
functions and constants to use as per the instructions below!
-
In
main.rs
, update ther
function to define the shape you wish to model. The function is in polar co-ordinates: it receives an angle (radians; between 0 and 2π) and a z-height (between 0 and 1) and outputs a radius. For example, to define a cylinder of radius 20:fn r(t: f32, z: f32) -> f32 { 20 }
-
Near the top of
main.rs
, update the constants to define your parameters:- Rotational resolution
- Height resolution
- Total height
- File output location
-
Run it
cargo run --release
Output is stored in
out/output.stl
by default. -
Print the resulting STL file. Use vase mode in the slicer!
Semi-spherical base with broad sine wave easing in
Base shape circle lofting to square, with swept sine ripple
Base shape is a loft between two rectangles, plus a bulbous broadening. Two sine waves add decoration.
Base shape circle lofting to square, with diagonally opposed triangle waves