Getting 4 Boundary Edges from Polysurfaces in Grasshopper

Hello everyone,

I am currently working on the structure of a sailboat, and to do so I need to split my boat into many panels. For each panel, I need to extract the surface centroid as well as the lengths of its four edges.

I’m trying to automate this data extraction using Grasshopper to make the process easier. However, the issue is that some of my panels are polysurfaces made of 1 to 3 surfaces.

At the moment, I can successfully get the centroid of the polysurface, but when it comes to the dimensions, Grasshopper returns 6 edge lengths, which correspond to this:

So I was wondering if you have any solution to obtain only 4 boundary edges. Here is the definition I have so far:

This is my first project in Grasshopper—thanks in advance for your help!

please share your brep

For now i see such options

MergeEdges.gh (10.6 KB)

Thank you for your reply. Here is my Brep, as well as the first Grasshopper definition I created.

For now, I’ve tried the solution you suggested, but it seems that the problem is still the same.

Thanks again for your help!

test.gh (13.7 KB)

Panel_Exemple.3dm (826.2 KB)

test.gh (7.1 KB)

You might want to use discontinuity with treshold from parakeet

Thank you! It works perfectly!

Hello, this is also my first time using Grasshopper and I have the same problem, but for me the unnecessary edge is in the middle (my polysurfaces are below if you want to see). How can the Grasshopper be adapted to my problem? Thank you in advance for your response!

image

surface.3dm (898.6 KB)

It’s the right surface which doesn’t work

srf.gh (12.0 KB)