94 bool copy =
false)
const;
144 bool relative =
true);
double GetMaxExtent() const
Definition: BoundingVolume.h:171
AxisAlignedBoundingBox & Scale(double scale, const core::Tensor ¢er)
Scale the axis-aligned box. If is the min_bound and is the max_bound of the axis aligned bounding b...
Definition: BoundingVolume.cpp:155
core::Tensor min_bound_
Definition: BoundingVolume.h:221
core::Tensor color_
Definition: BoundingVolume.h:223
core::Tensor GetHalfExtent() const
Returns the half extent of the bounding box.
Definition: BoundingVolume.h:167
bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: BoundingVolume.h:103
A bounding box that is aligned along the coordinate axes.
Definition: BoundingVolume.h:155
AxisAlignedBoundingBox & Translate(const core::Tensor &translation, bool relative=true)
Translate the axis-aligned box by the given translation.
Definition: BoundingVolume.cpp:138
core::Tensor max_bound_
Definition: BoundingVolume.h:222
core::Tensor GetColor() const
Definition: BoundingVolume.h:130
core::Device device_
Definition: BoundingVolume.h:219
const Dtype Float32
Definition: Dtype.cpp:61
virtual ~AxisAlignedBoundingBox() override
Definition: BoundingVolume.h:80
core::Tensor GetMinBound() const
Definition: BoundingVolume.h:126
core::Device GetDevice() const override
Returns the device attribute of this AxisAlignedBoundingBox.
Definition: BoundingVolume.h:83
core::Tensor GetPointIndicesWithinBoundingBox(const core::Tensor &points) const
Indices to points that are within the bounding box.
Definition: BoundingVolume.cpp:215
Tensor Max(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1224
static AxisAlignedBoundingBox FromLegacy(const open3d::geometry::AxisAlignedBoundingBox &box, const core::Dtype &dtype=core::Float32, const core::Device &device=core::Device("CPU:0"))
Definition: BoundingVolume.cpp:267
AxisAlignedBoundingBox & operator+=(const AxisAlignedBoundingBox &other)
Add operation for axis-aligned bounding box. The device of ohter box must be the same as the device o...
Definition: BoundingVolume.cpp:167
math::float4 color
Definition: LineSetBuffers.cpp:64
AxisAlignedBoundingBox Clone() const
Returns copy of the AxisAlignedBoundingBox on the same device.
Definition: BoundingVolume.h:97
open3d::geometry::AxisAlignedBoundingBox ToLegacy() const
Convert to a legacy Open3D axis-aligned box.
Definition: BoundingVolume.cpp:247
Tensor Prod(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1210
double GetYPercentage(double y) const
Definition: BoundingVolume.cpp:192
core::Dtype GetDtype() const
Returns the data type attribute of this AxisAlignedBoundingBox.
Definition: BoundingVolume.h:86
core::Tensor GetExtent() const
Get the extent/length of the bounding box in x, y, and z dimension.
Definition: BoundingVolume.h:164
core::Tensor GetMaxBound() const
Definition: BoundingVolume.h:128
AxisAlignedBoundingBox(const core::Device &device=core::Device("CPU:0"))
Construct an empty AxisAlignedBoundingBox on the provided device.
Definition: BoundingVolume.cpp:37
The base geometry class.
Definition: Geometry.h:40
void SetMinBound(const core::Tensor &min_bound)
Set the min bound of the box. If the data type of the given tensor differs from the data type of the ...
Definition: BoundingVolume.cpp:88
Definition: PinholeCameraIntrinsic.cpp:35
Mix-in class for geometry types that can be visualized.
Definition: DrawableGeometry.h:38
static AxisAlignedBoundingBox CreateFromPoints(const core::Tensor &points)
Definition: BoundingVolume.cpp:233
core::Dtype dtype_
Definition: BoundingVolume.h:220
core::Tensor GetCenter() const
Definition: BoundingVolume.h:132
std::string ToString() const
Text description.
Definition: BoundingVolume.cpp:228
core::Tensor GetBoxPoints() const
Definition: BoundingVolume.cpp:204
double Volume() const
Returns the volume of the bounding box.
Definition: BoundingVolume.h:182
AxisAlignedBoundingBox & Clear() override
Clear all elements in the geometry.
Definition: BoundingVolume.cpp:81
double GetZPercentage(double z) const
Definition: BoundingVolume.cpp:198
void SetColor(const core::Tensor &color)
Set the color of the box.
Definition: BoundingVolume.cpp:122
const Dtype Float64
Definition: Dtype.cpp:62
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound...
Definition: BoundingVolume.h:63
void SetMaxBound(const core::Tensor &max_bound)
Set the max boundof the box. If the data type of the given tensor differs from the data type of the o...
Definition: BoundingVolume.cpp:104
bool copy
Definition: VtkUtils.cpp:89
AxisAlignedBoundingBox To(const core::Device &device, bool copy=false) const
Definition: BoundingVolume.cpp:69
double GetXPercentage(double x) const
Definition: BoundingVolume.cpp:186