Hilbert Curve, Koch Snowflake

 From:  bemfarmer
6441.16 
Here is a 3D HilbertCurve script.

It uses Max's fast htm type code.

The recursion is based upon the Thomas Diewald port of processing code. Note that he used array prototype.
http://mrdoob.github.io/three.js/examples/#webgl_lines_colors
The threejs code was removed, and MoI points and polyline/curve factory added.
The basic level 0 pattern of the 3D Hilbert shape consists of 8 points and 7 line segments, around a cube.

This is one of the 3 possible starting patterns. One cube becomes 8 sub_cubes...etc.
The maximum level is set to 4, since level 5 takes several seconds to appear.

- Brian

Fillet of corners, and sweeps are possible.

Dec2,2017, Changed comma at end of line 62 to a semicolon. Now works with MoI4beta_11_28_17.

EDITED: 2 Dec 2017 by BEMFARMER

Attachments: