We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
Curve
Image
Mesh
Populate
Print
Spiral
Surface
Text
Topology
Tree
Various

nColor

Try to color each face with a color that is different from its neighbours

Inputs

NameIDDescriptionType
Face Faces topologyFFData Tree containing the relations between faces represented by indexInteger
Number of ColoursNcNumber of ColoursInteger
Next Random ColorCIf true next color is random, otherwise it is incrementedBoolean
AutonomousAIf true autonomous algorithmBoolean
Number of triesNtNumber of TriesInteger
SeedSSeedInteger

Outputs

NameIDDescriptionType
Index per faceIColour index per face, -1 if no colour found, colour begin at 0Integer
Number of used coloursNNumber of used coloursInteger
Faces Index with problemFProblematic face indice where it is not possible to stick with the required number of coloursInteger
MessageMMessageText

Site design © Robin Rodricks.   Nautilus and associated data © 2024 Laurent Delrieu.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service