Sync changes from upstream repository

Co-authored-by: Steve Baer <steve@mcneel.com>
Co-authored-by: Nathan Letwory <nathan@mcneel.com>
Co-authored-by: Dale Lear <dalelear@mcneel.com>
This commit is contained in:
Bozo The Builder
2019-11-05 18:13:55 -08:00
committed by Will Pearson
parent b844466e88
commit 799431a63b
130 changed files with 29557 additions and 9236 deletions

View File

@@ -2675,8 +2675,9 @@ double CalcRectVolumeHelper(const ON_RTreeBBox* a_rect)
r += d * d;
d = (a_rect->m_max[2] - a_rect->m_min[2]);
r += d * d;
r = sqrt(r*0.5); // r = sqrt((dx^2 + dy^2 + dz^2)/2);
return (r * r * r * 4.1887902047863909846168578443727); // 4/3 pi r^3
//r = sqrt(r*0.5); // r = sqrt((dx^2 + dy^2 + dz^2)/2);
//return (r * r * r * 4.1887902047863909846168578443727); // 4/3 pi r^3
return r;
#elif ( 2 == ON_RTree_NODE_DIM )
// 2d bounding circle volume
d = (a_rect->m_max[0] - a_rect->m_min[0]);