void extendBy(const box3<Type>& bb) { if (bb.isEmpty()) return; if (box3<Type>::isEmpty()) { *this = bb; m_matrix.makeIdentity(); m_invertedMatrix.makeIdentity(); return; } }
void plane:: extendBy ( const box3& box ) { if ( !box.isEmpty() ) { vec3 a ( math::vec3::NoInit ); vec3 b ( math::vec3::NoInit ); box.get ( a, b ); extendBy ( a ); extendBy ( b ); } }
void sphere:: extendBy ( const box3& box ) { PNIMATHUNTESTED; if ( !box.isEmpty() ) { sphere tmpsphere; tmpsphere.extendBy ( box.minPos ); tmpsphere.extendBy ( box.maxPos ); extendBy ( tmpsphere ); } }