Grasshopper multipipe not working on projected voronoi curves

Hi there,

MAIN PROBLEM: I’ve been trying to find solutions within my script to make the multipipe component work properly, but I keep getting the error message; Solution exception:points must at least contain one point. I’ve tried cleaning the tree to remove empty branches, and to remove duplicate lines, exploding the curves, and also creating new lines from the start and ends points on the original curves. I cannot move the multipipe component in front of the project because the project component only accepts curves and not pipes (or other SubD/ Brep / geometry). Any idea’s as to how I can multipipe the projected curves? I’d reaaaaly greatly appreciate it!!! I’m running Rhino 8 on a Mac, and have internalised all the reference geometry within the grasshopper file, which is attached to this post. If someone can explain me why this isn’t working I’d very very very grateful!

Kind regards,
Falera van Balen

PS: Not necessary to solve, but any tips would be welcome, my next problem is that I want to bend this shape into a cylinder after move/copying it 3 times. But then, in Rhino, I’d bounding box it and edit the control points of the Editbox, but how would I go about this in grasshopper? Does grasshopper have an Editbox equivalent?

Links:
Script for forum.gh (419.1 KB)


make sure to remove duplicate instances of the same Lines after Voronoing them:

then -and this is a secret trick you have to promise you will not share around- scale by factor one

and you will tell me “scaling by factor one equals to not scaling”… no, look with your own eyes:

Script for forum_Re.gh (425.0 KB)

I’m on windows btw, hope it works also on mac

1 Like

There are some really short segments.

2 Likes

so the scale component is just getting rid of the zero-length entities?

1 Like

I don’t think so, the number of items remains the same.

1 Like

OK - I get the trick of removing really short segments (for 3D printing anything less than 0.05 mm might as well be 0), and of course any nulls should be deleted, but scaling by 1? What’s up with that?

Curious people want to know.

1 Like

I investigated again.

Looks like scaling eliminates zero length segments and inserts nulls.

3 Likes

Very interesting Martin - thanks for your analysis.

I’d call this GH Quirk #376.

2 Likes

Hello Inno,

Amazing!!! Thank you so much for looking at my script, this helps me enormously! Good to know that I need to think about, and play with, the location of the RemoveDuplicateLines component within the script after first exploding it. Sound logical. But now that the MultiPipe works, it works a little strangely. The node connections between the curves are all wrinkly, even though the curves aren’t too short to make a proper connection. I tried joining the curves before plugging them into the MP, since this seemed like the only possible place after the explode. And also to play with the kink angle but that doesn’t do much either. Also I noticed the number of divisions on a line sometimes is one, and sometimes a lot more, maybe that’s the cause of the issue, but how does something like that happen?

I added a screenshot and the Grasshopper script again, updated.

Kind regards,
Falera van Balen
Script for forum_Re2.gh (423.3 KB)

Hi Martin,

Thank you as well for looking at the script!! What are the components called after explode and before the cull index? I’m quite new-ish to grasshopper, and haven’t used these components yet. I’ll try to add these to my script to remove the short segments, maybe that’s help unwrinkled the nodes of the MP as wel.

Kind regard,
Falera van Balen

I added this to your definition:

Script for forum_Re_length_larger_than.gh (418.7 KB)

1 Like