Surface boundary lines c#

Hello all,

I’m trying to get Brep edges using C#, but I’m not getting edges as with a Grasshopper Brep Edges component.

Curve[] edges = srf.ToBrep().DuplicateEdgeCurves();
A = edges;

Can anyone let me know how I can get correct surface boundary curves using C#? (8.8 KB)

Use Brep as input type, Surface dont store trim data , thats why its giving you the border of the untrimmed srf:

private void RunScript(Brep srf, ref object A)

    A = srf.DuplicateEdgeCurves();


Thank you @Baris! I had no idea why I couldn’t get these simple boundary lines…

1 Like