# For the sake of simplicity - help!

I finally got to wire my logo’s geometry to make it ‘cnc’ worthy…
I’ve tried this countless times and can’t figure out if there is anyway to wire such a simple thing better?

This is the basic shape - from the hex points you join the non-adjacent points to make a polygon that intersects itself.

Couldn’t find how to make all triangles join themselves or how to split adjacent polygons to assign that checkerboard black/white color.

Logo Losange.gh (48.0 KB)

If you really want to bother with this! I can’t figure out (since months) the simple checkerboard (find intersection points) create the polygons and split them easy way to do this. It should be easy to make grids (tryiangle/hex or square) and checkerboard it, but again here i go bananas trying.

The other issue i found kind of silly was:
you can create a perfect shape with multiple objects with different colors/geometry but replicating the group with colors can be a problem but i think that’s me not linking lists to colors versus “inherited” color but it would be nice to just give a shape a color and replicate that, wouldn’t it? Would make assemblies much easier. Im just a newbie what do I now know?

Thanks for any pointers!

Simple, hah!

Rigging a sail would seem much simpler on a 3 mast boat right now

Hello
I don’t understand your question. If it is a question of coloring a “Map”, just use Map colouring Theory. I made a small script for that. You specify the number of color, and the algorithm try. The only tricky part could be the frontier check, but it seems to work here.

Logo Losange_LD.gh (21.6 KB)

2 Likes

I have seen the 4 color theorem page before - but wanted to stay away from ‘code’ - each time i tried a new geometry grid i found issues finding adjacency (without calculating the patterns grids (like going polar) - i wont give up

Script 1
brep.Faces[i].AdjacentFaces(); → ok, AHA, oulala! That makes it easier

I m still not sure how to regress or recurse in GH… Again, i want to stay away from code. I might have to change that POV. This is far simpler!

I need to learn C# now

I was just starting with familiarizing myself with phyton. Irony is that im trying to get out of coding life… Only 40 years i started! But my main weapons - hypertalk and powershell are showing limits - and while i dont see how to bridge Livecode gui to GH yet, it’s in the to-do-list. GH could use a HyperCard like add-on IMOHO.

Script 2 - As Neo would say, now i know C#. Simple code! Im not used to oop c++ coding - i know C medium well. But i see the flow and what is happening - never wanted to dig in before into the oops of it all. My main tool is Hypercard - objects are GUI lists of objects directly - just wrap your enterprise quest results and logs and i do in seconds. GH like this i still struggle (after 1 year).

Thanks that was a learning experience. 2nd day of holiday off work and the usual scripting - it’s nice to change types of work pressures. Im trying to add color to my renewed interest in design. You’re an Icon Laurent! I studied graphic programming a lot decades ago, you’re an insipiration when i see what you do. Wish i had GH 40 years ago!

Great!
Over the years I’ve tried both one and two times to make something similar.
I always wanted to be able to do this:

n_colors.gh (11.8 KB)

Thank you Laurent!

2 Likes

Where we do the remote GUI for our GH parameters, we could use a nice Hypercard GUI editor (with fields (lists, tables that are ‘intelligent’), pictures/graphics/themes that are GUI event->condition-> give you the right choices (feed into GH?) → make an intelligent GUI/App) and make a nice application delivery compiler for GH geometries… My 2 cents…

I really miss Hypercard like GUI tools in the GH canvas…

It feels just like home in GH as it would be in Hypercard… But it’s different.

Create a geometry in GH and have a ‘pic’ preview in the canvas would be helpful? It would save time to go check your Rhino view… Wouldn’t be for all cases but like a text field, it would be handy to show an output…

It’s definitely simpler.

Before Laurent replied I tried to simplify it, but it very quickly gets very tangled.

Logo Losange_LR.gh (15.0 KB)

I began my professional work 25 years ago using sort of Graphic programming, it was names AVS then AVS express

I can’t think using Grasshopper without programming, it is a natural extension/simplification. My only advice is: do your own library.

@lars.renklint I am happy if this little code is useful.

1 Like

Nice solution but you need to weave (and enter manually) points…

Like i did with the connections… Doesn’t solve the intersection/adjacence issue.

Goes without saying once you go in the rabbit hole.
My gripe is learning all the libs you used for your code…

Gets me away from the creative/woodwork side.