Skip to content

Commit 765090c

Browse files
feat; add fit_plane_ransac to binding
1 parent 4ea8161 commit 765090c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/diffCheckBindings.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ PYBIND11_MODULE(diffcheck_bindings, m) {
6161
.def("remove_statistical_outliers", &diffCheck::geometry::DFPointCloud::RemoveStatisticalOutliers,
6262
py::arg("nb_neighbors"), py::arg("std_ratio"))
6363

64-
.def("get_principal_axes", &diffCheck::geometry::DFPointCloud::GetPrincipalAxes,
65-
py::arg("n_components") = 6)
64+
.def("fit_plane_ransac", &diffCheck::geometry::DFPointCloud::FitPlaneRANSAC,
65+
py::arg("distance_threshold") = 0.01,
66+
py::arg("ransac_n") = 3,
67+
py::arg("num_iterations") = 100)
68+
6669
.def("crop",
6770
(void (diffCheck::geometry::DFPointCloud::*)(const Eigen::Vector3d&, const Eigen::Vector3d&))
6871
&diffCheck::geometry::DFPointCloud::Crop,

0 commit comments

Comments
 (0)