Thanks for reporting the bug Dale and for the help however there is still a problem, your script trim the surface but picture is shrinked not trimed, this is an undesired behavior that dosen’t happend with the manual command. maybe it’s important to specify it in the bug report, I made this graph and hope it explain better the problem :
in the meanwhile if there is another solution I’m interested.
I didn’t even notice this - sorry for the run around.
Rhino.Geometry.Surface.Trim actually shrinks the underlying surface. So, this is never going to work correctly with a picture frame object. Note, rs.TrimSurface calls ``Rhino.Geometry.Surface.Trim```
On the other hand, Rhino.Geometry.Brep.Trim, which is called by rs.TrimBrep should work. But the underlying function is incorrectly shrinking the underlying surface of the trimmed face. This is a bug.