mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-06 15:05:52 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user