2D Signed distance function geometry nodes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The signed distance function nodes can be used to define complex geometry using simple
shapes.

They are based on a very small set of basic shapes, that can be combined using operators,
and finally output as a grayscale image using the **sdShow** node.

All output samples shown in this section are images generated through the **sdShow** node.

All Signed Distance Functions nodes are based on code written by Inigo Quilez that can be found
`on this page`__.

.. _sdf2dpage: https://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm

__ sdf2dpage_

.. toctree::
	:maxdepth: 1

	node_simple_sdf_operators_sdshow

Shapes
++++++

.. toctree::
	:maxdepth: 1

	node_simple_sdf_shapes_sdcircle
	node_simple_sdf_shapes_sdline
	node_simple_sdf_shapes_sdbox
	node_simple_sdf_shapes_sdrhombus
	node_simple_sdf_shapes_sdarc
	node_simple_sdf_shapes_sdpolygon
	node_simple_sdf_shapes_sdngon
	node_simple_sdf_shapes_sdcross
	node_simple_sdf_shapes_sdcutdisk
	node_simple_sdf_shapes_sdegg
	node_simple_sdf_shapes_sdequilateraltriangle
	node_simple_sdf_shapes_sdheart
	node_simple_sdf_shapes_sdhexagram
	node_simple_sdf_shapes_sdisoscelestriangle
	node_simple_sdf_shapes_sdmoon
	node_simple_sdf_shapes_sdparallelogram
	node_simple_sdf_shapes_sdroundedbox
	node_simple_sdf_shapes_sdroundedcross
	node_simple_sdf_shapes_sdroundedx
	node_simple_sdf_shapes_sdstar5
	node_simple_sdf_shapes_sdtrapezoid
	node_simple_sdf_shapes_sdtriangle
	node_simple_sdf_shapes_sdunevencapsule
	node_simple_sdf_shapes_sdvesica
	node_simple_sdf_shapes_sdstar
	node_simple_sdf_shapes_sdpie
	node_simple_sdf_shapes_sdarrow
	node_simple_sdf_shapes_sdellipse
	node_simple_sdf_shapes_sdtunnel
	node_simple_sdf_shapes_sdstairs
	node_simple_sdf_shapes_sdkite

Operators
+++++++++

.. toctree::
	:maxdepth: 1

	node_simple_sdf_operators_sdboolean
	node_simple_sdf_operators_sdsmoothboolean
	node_simple_sdf_operators_sdroundedshape
	node_simple_sdf_operators_sdannularshape
	node_simple_sdf_operators_sdmorph
	node_simple_sdf_operators_sdrepeat
	node_simple_sdf_operators_sdcirclerepeat
	node_simple_sdf_operators_sd_mask_to_sdf

Transforms
++++++++++

.. toctree::
	:maxdepth: 1

	node_simple_sdf_transforms_translate
	node_simple_sdf_transforms_rotate
	node_simple_sdf_transforms_scale
	node_simple_sdf_transforms_scale_xy

Example images
++++++++++++++

.. image:: images/node_sdf_samples.png
	:align: center
