Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of alpha shape pybind #1624

Merged
merged 8 commits into from
Mar 18, 2020
10 changes: 10 additions & 0 deletions src/Python/open3d_pybind/geometry/trianglemesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@ void pybind_trianglemesh(py::module &m) {
"'As-Rigid-As-Possible Surface Modeling', 2007",
"constraint_vertex_indices"_a, "constraint_vertex_positions"_a,
"max_iter"_a)
.def_static("create_from_point_cloud_alpha_shape",
[](const geometry::PointCloud &pcd, double alpha) {
return geometry::TriangleMesh::
CreateFromPointCloudAlphaShape(pcd, alpha);
},
"Alpha shapes are a generalization of the convex hull. "
"With decreasing alpha value the shape schrinks and "
"creates cavities. See Edelsbrunner and Muecke, "
"\"Three-Dimensional Alpha Shapes\", 1994.",
"pcd"_a, "alpha"_a)
.def_static("create_from_point_cloud_alpha_shape",
&geometry::TriangleMesh::CreateFromPointCloudAlphaShape,
"Alpha shapes are a generalization of the convex hull. "
Expand Down