Boolean Failure in RhinoCommon

I think that I have found the source of the problem. In this example the plates are built out of a closed profile
and extruded along a path. The boolean operation becomes a union or a subtraction if the polyline orientation is flipped from ccw to cw. So it seems that I have to check orientation of the profile based on the extrusion direction to get a valid oriented brep ?

any hint ?
Gerry