Sync changes from upstream repository

This commit is contained in:
Bozo The Builder
2020-09-11 14:29:29 -07:00
parent e15c463638
commit 6a1fea7512
74 changed files with 12912 additions and 3982 deletions

View File

@@ -1101,6 +1101,20 @@ bool ON_Brep::Read( ON_BinaryArchive& file )
m_is_solid = 0;
}
// GBA 3-Sept-20 RH-60112
// In V6 and earlier bounding boxes of faces were bounding box of underlying surface.
// This can result in enourmous boxes which mess up make2d
// In V7 bounding boxes use the trim pbox resulting in resonable boxes.
if (file.Archive3dmVersion() < 70 || file.ArchiveOpenNURBSVersion() < 2382395020)
{
if (!m_bbox.IsEmpty())
{
ON_BoundingBox orig_box = m_bbox;
ClearBoundingBox();
BoundingBox(); // compute bounding box
m_bbox.Intersection(orig_box);
}
}
return rc;
}