Skip to content

Commit

Permalink
Apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Berezalsky committed Sep 3, 2024
1 parent dc05a8c commit 78b8eba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cpp/pybind/geometry/boundingvolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ The returned bounding box is an approximation to the minimal bounding box.
the principal components.
)doc")
.def_static("create_minimal_from_points",
&OrientedBoundingBox::CreateFromPointsMinimal, "points"_a,
"robust"_a = false,
&OrientedBoundingBox::CreateFromPointsMinimal,
"points"_a, "robust"_a = false,
R"doc(
Creates the oriented bounding box with the smallest volume.
Expand Down
8 changes: 5 additions & 3 deletions cpp/pybind/t/geometry/boundingvolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,17 @@ that could be computed for example with O'Rourke's algorithm
(cf. http://cs.smith.edu/~jorourke/Papers/MinVolBox.pdf, https://www.geometrictools.com/Documentation/MinimumVolumeBox.pdf)
This is a wrapper for a CPU implementation.)",
"points"_a, "robust"_a = false);
obb.def_static("create_minimal_from_points", &OrientedBoundingBox::CreateFromPointsMinimal,
R"(Creates the oriented bounding box with the smallest volume.
obb.def_static(
"create_minimal_from_points",
&OrientedBoundingBox::CreateFromPointsMinimal,
R"(Creates the oriented bounding box with the smallest volume.
The algorithm makes use of the fact that at least one edge of
the convex hull must be collinear with an edge of the minimum
bounding box: for each triangle in the convex hull, calculate
the minimal axis aligned box in the frame of that triangle.
at the end, return the box with the smallest volume.
This is a wrapper for a CPU implementation.)",
"points"_a, "robust"_a = false);
"points"_a, "robust"_a = false);

docstring::ClassMethodDocInject(
m, "OrientedBoundingBox", "set_center",
Expand Down

0 comments on commit 78b8eba

Please sign in to comment.