GeoNodes Get outside edge/curve from flat band (with hole)

Hello everyone

I got some/one flat face-band-ring and I need to get the outside curve only.

My goal is to “merge” the band to a single outside contour, especially if the inner contour is very close/parallel to the outside one. Because I want to have bands that are inside of others becoming their own contour. (So a fill + get outside would not work)

I tried around with merge by distance and large position blurs, but they didn’t give clean results.

Greets, Mech

Assuming that the outer contour is probably the longest one you could simply get the max Spline Length and delete all curves that are smaller than that:

Keep in mind that this won’t work if the inner curves are longer than the outside!
You might want to look up the Point in polygon problem to find a better solution.

Good luck!

3 Likes

I got multiple band-rings. This approach would delete all but one. I need an outside curve for every band-ring. Maybe one could wirk with a island index and use the “smaller method” singularily on every band.

Did you even look at the link i posted?
Using the Winding Number (which i already posted a setup for in one of your other topics) you could check whether a Point is inside or outside of a curve (Winding Number = 0).
If you take a point that is definetly on the mesh island (e.g. the center of a face), all inner curves should have a winding number of 0 and the outer one should be 1 or -1. The setup could look like this:

1 Like