Trims inside, but not outside

I have here a set of curves going through a set of spheres. I would like to trim the curves with the spheres. I get the “inside” result, but the outside shows me the curve untrimmed.
Prior to graft my set of curves, I had no result at all. Actually don’t know why I did that, but it seemed to compute the inside trimming…


HullDesign.gh (285.0 KB)

hull design.3dm (4.7 MB)

Please post your Grasshopper definition with the relevant inputs internalised.

thought I had done this…
Thanks for having a look : )

This is a part of your screenshot from above:

image

Where is this in your Grasshopper file?

up there where it should always have been : )

Where?

1 Like

ohhh sorry :
HullDesign.gh (258.0 KB)

Your approach failed because the component you used is asking you for a single brep to trim against:

image

Instead, use the trim with breps and then test which of the segments are inside a sphere.

Something like this:

trim_curves_with_spheres.gh (14.4 KB)

2 Likes

I see trimming breps instead of trimming brep makes sense… Thank you

1 Like

No problem.

Actually there is a Trim with Breps that is even shorter and returns the inside/outside pieces for each curve, that could be useful later on.

trim_curves_with_spheres.gh (11.6 KB)

2 Likes

Ah yes, I used split with breps :slight_smile:

1 Like