A script to generate meshes (.stl) of (complex) spherical harmonics for 3d printing.
Pregenerated meshes are available here: https://www.printables.com/model/1490949-spherical-harmonics
- Create a sphere in a CAD program, with your desired size and resolution.
- Export it as an stl file to
sphere.stl. - Select the functions to generate by changing the
L_M_PAIRSconstant. - Select a radius for the support ball in the center by changing the
SUPPORT_BALL_SIZE. cargo runit.- The results will be output to the
resultsfolder.
Note that the generated models will be a bit smaller than input original sphere.
Additionally this repo contains a python script to optimize the meshes.