Sync changes from upstream repository

Co-authored-by: Andrew Le Bihan <andy@mcneel.com>
Co-authored-by: Bozo <bozo@mcneel.com>
Co-authored-by: Bozo the Builder <bozo@mcneel.com>
Co-authored-by: croudyj <croudyj@gmail.com>
Co-authored-by: Dale Lear <dalelear@mcneel.com>
Co-authored-by: piac <giulio@mcneel.com>
This commit is contained in:
Bozo the Builder
2023-08-21 06:01:25 -07:00
parent 6e754fbf6d
commit cb1994195e
30 changed files with 1892 additions and 299 deletions

View File

@@ -360,6 +360,9 @@ bool ON_Plane::IsValid() const
double x = plane_equation.ValueAt(origin);
if (ON_IS_NAN(x))
return false;
if ( fabs(x) > ON_ZERO_TOLERANCE )
{
double tol = fabs(origin.MaximumCoordinate()) + fabs(plane_equation.d);
@@ -392,6 +395,23 @@ bool ON_Plane::IsValid() const
return true;
}
void ON_Plane::Dump(class ON_TextLog& text_log) const
{
text_log.Print("plane equation: ");
plane_equation.Dump(text_log);
text_log.PrintNewLine();
text_log.PushIndent();
text_log.Print("xaxis=");
text_log.Print(xaxis);
text_log.Print(", yaxis=");
text_log.Print(yaxis);
text_log.Print(", zaxis=");
text_log.Print(zaxis);
text_log.Print(", origin=");
text_log.Print(origin);
text_log.PrintNewLine();
text_log.PopIndent();
}
bool ON_Plane::Transform( const ON_Xform& xform )
{