Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loftmorph

Loft a smooth 3D solid between two 2D cross-sections — oval, rectangle, triangle, pentagon, hexagon — and export it as STL for 3D printing or for importing into Tinkercad. Pick a shape for each end, drag the sliders, hit Export STL. No install, no backend.

The transition uses smootherstep, so the walls meet both ends without a crease, and both ends' corners are anchored onto vertices so they stay crisp at any resolution.

Command-line generator (optional)

generate_morph_stl.py builds the same geometry from the terminal, for batch or scripted output:

python3 generate_morph_stl.py --bottom hex --top tri --height 60 -o hex_tri.stl

Per-end sizes: oval uses X/Y radii, rect uses X/Y half-extents, tri/pent/hex use X as the circumradius. Rotation is in degrees. The web tool and this script produce bit-identical geometry for the same parameters.

Credits

Rendering uses three.js (MIT license), included under vendor/.

About

Loft a smooth 3D solid between two 2D cross-sections and export it as STL — right in the browser

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages