This commit is contained in:
2024-02-16 19:32:19 -05:00
parent 4960f3eba3
commit 408d767dcd
3 changed files with 3 additions and 15 deletions

View File

@@ -317,8 +317,6 @@ namespace fgl::engine
const Plane< CoordinateSpace::Model > bottom_plane { glm::cross( bottom_forward, constants::WORLD_LEFT ),
0.0f };
std::cout << bottom_plane.direction() << std::endl;
return { near_plane, far_plane, top_plane, bottom_plane, right_plane, left_plane };
}

View File

@@ -238,10 +238,6 @@ namespace fgl::engine
const glm::vec3 midpoint { ( top_left_front + bottom_right_back ) / glm::vec3( 2.0f ) };
const glm::vec3 scale { bottom_right_back - midpoint };
std::cout << "Generated bounding box from " << points.size() << " points. Output:\n\tMidpoint:" << midpoint.x
<< " " << midpoint.y << " " << midpoint.z << "\n\tScale:" << scale.x << " " << scale.y << " "
<< scale.z << std::endl;
return { Coordinate< CType >( midpoint ), scale };
}

View File

@@ -50,7 +50,7 @@ TEST_CASE( "BoundingBox", "[boundingbox]" )
}
}
for ( int j = 0; j < 32; ++j )
BENCHMARK( "Combine bounding box" )
{
auto generatePoints = []()
{
@@ -87,12 +87,6 @@ TEST_CASE( "BoundingBox", "[boundingbox]" )
}
}
//Check that the lowest point is the one from the combined box too
REQUIRE( model_box.bottomLeftBack().x == lowest_point.x );
REQUIRE( model_box.bottomLeftBack().y == lowest_point.y );
REQUIRE( model_box.bottomLeftBack().z == lowest_point.z );
REQUIRE( model_box.topRightForward().x == highest_point.x );
REQUIRE( model_box.topRightForward().y == highest_point.y );
REQUIRE( model_box.topRightForward().z == highest_point.z );
}
return model_box;
};
}