├── .gitignore ├── LICENSE.md ├── README.md ├── docs ├── .gitignore ├── images │ ├── bend.png │ ├── bend_linear.png │ ├── bend_radial.png │ ├── blend.png │ ├── blobby.jpg │ ├── blobby.png │ ├── box.png │ ├── box2.png │ ├── butterfly.png │ ├── capped_cone.png │ ├── capped_cylinder.png │ ├── capsule.png │ ├── circular_array.png │ ├── customizable_box.png │ ├── customizable_lid.png │ ├── cylinder.png │ ├── difference.png │ ├── dilate.png │ ├── dodecahedron.png │ ├── ellipsoid.png │ ├── elongate.png │ ├── erode.png │ ├── example.jpg │ ├── example.png │ ├── extrude.png │ ├── extrude_to.png │ ├── gearlike.jpg │ ├── gearlike.png │ ├── icosahedron.png │ ├── intersection.png │ ├── knurling.jpg │ ├── knurling.png │ ├── meshview.png │ ├── octahedron.png │ ├── orient.png │ ├── plane.png │ ├── pyramid.png │ ├── repeat.png │ ├── revolve.png │ ├── rotate.png │ ├── rounded_box.png │ ├── rounded_cone.png │ ├── rounded_cylinder.png │ ├── scale.png │ ├── shell.png │ ├── show_slice.png │ ├── slab.png │ ├── slice.png │ ├── smooth_difference.png │ ├── smooth_intersection.png │ ├── smooth_union.png │ ├── sphere.png │ ├── tetrahedron.png │ ├── text-large.png │ ├── text.png │ ├── torus.png │ ├── transition_linear.png │ ├── transition_radial.png │ ├── translate.png │ ├── twist.png │ ├── union.png │ ├── weave.jpg │ ├── weave.png │ ├── wireframe_box.png │ └── wrap_around.png ├── render.go └── render.py ├── examples ├── blobby.py ├── butterfly.png ├── customizable_box.py ├── example.py ├── gearlike.py ├── image.py ├── knurling.py ├── mesh.py ├── pawn.py ├── text.py └── weave.py ├── sdf ├── __init__.py ├── core.py ├── d2.py ├── d3.py ├── dn.py ├── ease.py ├── mesh.py ├── progress.py ├── stl.py ├── text.py └── util.py └── setup.py /.gitignore: -------------------------------------------------------------------------------- 1 | /sdf.egg-info 2 | *.stl 3 | 4 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/README.md -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | /models 2 | /render 3 | 4 | -------------------------------------------------------------------------------- /docs/images/bend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/bend.png -------------------------------------------------------------------------------- /docs/images/bend_linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/bend_linear.png -------------------------------------------------------------------------------- /docs/images/bend_radial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/bend_radial.png -------------------------------------------------------------------------------- /docs/images/blend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/blend.png -------------------------------------------------------------------------------- /docs/images/blobby.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/blobby.jpg -------------------------------------------------------------------------------- /docs/images/blobby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/blobby.png -------------------------------------------------------------------------------- /docs/images/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/box.png -------------------------------------------------------------------------------- /docs/images/box2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/box2.png -------------------------------------------------------------------------------- /docs/images/butterfly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/butterfly.png -------------------------------------------------------------------------------- /docs/images/capped_cone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/capped_cone.png -------------------------------------------------------------------------------- /docs/images/capped_cylinder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/capped_cylinder.png -------------------------------------------------------------------------------- /docs/images/capsule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/capsule.png -------------------------------------------------------------------------------- /docs/images/circular_array.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/circular_array.png -------------------------------------------------------------------------------- /docs/images/customizable_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/customizable_box.png -------------------------------------------------------------------------------- /docs/images/customizable_lid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/customizable_lid.png -------------------------------------------------------------------------------- /docs/images/cylinder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/cylinder.png -------------------------------------------------------------------------------- /docs/images/difference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/difference.png -------------------------------------------------------------------------------- /docs/images/dilate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/dilate.png -------------------------------------------------------------------------------- /docs/images/dodecahedron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/dodecahedron.png -------------------------------------------------------------------------------- /docs/images/ellipsoid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/ellipsoid.png -------------------------------------------------------------------------------- /docs/images/elongate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/elongate.png -------------------------------------------------------------------------------- /docs/images/erode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/erode.png -------------------------------------------------------------------------------- /docs/images/example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/example.jpg -------------------------------------------------------------------------------- /docs/images/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/example.png -------------------------------------------------------------------------------- /docs/images/extrude.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/extrude.png -------------------------------------------------------------------------------- /docs/images/extrude_to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/extrude_to.png -------------------------------------------------------------------------------- /docs/images/gearlike.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/gearlike.jpg -------------------------------------------------------------------------------- /docs/images/gearlike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/gearlike.png -------------------------------------------------------------------------------- /docs/images/icosahedron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/icosahedron.png -------------------------------------------------------------------------------- /docs/images/intersection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/intersection.png -------------------------------------------------------------------------------- /docs/images/knurling.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/knurling.jpg -------------------------------------------------------------------------------- /docs/images/knurling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/knurling.png -------------------------------------------------------------------------------- /docs/images/meshview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/meshview.png -------------------------------------------------------------------------------- /docs/images/octahedron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/octahedron.png -------------------------------------------------------------------------------- /docs/images/orient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/orient.png -------------------------------------------------------------------------------- /docs/images/plane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/plane.png -------------------------------------------------------------------------------- /docs/images/pyramid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/pyramid.png -------------------------------------------------------------------------------- /docs/images/repeat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/repeat.png -------------------------------------------------------------------------------- /docs/images/revolve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/revolve.png -------------------------------------------------------------------------------- /docs/images/rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/rotate.png -------------------------------------------------------------------------------- /docs/images/rounded_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/rounded_box.png -------------------------------------------------------------------------------- /docs/images/rounded_cone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/rounded_cone.png -------------------------------------------------------------------------------- /docs/images/rounded_cylinder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/rounded_cylinder.png -------------------------------------------------------------------------------- /docs/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/scale.png -------------------------------------------------------------------------------- /docs/images/shell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/shell.png -------------------------------------------------------------------------------- /docs/images/show_slice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/show_slice.png -------------------------------------------------------------------------------- /docs/images/slab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/slab.png -------------------------------------------------------------------------------- /docs/images/slice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/slice.png -------------------------------------------------------------------------------- /docs/images/smooth_difference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/smooth_difference.png -------------------------------------------------------------------------------- /docs/images/smooth_intersection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/smooth_intersection.png -------------------------------------------------------------------------------- /docs/images/smooth_union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/smooth_union.png -------------------------------------------------------------------------------- /docs/images/sphere.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/sphere.png -------------------------------------------------------------------------------- /docs/images/tetrahedron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/tetrahedron.png -------------------------------------------------------------------------------- /docs/images/text-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/text-large.png -------------------------------------------------------------------------------- /docs/images/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/text.png -------------------------------------------------------------------------------- /docs/images/torus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/torus.png -------------------------------------------------------------------------------- /docs/images/transition_linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/transition_linear.png -------------------------------------------------------------------------------- /docs/images/transition_radial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/transition_radial.png -------------------------------------------------------------------------------- /docs/images/translate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/translate.png -------------------------------------------------------------------------------- /docs/images/twist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/twist.png -------------------------------------------------------------------------------- /docs/images/union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/union.png -------------------------------------------------------------------------------- /docs/images/weave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/weave.jpg -------------------------------------------------------------------------------- /docs/images/weave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/weave.png -------------------------------------------------------------------------------- /docs/images/wireframe_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/wireframe_box.png -------------------------------------------------------------------------------- /docs/images/wrap_around.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/images/wrap_around.png -------------------------------------------------------------------------------- /docs/render.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/render.go -------------------------------------------------------------------------------- /docs/render.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/docs/render.py -------------------------------------------------------------------------------- /examples/blobby.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/blobby.py -------------------------------------------------------------------------------- /examples/butterfly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/butterfly.png -------------------------------------------------------------------------------- /examples/customizable_box.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/customizable_box.py -------------------------------------------------------------------------------- /examples/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/example.py -------------------------------------------------------------------------------- /examples/gearlike.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/gearlike.py -------------------------------------------------------------------------------- /examples/image.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/image.py -------------------------------------------------------------------------------- /examples/knurling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/knurling.py -------------------------------------------------------------------------------- /examples/mesh.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/mesh.py -------------------------------------------------------------------------------- /examples/pawn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/pawn.py -------------------------------------------------------------------------------- /examples/text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/text.py -------------------------------------------------------------------------------- /examples/weave.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/examples/weave.py -------------------------------------------------------------------------------- /sdf/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/__init__.py -------------------------------------------------------------------------------- /sdf/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/core.py -------------------------------------------------------------------------------- /sdf/d2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/d2.py -------------------------------------------------------------------------------- /sdf/d3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/d3.py -------------------------------------------------------------------------------- /sdf/dn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/dn.py -------------------------------------------------------------------------------- /sdf/ease.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/ease.py -------------------------------------------------------------------------------- /sdf/mesh.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/mesh.py -------------------------------------------------------------------------------- /sdf/progress.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/progress.py -------------------------------------------------------------------------------- /sdf/stl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/stl.py -------------------------------------------------------------------------------- /sdf/text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/text.py -------------------------------------------------------------------------------- /sdf/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/sdf/util.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fogleman/sdf/HEAD/setup.py --------------------------------------------------------------------------------