I need to rotate or re-orient breps following the direction of a surface normal. What I have been doing is inputting a surface and dividing it into vertical rectangular pipes.
You have to cull 2 of the planes because they overlap. You can use a Point List component to display the location of the plane origins so you can determine which ones you want to cull.