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:
Bozo the Builder
2023-06-27 14:12:47 -07:00
parent 112b5142ba
commit 3c751dd0ea
33 changed files with 2151 additions and 1856 deletions

View File

@@ -706,7 +706,18 @@ ON_CurveProxy::IsPlanar(
double tolerance // tolerance to use when checking linearity
) const
{
return ( m_real_curve ) ? m_real_curve->IsPlanar(plane,tolerance) : false;
// RH-75060 GBA 9-June-23 Changed to consider only the m_real_curve_domain if need be.
// return (m_real_curve) ? m_real_curve->IsPlanar(plane, tolerance) : false;
bool rc = false;
if(m_real_curve)
{
rc = m_real_curve->IsPlanar(plane, tolerance);
if (!rc)
{
rc = ON_Curve::IsPlanar(plane, tolerance);
}
}
return rc;
}
bool