//// write the largest components of max_v and new_v to max_v;
//void max_row_vec_3(EigenRowVector3& max_v, const EigenRowVector3& new_v)
//{
//	for (unsigned int i = 0; i != 3; ++i)
//	{
//		max_v[i] = std::max(max_v[i], new_v[i]);
//	}
//}
//
//// write the smallest components of min_v and new_v to min_v;
//void min_row_vec_3(EigenRowVector3& min_v, const EigenRowVector3& new_v)
//{
//	for (unsigned int i = 0; i != 3; ++i)
//	{
//		min_v[i] = std::min(min_v[i], new_v[i]);
//	}
//}

//EigenRowVector3 max_v(-INFINITY, -INFINITY, -INFINITY);
//	EigenRowVector3 min_v(INFINITY, INFINITY, INFINITY);
//
//	for (unsigned int i = 0; i < m_vertices.rows(); ++i)
//	{
//		EigenRowVector3 vi = m_vertices.block<1, 3>(i, 0);
//		max_row_vec_3(max_v, vi);
//		min_row_vec_3(min_v, vi);
//	}
//
//	m_bounding_box.block<1, 3>(0, 0) = min_v;
//	m_bounding_box.block<1, 3>(1, 0) = max_v;