Duplicate Borders of trimmed surfaces in C#

Hi there,

I’m doing i C# script component in grasshopper and I am having trouble duplicating surface borders. I have tried the following:

srf.ToBrep().DuplicateEdgeCurves();

This gives me the untrimmed edges as illustrated in the picture below:

What method should I use to retrieve trimmed edges?

Don’t work with surfaces. Surfaces have no trims. Use Brep and you are good to go.

Thanks,

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Thanks for a quick reply!