Skip to content

Commit e20ef0d

Browse files
FIX: small modification of naming for GetAxixAlignedBoundingBox for more consistency
1 parent 6905b1b commit e20ef0d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/diffCheck/geometry/DFPointCloud.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace diffCheck::geometry
116116
return cilantroPointCloud;
117117
}
118118

119-
std::vector<Eigen::Vector3d> DFPointCloud::ComputeBoundingBox()
119+
std::vector<Eigen::Vector3d> DFPointCloud::GetAxixAlignedBoundingBox()
120120
{
121121
auto O3DPointCloud = this->Cvt2O3DPointCloud();
122122
auto boundingBox = O3DPointCloud->GetAxisAlignedBoundingBox();

src/diffCheck/geometry/DFPointCloud.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace diffCheck::geometry
5454
* @return std::vector<Eigen::Vector3d> A vector of two Eigen::Vector3d, with the first one being the minimum
5555
* point and the second one the maximum point of the bounding box.
5656
*/
57-
std::vector<Eigen::Vector3d> ComputeBoundingBox();
57+
std::vector<Eigen::Vector3d> GetAxixAlignedBoundingBox();
5858

5959
/**
6060
* @brief Estimate the normals of the point cloud by either knn or if the radius

src/diffCheck/registrations/DFRefinedRegistration.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace diffCheck::registrations
1313
int maxIteration,
1414
bool usePointToPlane)
1515
{
16-
std::vector<Eigen::Vector3d> minMax = source->ComputeBoundingBox();
16+
std::vector<Eigen::Vector3d> minMax = source->GetAxixAlignedBoundingBox();
1717

1818
std::shared_ptr<open3d::geometry::PointCloud> O3Dsource = source->Cvt2O3DPointCloud();
1919
std::shared_ptr<open3d::geometry::PointCloud> O3Dtarget = target->Cvt2O3DPointCloud();
@@ -65,7 +65,7 @@ namespace diffCheck::registrations
6565
double relativeFitness,
6666
double relativeRMSE)
6767
{
68-
std::vector<Eigen::Vector3d> minMax = source->ComputeBoundingBox();
68+
std::vector<Eigen::Vector3d> minMax = source->GetAxixAlignedBoundingBox();
6969

7070
std::shared_ptr<open3d::geometry::PointCloud> O3Dsource = source->Cvt2O3DPointCloud();
7171
std::shared_ptr<open3d::geometry::PointCloud> O3Dtarget = target->Cvt2O3DPointCloud();

src/diffCheckBindings.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ PYBIND11_MODULE(diffcheck_bindings, m) {
3131

3232
.def("compute_distance", &diffCheck::geometry::DFPointCloud::ComputeDistance,
3333
py::arg("target_cloud"))
34-
.def("compute_BoundingBox", &diffCheck::geometry::DFPointCloud::ComputeBoundingBox)
3534

3635
.def("voxel_downsample", &diffCheck::geometry::DFPointCloud::VoxelDownsample,
3736
py::arg("voxel_size"))
@@ -55,6 +54,7 @@ PYBIND11_MODULE(diffcheck_bindings, m) {
5554
.def("add_points", &diffCheck::geometry::DFPointCloud::AddPoints)
5655

5756
.def("get_tight_bounding_box", &diffCheck::geometry::DFPointCloud::GetTightBoundingBox)
57+
.def("get_axis_aligned_bounding_box", &diffCheck::geometry::DFPointCloud::GetAxixAlignedBoundingBox)
5858

5959
.def("get_num_points", &diffCheck::geometry::DFPointCloud::GetNumPoints)
6060
.def("get_num_colors", &diffCheck::geometry::DFPointCloud::GetNumColors)

tests/unit_tests/DFPointCloudTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ TEST_F(DFPointCloudTestFixture, ComputeDistance) {
118118
}
119119

120120
TEST_F(DFPointCloudTestFixture, ComputeAABB) {
121-
std::vector<Eigen::Vector3d> bbox = dfPointCloud.ComputeBoundingBox();
121+
std::vector<Eigen::Vector3d> bbox = dfPointCloud.GetAxixAlignedBoundingBox();
122122
EXPECT_EQ(bbox.size(), 2);
123123
}
124124

0 commit comments

Comments
 (0)