Hi, so im taking some Breps, deconstructing them and sorting the faces by the highest area. In 95% of cases it works as intended, but sometimes it only takes one biggest face. That is annoying cause I cant make a line through the centroid of those 2 biggest faces. My question is how to make it work all the time? Thank you in advance!
Dear Bor,
Please upload your file (or part of it) with internalised data.
From just two images, it is hard to say anything usefull
easiest way to make it work is posting your gh file with internalized geometries
after looking at your screenshot, you are in a classic data tree problem, where pairing is based on branches, and repeat last:
so this is more or less how you are making list item work in that case:
you can probably solve it with Trim Tree + Unflatten like this:
Middle line for walls - problem.gh (146.3 KB)
So again to sum it up, wherever i get the middle curve between the 2 biggest faces of Brep - this is correct, but sometimes it creates the curve on top of one of the sides od the 2 biggest faces of brep. Thank you in advance
Uff, what an obvious mistake haha… I rounded it to 3 decimals with a function and now everything works as intended. Thanks a lot!