sdf icon indicating copy to clipboard operation
sdf copied to clipboard

Simple SDF mesh generation in Python

Results 33 sdf issues
Sort by recently updated
recently updated
newest added

Is there a plan to add ability to import 3D mesh as custom starting volume for SDF?

from sdf import * f = sphere(1) & box(1.5) c = cylinder(0.5) f -= c.orient(X) | c.orient(Y) | c.orient(Z) f.save('out.stl', step=0.002) Encounter divide problem when step=0.002 or 0.001

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...

Added some extra primitives: a few minimal surfaces and the continuous surface version of an architected solid called MetaCORE

it will be error if i use ploygon(points) this command . if there any examples?

Thanks for the useful project. I want to understand the difference function for developing other functions. Could you interprete it to me? Thank you very much.

Added support for generate() to SDF2 based on scikit-image measure.fnd_contours(). Added show() to mesh.py using matplotlib for SDF2 and numpy-stl and vtkplotlib for SDF3. Note: vtkplotlib uses numpy-stl as a...

Hi @fogleman I am following your model code for generating 3d stl file bu however i need to know we can execute the same code for custom image generating mesh...

I was trying to print Chinese/Japanese words on my model. But only **blank squares** are drawn: ![Snipaste_2021-07-01_16-01-22](https://user-images.githubusercontent.com/7104870/124088572-a3e2fe00-da85-11eb-890d-e6287be5ef23.png) I'm pretty sure `PIL` package supports Chinese font and strings. So I guess...