Fractal Curve
=============

Functionality
-------------

This node generates a fractal curve, by replacing each edge of input curve with a copy of that curve, several times.

NB 1: Number of vertices in the output curve grows exponentially with number of iterations. 

NB 2: Usually you will want to use curves, for which diameter (distance between
to most distant vertices) is less than distance from the first vertex to the
last. Otherwise, the output curve can grow very large.

NB 3: Usually you will want to use curves, edges of which have nearly the same length.

Inputs
------

This node has the following inputs:

* **Iterations** - number of iterations.
* **MinLength** - minimum length of edge to substitute.
* **Vertices** - vertices of input curve. Vertices should go in the order in which they appear in the curve.

Parameters
----------

This node has the following parameters:

* **Iterations**. Number of iterations. If zero, then output curve will be
  exactly the same as input one. Default value is 3. This parameter can also be
  provided from input.
* **Min. length**. Minimum length of edge to substitute. Fractal substitution
  process will stop for specific edge if it's length became less than specified
  value. Minimal value of zero means that fractal substitution process is
  stopped only when maximum number of iterations is reached. This parameter can
  also be provided from input. Default value is 0.01.
* **Precision**. Precision of intermediate calculations (number of decimal
  digits). Default value is 8. This parameter is available only in the **N** panel.

Outputs
-------

This node has one output: **Vertices** - vertices of the output curve. Vertices
go in the order in which they appear in the curve. You may want to use **UV
Connector** node to draw edges between these vertices.

Examples of usage
-----------------

Classical example:

.. image:: https://user-images.githubusercontent.com/284644/57985244-96718200-7a7e-11e9-8559-61a6feb78882.png

Another example:

.. image:: https://user-images.githubusercontent.com/284644/57985245-970a1880-7a7e-11e9-82ab-f69d61bd5e1d.png

This node can process 3D curves as well:

.. image:: https://user-images.githubusercontent.com/284644/57985246-970a1880-7a7e-11e9-84f3-198244d92df0.png

Vectorization example:

.. image:: https://user-images.githubusercontent.com/284644/58745914-074a6e00-8471-11e9-889d-f41f416fb744.png

