Join curves did not combine all the curves

When I am using join curves to try to combine lines with some certain geometric relationships, it did not work very well. I tried flatten the input lines, but it didn’t give me any change.

After I applied center of polygon, it shows a couple of points. But All I need is one point of the whole geometry.

Can anyone try some luck for me?

Lattice-2d-20240829-1.gh (13.9 KB)

Hi, your polyline curve needs to be closed in order to get the centroid of the shape. I have used Pufferfish plugin’s Close Curve component to close the curve and then find centroid.



Lattice-2d-20240829-1_close-crv.gh (24.1 KB)

Hi -

Fundamentally, you can’t join curves into non-manifold structures (i.e. “Y”-like structures where more than two curves are joined at single point).

Joining the curves in this file results in an open curve with 7 segments and one single line.

If that is the sole required output, you can use a bounding box and extract its centroid.

-wim

2 Likes

Thank you for the advice.

I tried opening your files, it pops up that I am missing a plugin, which plugin did u used for the last feature.

Also my files looks like this?

This is what I used

Thank you, I will try your suggested method.

And that is not my final purpose, I want to use this close curve as pattern geometry, and move the pattern to the points below (scale up and down a bit to make it like a pattern).

Lattice-2d-20240829-2.gh (25.8 KB)

Hi, I the only plugin I have used here is Pufferfish. I checked this script in my system and it works fine.

Also here is one way you approach the lattice.

Lattice-2d-20240829-2-close_crv+move.gh (29.4 KB)


Thank you for the prompt reply, can I know which version of rhino you are using?

No sure why it gives me different results.

I am using the latest version of Rhino 8 - Version 8 SR10 (8.10.24228.13001, 2024-08-15)

I think it is the version problem, I will try to figure it out, I am using rhino 6, thanks