mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-27 13:29:00 +08:00
Sync changes from upstream repository
Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -1042,6 +1042,15 @@ ON_PolyCurve::IsPlanar(
|
||||
rc = IsInPlane( test_plane, tolerance );
|
||||
if (rc && plane)
|
||||
*plane = test_plane;
|
||||
|
||||
// RH-75060 GBA 9-June-23
|
||||
// For a planar simple closed curve we should return the plane
|
||||
// whose orientation that matches the curve orientation.
|
||||
if (rc && plane && IsClosed())
|
||||
{
|
||||
if (ON_ClosedCurveOrientation(*this, *plane) < 0)
|
||||
plane->Flip();
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user