Skip to content

Commit

Permalink
Revert the tensor version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Berezalsky committed Sep 3, 2024
1 parent 78b8eba commit e90cbc6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions cpp/pybind/t/geometry/boundingvolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,6 @@ 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.
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);

docstring::ClassMethodDocInject(
m, "OrientedBoundingBox", "set_center",
Expand Down Expand Up @@ -422,15 +411,6 @@ This is a wrapper for a CPU implementation.)",
"If set to true uses a more robust method which works in "
"degenerate cases but introduces noise to the points "
"coordinates."}});
docstring::ClassMethodDocInject(
m, "OrientedBoundingBox", "create_minimal_from_points",
{{"points",
"A list of points with data type of float32 or float64 (N x 3 "
"tensor, where N must be larger than 3)."},
{"robust",
"If set to true uses a more robust method which works in "
"degenerate cases but introduces noise to the points "
"coordinates."}});
}

} // namespace geometry
Expand Down

0 comments on commit e90cbc6

Please sign in to comment.