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

@@ -106,6 +106,15 @@ ON_Geometry::GetBoundingBox( // returns true if successful
return rc;
}
const ON_BoundingBox ON_Geometry::TightBoundingBox() const
{
ON_BoundingBox bbox = ON_BoundingBox::NanBoundingBox;
// call virtual function
if (this->GetTightBoundingBox(bbox, false, nullptr) && bbox.IsValid())
return bbox;
return ON_BoundingBox::NanBoundingBox;
}
bool ON_Geometry::GetTightBoundingBox(
ON_BoundingBox& tight_bbox,
bool bGrowBoxAsInt,