Niz_T
(NTT)
November 29, 2024, 6:05pm
1
Dear community members,
i am trying to project a text on brep and split it. instead of projecting or pulling i found that Rhino Common command Brep split works well.
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.brep/split
The issue is with filtering the desired surfaces. How do I filter the result so I get only the Text R ?
See image below
I am writing it in python grasshopper using rhino common
Thanks a lot
Tom_P
November 29, 2024, 6:49pm
2
some Ideas
(1)
the “R” surface should have one inner loop - the selected surfaces not.
Brepface - Loops
LoopType
BrepLoop Type
(2)
But if you do it with “M” this approach will fail.
maybe comparing the boudingbox will be enough ?
(3)
if it is always a single Surface that is trimmed:
check the boundingbox of the
BrepLoop.To2dCurve()
hope this helps - kind regards -tom
Niz_T
(NTT)
December 7, 2024, 6:09pm
3
Thank you Tom for your Answer.
It turned out the best option is to check all bounding boxes and remove the ones contained in the big one.
if bbox_L.Contains(bbox_S):
Note: I had to scale the big one a bit to ensure successful check