Grasshopper

algorithmic modeling for Rhino

0|Param
1|Create Graph
1|Mesh Graph
2|Weight Graph
3|Primary Segmentation
3|Tree Graph
4|Tools Graph
5|Iterative Segmentation
5|Split Graph
6|Special Segmentation
6|Use Graph
7|Agent Graph
7|Fabrication
8|Mesh Info
8|Visualize Graph
9|Other Tools

K-Means Clustering

Component Index > Ivy > 5|Iterative Segmentation > K-Means Clustering

Splits a mesh graph (not a tree) in an iterative fashion based on a number of parts specified by the user

Inputs

NameIDDescriptionType
ResetRReset the clustering algorithm to the initial stepBoolean
MeshGraphGThe MGraph object used to perform graph splitGoo
PiecesPThe number of pieces the graph is to be split in. This is automatic seed pickingInteger
SeedsSManual seed specification, specify the indexes of the mesh faces where the clusters will startInteger

Outputs

NameIDDescriptionType
SubGraphsSThe produced graph objectsGoo
CenterSeedscSthe seeds after center calculationInteger

© 2018   Created by Robin Rodricks and Andrew Heumann.   Hosted by

Badges  |  Report an Issue  |  Terms of Service