Surface Edge Trims


#1

Is there a way to return the edge of surface that make up a trim with the Rhinoscriptsyntax?

Looks like in OpenNurbs it stores an Edge trim Array?


#2

Try rs. DuplicateEdgeCurves (list of individual edges) or rs.DuplicateSurfaceBorder( inner, outer or both surface borders)…

HTH, --Mitch


#3

rs.DuplicateEdgeCurves is going to give me all the edges, not just the trim edges?

Huh if use rs.DuplicateSurfaceBorder and look for interior it doesn’t come up with any trim curves.


#4

Yes, I don’t think there’s a way to distinguish between a “natural” edge and a “trimmed” edge as far as I know. I think you would have to get the natural edges of the underlying untrimmed surface and then compare those with the actual face edges, and eliminate any that are duplicates… leaving the “trimmed edges”.

The surface you show doesn’t have any interior trims (holes)…?


#5

Thanks.

I guess I miss interpreted what interior meant. I thought that any edge inside one of the 4 boundary edges would be considered an interior edge.


#6

Whether a BrepEdge corresponds with a natural surface side is defined by IsoStatus of the relevant BrepTrim.
http://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_IsoStatus.htm


#7

Ahh, thanks, I’ve looked at that function before, but I didn’t connect it’s use with this situation…