Grasshopper, 25 primitives (11 components, 14 wires)
I read a meta post about programs in GH and LabVIEW, and follow similar instructions to measure a visual language.
Print <null>
for N = 0, 10, 1, 2
, 2 becausebecause Polygon Primitive
cannot generate a polygon with 2 or fewer edges and you will get an empty list of lines.
Components from left to right:
Side count
slider: input- Polygon Primitive: draw a polygon on canvas
- Explode: Explode a polyline into segements and vertices
- Cross reference: build holistic cross reference between all vertices
- Line: draw a line between all pairs
- Delete Duplicate Lines
- Length of curve
- (upper) Sum
- (lower) Division: because
Polygon Primitive
draws polygon based on radius, we need to scale the shape - Multipication
- Panel: output