Managing Two Sets of Streams for Relative Items?

I am trying to find out gap tolerances between different hexagons which will be punctured in an MDF sheet. In order to do that, I used relative item to match the centre points of individual lines on hexagons . The matching is going fine for every alternate set of rows and getting messed up as well in alternate rows because I don’t know how to specify two sets of offset paths.

How to solve this?

TOLERANCE FIXING.gh (21.4 KB)

I mean, I could show you how to determine this geometrically, but given that the grid size is uniform, and the hex offsets (at the moment) are too, isn’t this just math?

The grid size is uniform just for now because I was figuring out the data management. It helps in seeing all the hexagons all together when dealing with complexity of data trees.

I have disconnected the ‘remap numbers’ component as of now as seen in the screenshot too and used just one scale value.

Update.

I have managed to cull-out the inappropriate, ugly looking connections by adding an odd-even logic in the end. But I don’t know how to blend in and create the new short, proper connections now.

TOLERANCE FIXING_update.gh (23.4 KB)

One of, I assume, many ways:


TOLERANCE FIXING VR 1.gh (27.8 KB)

I tried this approach.

Quite a long method though.

image

TOLERANCE FIXING_final.gh (30.8 KB)

The nice thing about Curve Proximity is that it will give you the smallest tolerance even with twisted holes. And that it gives you the distance directly.

@Volker_Rakow I want to know your geometric way!

@archz2,

A less smart way could be to use a mesh (from the cells’ center points) and trim the lines inside the hexes:
TOLERANCE FIXING.gh (44.5 KB)

Pretty much what you did above! :laughing: Or possibly using Point Groups or Closest Points. But this all involves flattening lists.

Nice solution, by the way.

BTW, you can useDual Garph :laughing: from the Parakeet plug-in to get just the adjacencies unlike Delauny Mesh:

We’re such quitters - flattening…plug-ins…

Jokes aside, I didn’t know that could come in handy thanks :oncoming_fist:t6:

Here’s another approach starting with a triangular grid:

tri-hex-trim.gh (11.7 KB)

I thought about that. The thing is you might have to align the trianglar grid against the hexgrid, and Dual Garph will accomodate more unusual polygonal grids including custom made ones.

@martinsiegrist Here:

Apparently Heteroptera even has a more refined version of this.

Graph

Garph. It’s not my mis-spelling.

I don’t plug in when not really really necessary

I hear you.

I have to assume that this is more in line with what you were hoping for:


TOLERANCE FIXING VR 2.gh (39.6 KB)

Not quite sure how to order the lines at the end though. :thinking:

Somebody help me. Getting this result (the one as it is in the large panel) cannot be this hard:

TOLERANCE FIXING VR WTF.gh (60.0 KB)