graphic design tool
git clone https://git.lucas.co/cce-designer.git
nodes/polygon.json (1.3K)
1 {
2 "name": "Polygon",
3 "type": "polygon",
4 "inputs": 0,
5 "outputs": 1,
6 "params": [
7 { "name": "sides", "label": "Sides", "type": "spinbox", "default": "4", "min": 3.0, "max": 256.0, "step": 1.0, "description": "Number of corners: 3 is a triangle, 4 a square, high counts approach a circle. With an Inner Radius it is the number of star points." },
8 { "name": "radius", "label": "Radius", "type": "slider", "default": "0.50", "min": 0.01, "max": 10.0, "step": 0.01, "description": "Distance from the center to each outer corner, in world units." },
9 { "name": "inner_radius", "label": "Inner Radius", "type": "slider", "default": "0.00", "min": 0.0, "max": 10.0, "step": 0.01, "description": "Distance of the inner corners for a star, in world units. 0 makes a regular polygon; above 0 every other corner is pulled to this radius." },
10 { "name": "fill", "label": "Fill", "type": "choice:true,false", "default": "true", "description": "true builds a filled shape of triangles fanned from the center; false builds only the outline as edges." },
11 { "name": "center", "label": "Center", "type": "float3", "default": "0.00:0.00:0.00", "description": "Position of the shape's center in world units; the polygon lies flat in the XZ plane through this point.", "group": "place" }
12 ]
13 }