Skip to content
Snippets Groups Projects
Commit 1ca3177b authored by Adrian Knobloch's avatar Adrian Knobloch
Browse files

Change the BoundingBox to return no points, if no points where added

parent 957c1823
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,12 @@ namespace VirtualRobot
{
std::vector < Eigen::Vector3f > points;
if (std::isnan(min(0)) || std::isnan(min(1)) || std::isnan(min(2)) ||
std::isnan(max(0)) || std::isnan(max(1)) || std::isnan(max(2)))
{
return points;
}
points.push_back(Eigen::Vector3f(min(0), min(1), min(2)));
points.push_back(Eigen::Vector3f(min(0), min(1), max(2)));
points.push_back(Eigen::Vector3f(min(0), max(1), min(2)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment