Can rhino recognize potential closed curves?


#1

I’m trying to make a macro that tells Rhino to split curves at intersection points, then to make closed curves where it can, and then to delete the non-closed curves that remain. It seems like it shouldn’t be too complicated, but I’m not having much luck. Anyone have a good strategy?


#2

There’s a hidden command called TestGetPlanarRegions that may be of help.


(Pascal Golay) #3

That should do it (testGetPlanarRegions), but to get curves back you’ll need DupBorder on the resulting surfaces.

-Pascal


#4

Hey @Pascal,

How does one find out about test commands like this when they come out?

Thank you.

Cosmas


(Wim Dekeyser) #5

You just read everything that gets posted here…


(Pascal Golay) #6

Hi Cosmas- you don’t… not by any method anyway- there are hundreds of test commands, the vast majority of which are useless to dangerous for users and are only there for the developers. Occasionally one will be just what’s needed to solve some problem or other and it leaks out, with the understanding that you ‘use at your own risk’ and that the command is not supported…

-pascal


#7

Got it. Make sense.


#8

Brilliant, as always. Thanks guys.