Rhino Brep.CreateContourCurves Orientation Behavior in Rhino 9

I believe I discovered a behavior in the Rhino 9 Beta related to section curve orientation. As shown below I have a simple box with a box hole in the center from a Boolean difference. Examining the directions of the new section curves, both are counter-clockwise with respect to world X. This causes an issue when trying to compute cross-section area.

I first used the section command in Rhino 8 (SR36) to cut a plane through the center resulting in two closed curves shown in green and red. I’ve also displayed the curve directions, where you can see that the green outer curve is clockwise with respect to the world X and the red is counter-clockwise. This is a desired outcome because if I need to compute the cross-section area of this section I know to subtract the red area from the green area since they are in opposite directions.

Next I opened the modelin Rhino 9 Beta, and cut another section slightly forward as shown below by the blue outer curve and magenta inner curve.

I am attaching the model in case it is of any help. Let me know if there may be something else I should be looking for to determine the curve orientation, thanks.

Kind regards,

Larry

SectionHoleTest.3dm (102.1 KB)

As another (perhaps simpler) example, below I create a surface in Rhino 8 and reversed the u (red) parameter direction as shown below.

I then cut a section resulting in the green curve with it’s orientation as shown.

Next I opened this model in Rhino 9 Beta, checked to make sure the surface u-direction was maintained (which it was) and cut another section slightly forward. As shown below, the section in Rhino 9 has the opposite orientation.

Hope this is helpful, thanks,

Larry

Sorry about the multiple posts, but I forgot to add a couple of threads/issues that could be related.

HI @LarryL - I’m looking at this.

Thanks,

– Dale