Hello,
I’m trying to remove a portion of a sweep brep and my string works and at the same time it doesn’t (GH file attached).
The material I’m trying to remove would make room for an open joint between two objects lets call it. So I solved for their intersections, created a polyline and swept a circle so that the radius would provide me a clean 1/2" open joint. And it worked, then I copied the string up to repeat on the other side and it simply would not work. It would not “cut” through the surface as it did on the opposite side. For what it’s worth mentioning in creating a clone of my code and internalizing the data the side that worked stopped working and the side that didn’t work now works (when split separately).
I’m at a lose and any help would be appreciated. canopy split.gh (33.5 KB)
After messing around with some distractions (like running data through text panels - not advised), I ended up with what might be the same problem as you had, caused by “Invalid Breps”.
The invalid breps are created because the swept circle you’re using as a cutter has seams that are coincident with the brep you’re splitting. Adjusting the seam of the circle used as the Sections (S) input to the Sweep1 component corrects this.
Thanks. I was about to investigate a slight mis-alignment between the left and right mirrored vertical sections but won’t bother since you found this. Details!
Kevin,
Am I understanding this solution correctly? The idea of treating a circle as a closed shape is incorrect, and a circle in GH is treated as a curve from 0 degrees to 360 degrees with a seam by default.
Also with the merge being used -for a polyline greater than 4 points would I need to repeat this step in sets of 4? Or is there another way that avoids panels?
Not sure what you’re asking here, but what you’ve written sounds correct.
The Merge component is used to combine multiple data items into a list. It is not a good idea to pass numeric data through panels like you were doing because the Panel component converts it to text which results in loss of precision due to rounding.
Also, the Merge component is preferable to just connecting multiple wires to a single input because it allows you to determine the order of the items being placed into the list.