fogleman / sdf

Simple SDF mesh generation in Python
MIT License
1.61k stars 132 forks source link

Example knurling calling an error #45

Open Yihao-Shi opened 9 months ago

Yihao-Shi commented 9 months ago

When i run the script in /example/knurling.py, the direction of some facets are invalid.

RuntimeWarning: invalid value encountered in divide normals /= np.linalg.norm(normals, axis=1).reshape((-1, 1)) in stl.py line 9