fogleman / sdf

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

how to get an existing stl? #32

Open Herryjames opened 2 years ago

Herryjames commented 2 years ago

i get an array from existing stl by numpy-stl.Maybe i need a function and then decorate with @sdf3,i want to know how to return ?i look the source code like sphere ,i am confused what kind of value to return.array?

Herryjames commented 2 years ago

returns the signed distance for each of those points as an array of shape (N, 1) but i do not know yet