fabien2
(fabien)
February 6, 2023, 4:27pm
1
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.
fabien2
(fabien)
February 6, 2023, 4:56pm
3
thought I had done this…
Thanks for having a look : )
This is a part of your screenshot from above:
Where is this in your Grasshopper file?
fabien2
(fabien)
February 6, 2023, 5:02pm
5
up there where it should always have been : )
fabien2
(fabien)
February 6, 2023, 5:04pm
7
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:
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
fabien2
(fabien)
February 6, 2023, 5:27pm
9
I see trimming breps instead of trimming brep makes sense… Thank you
1 Like
Actually there is a Trim with Brep
s 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
1 Like