center
和extent
。但是我在调试时遇到vector subscript out of range
错误。我尝试了其他问题推荐的解决方案,但它没有用。有任何想法吗?
std::vector<cetuc::BoundingBox> ObjectBox;
std::vector<cetuc::Point3D> center;
std::vector<cetuc::Point3D> extent;
*center and extent are both non zero vectors*
for(int z=0;z<center.size();z++)
{
ObjectBox[z] = cetuc::BoundingBox(center[z], extent[z], cetuc::Point3D(0, 0, 0));
}