Guys
I have sutfaces grouped by two. They come from set of single flat surfaces that were split along centrelines.
I need to group them by LEFT and RIGHT based on a direction of a centre line.
Assuming the surfaces have uniform normal (if not, join them all and explode).
Pick the mid point P and evaluate the tangent vector T of the curve.
Then with surface/brep closest point find the normal vector N.
Compute the cross product vector V from T and N.
Move P with V (by a small amount is enough).
Surfaces near from resulting point are “right” , surfaces far are “left”.
Writing this was slower than doing directly. For a direct solution, attach your geometries…