How to trim surface with curves in Grasshopper?


(Starzred) #1

Dear All

I have generated a set of curves on a surface as attached files and need to trim the surface with these curves.
I know that boundary srf will work but only on a planar condition. Would anyone know how to work this out please?

Many thanks!
Kind regards
Yutaka

trim surface.3dm (236.7 KB)
trim surface.gh (8.6 KB)


(Daniel Benthaus) #2

Hej Yutaka,

I came up with this:
I replaced the sphere with a circle around the center point of each segment (one version uses Isotrim like you did, one uses lunchbox), projected the curves onto the surface and then used surface split.
Sadly projection and split make the script little slow :frowning:

trim surface_2.gh (12.1 KB)


(Starzred) #3

Dear Danielbent

That’s exactly what I needed, thank you so much, it works a bit differently from the native Rhino trim which allows curves to be placed beyond the edges.

Many thanks!
Yutaka