SnowFlake G-code generator
npm install negheroSnowFlake G-code generator
For printing on 3D printer with transparent material PETG, Polycarbonate, etc. In a single layer.
Generate set of continious outline paths expanding from center with branches under 30 degrees.
``js`
npx neghero -j "{tree:[4,[3,[10,[8,[2,1,1],[3,1,1]],[5,5,[3,2,[2,1,1]]]],3],3],s:8,l:7,p:2.8}" -o neghero-0004.gcode

`js`
npx neghero -j "{tree:[7,[4,[5,[7,[5,[2,[5,[6,[6,[7,5,1],7],3],15],2],1],[9,[4,4,2],3]],5],5],3],s:4,l:11,p:2.8}" -o neghero-0005.gcode

`js`
npx neghero -j "{tree:[7,[5,[11,[12,[4,[6,[9,4,4],10],15],13],16],5],3],l:15,p:2.8}" -o neghero-0006.gcode

`js`
npx neghero -j "{tree:[7,[5,[11,[11,[10,[9,[7,2,1],5],[5,4,1]],[6,[5,5,1],1]],[7,[7,4,2],3]],8],4],l:9,p:2.8}" -o neghero-0007.gcode

`js`
npx neghero -j "{tree:[8,[3,7,8],5],s:10,l:11,p:2.8}" -o neghero-0003.gcode

npx neghero
`txt
Usage: neghero [options]
Options:
-c, --config
-j, --json
-p, --profile
-o, --output
-h, --help display help for command
`
Each unique snoflake is defined by object with following properties:
A structure, defining topology of snowflake arms.
It is a recursive structure of nodes, where node is a 3 element array:
#### Node
```
[trunk, center, side]
* trunk - natural number defining length of trunk line.
* center - element defining center branch. Could be:
- natural number, for a final central branch.
- Node, for a next level of the tree.
* side - element defining two side branches. Could be:
- natural number, for a final side branches.
- Node, for a next level of the tree.

Tree scale. natural number to scale tree numbers. (optional, default: 4)
Layer count. natural number defining number of layers lines around the skeleton of the tree. (optional, default: 4)
display/print grid pitch. (optional, default: 2)
https://observablehq.com/@drom/neghero
View G-code online: https://ncviewer.com
Online version: neghero.drom.io
Printer / material related parameters:
* line spacing
* line width
* layer height
* print speed