dBoundingBox NURBSPrimitive::GetBoundingBox(const dMatrix &space) { dBoundingBox box; for (vector<dVector>::iterator i=m_CVVec->begin(); i!=m_CVVec->end(); ++i) { box.expand(space.transform(*i)); } return box; }
dBoundingBox PixelPrimitive::GetBoundingBox(const dMatrix &space) { dBoundingBox box; for (vector<dVector,FLX_ALLOC(dVector) >::iterator i=m_Points.begin(); i!=m_Points.end(); ++i) { box.expand(space.transform(*i)); } return box; }
dBoundingBox ParticlePrimitive::GetBoundingBox(const dMatrix &space) { dBoundingBox box; for (vector<dVector,FLX_ALLOC(dVector) >::iterator i=m_VertData->begin(); i!=m_VertData->end(); ++i) { box.expand(space.transform(*i)); } return box; }