在2D几何体上获取其最小边界框。
get_min_bound(self) -> open3d.geometry.AxisAlignedBoundingBox
无。
返回一个 open3d.geometry.AxisAlignedBoundingBox
对象,表示2D几何体的最小边界框。
import open3d
polygon_points = [[0,0], [1,0], [1,1], [0,1]]
polygon = open3d.geometry.LineSet()
polygon.points = open3d.utility.Vector2dVector(polygon_points)
min_bound = polygon.get_min_bound()
print(min_bound)
输出结果:
AxisAlignedBoundingBox with center [0.5, 0.5, 0], extents [1, 1, 0], and R = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
无。
open3d.geometry.AxisAlignedBoundingBox
对象。open3d.geometry.Geometry2D
类open3d.geometry.AxisAlignedBoundingBox
类