ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DrawableGeometry.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace cloudViewer {
13 namespace t {
14 namespace geometry {
15 
20 public:
23 
25  bool HasMaterial() const { return material_.IsValid(); }
26 
29 
32  return material_;
33  }
34 
37  material_ = material;
38  }
39 
40 private:
43 };
44 
45 } // namespace geometry
46 } // namespace t
47 } // namespace cloudViewer
cloudViewer::utility::optional::value
constexpr T const & value() const &
Definition: Optional.h:465
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::core::Tensor::Ones
static Tensor Ones(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with ones.
Definition: Tensor.cpp:412
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
cloudViewer::core::Tensor::Clone
Tensor Clone() const
Copy Tensor to the same device.
Definition: Tensor.h:502
cloudViewer::t::geometry::AxisAlignedBoundingBox::Volume
double Volume() const
Returns the volume of the bounding box.
Definition: BoundingVolume.h:179
cloudViewer::t::geometry::OrientedBoundingBox::GetPointIndicesWithinBoundingBox
core::Tensor GetPointIndicesWithinBoundingBox(const core::Tensor &points) const
Indices to points that are within the bounding box.
Definition: BoundingVolume.cpp:509
cloudViewer::core::Tensor::Add
Tensor Add(const Tensor &value) const
Adds a tensor and returns the resulting tensor.
Definition: Tensor.cpp:1097
cloudViewer::t::geometry::AxisAlignedBoundingBox::color_
core::Tensor color_
The color of the bounding box in RGB. The default is white.
Definition: BoundingVolume.h:232
cloudViewer::t::geometry::OrientedBoundingBox::GetMinBound
core::Tensor GetMinBound() const
Definition: BoundingVolume.cpp:420
cloudViewer::core::eigen_converter::TensorToEigenMatrixXd
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > TensorToEigenMatrixXd(const core::Tensor &tensor)
Converts a 2D tensor to Eigen::MatrixXd of same shape. Regardless of the tensor dtype,...
Definition: EigenConverter.cpp:67
x
normal_z x
Definition: my_point_types.h:165
dtype_
const core::Dtype dtype_
Definition: FilePLY.cpp:349
cloudViewer::t::geometry::AxisAlignedBoundingBox::max_bound_
core::Tensor max_bound_
The upper x, y, z bounds of the bounding box.
Definition: BoundingVolume.h:230
cloudViewer::utility::optional::has_value
constexpr bool has_value() const noexcept
Definition: Optional.h:440
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
cloudViewer::t::geometry::AxisAlignedBoundingBox::Scale
AxisAlignedBoundingBox & Scale(double scale, const utility::optional< core::Tensor > &center=utility::nullopt)
Scale the axis-aligned box. If is the min_bound and is the max_bound of the axis aligned bounding b...
Definition: BoundingVolume.cpp:144
cloudViewer::t::geometry::kernel::minimum_obb::ComputeMinimumOBBApprox
OrientedBoundingBox ComputeMinimumOBBApprox(const core::Tensor &points, bool robust)
Definition: MinimumOBB.cpp:1248
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetBoxPoints
core::Tensor GetBoxPoints() const
Returns the eight points that define the bounding box.
Definition: BoundingVolume.cpp:199
cloudViewer::t::geometry::OrientedBoundingBox::OrientedBoundingBox
OrientedBoundingBox(const core::Device &device=core::Device("CPU:0"))
Construct an empty OrientedBoundingBox on the provided device.
Definition: BoundingVolume.cpp:306
core::Tensor
cloudViewer::t::geometry::MethodOBBCreate::MINIMAL_APPROX
@ MINIMAL_APPROX
Minimal OBB approximation.
cloudViewer::t::geometry::OrientedBoundingBox::Rotate
OrientedBoundingBox & Rotate(const core::Tensor &rotation, const utility::optional< core::Tensor > &center=utility::nullopt)
Rotate the oriented box by the given rotation matrix. If the rotation matrix is not orthogonal,...
Definition: BoundingVolume.cpp:449
copy
bool copy
Definition: VtkUtils.cpp:74
cloudViewer::t::geometry::AxisAlignedBoundingBox
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound.
Definition: BoundingVolume.h:47
format
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
cloudViewer::t::geometry::OrientedBoundingBox::extent_
core::Tensor extent_
Definition: BoundingVolume.h:482
cloudViewer::t::geometry::OrientedBoundingBox::SetRotation
void SetRotation(const core::Tensor &rotation)
Set the rotation matrix of the box. If the data type of the given tensor differs from the data type o...
Definition: BoundingVolume.cpp:391
cloudViewer::t::geometry::OrientedBoundingBox::Clear
OrientedBoundingBox & Clear() override
Clear all elements in the geometry.
Definition: BoundingVolume.cpp:361
cloudViewer::core::Tensor::Reshape
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
cloudViewer::t::geometry::MethodOBBCreate::MINIMAL_JYLANKI
@ MINIMAL_JYLANKI
Minimal OBB by Jylanki.
AssertTensorDevice
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetDevice
core::Device GetDevice() const override
Returns the device attribute of this AxisAlignedBoundingBox.
Definition: BoundingVolume.h:67
cloudViewer::core::Maximum
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:124
ccBBox
Bounding box structure.
Definition: ecvBBox.h:25
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetXPercentage
double GetXPercentage(double x) const
Definition: BoundingVolume.cpp:181
cloudViewer::t::geometry::DrawableGeometry::~DrawableGeometry
~DrawableGeometry()
Definition: DrawableGeometry.h:22
cloudViewer::t::geometry::MethodOBBCreate
MethodOBBCreate
Definition: Geometry.h:118
cloudViewer::t::geometry::AxisAlignedBoundingBox::SetMaxBound
void SetMaxBound(const core::Tensor &max_bound)
Set the max bound of the box. If the data type of the given tensor differs from the data type of the ...
Definition: BoundingVolume.cpp:92
cloudViewer::core::Tensor::Mul
Tensor Mul(const Tensor &value) const
Multiplies a tensor and returns the resulting tensor.
Definition: Tensor.cpp:1169
cloudViewer::t::geometry::AxisAlignedBoundingBox::SetColor
void SetColor(const core::Tensor &color)
Set the color of the box. If the data type of the given tensor differs from the data type of the box,...
Definition: BoundingVolume.cpp:110
cloudViewer::BoundingBoxTpl::SetColor
void SetColor(const Eigen::Vector3d &color)
Sets the bounding box color.
Definition: BoundingBox.h:265
cloudViewer::t::geometry::AxisAlignedBoundingBox::min_bound_
core::Tensor min_bound_
The lower x, y, z bounds of the bounding box.
Definition: BoundingVolume.h:228
cloudViewer::t::geometry::OrientedBoundingBox::SetCenter
void SetCenter(const core::Tensor &center)
Set the center of the box. If the data type of the given tensor differs from the data type of the box...
Definition: BoundingVolume.cpp:369
cloudViewer::t::geometry::OrientedBoundingBox::FromLegacy
static OrientedBoundingBox FromLegacy(const cloudViewer::geometry::OrientedBoundingBox &box, const core::Dtype &dtype=core::Float32, const core::Device &device=core::Device("CPU:0"))
Definition: BoundingVolume.cpp:557
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetDtype
core::Dtype GetDtype() const
Returns the data type attribute of this AxisAlignedBoundingBox.
Definition: BoundingVolume.h:70
cloudViewer::core::Minimum
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:136
cloudViewer::t::geometry::OrientedBoundingBox::color_
core::Tensor color_
Definition: BoundingVolume.h:483
cloudViewer::t::geometry::kernel::minimum_obb::ComputeMinimumOBBJylanki
OrientedBoundingBox ComputeMinimumOBBJylanki(const core::Tensor &points_, bool robust)
Definition: MinimumOBB.cpp:55
cloudViewer::t::geometry::AxisAlignedBoundingBox::IsEmpty
bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: BoundingVolume.h:87
cloudViewer::t::geometry::AxisAlignedBoundingBox::To
AxisAlignedBoundingBox To(const core::Device &device, bool copy=false) const
Transfer the AxisAlignedBoundingBox to a specified device.
Definition: BoundingVolume.cpp:55
color
math::float4 color
Definition: LineSetBuffers.cpp:46
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetYPercentage
double GetYPercentage(double y) const
Definition: BoundingVolume.cpp:187
cloudViewer::t::geometry::OrientedBoundingBox::SetExtent
void SetExtent(const core::Tensor &extent)
Set the extent of the box. If the data type of the given tensor differs from the data type of the box...
Definition: BoundingVolume.cpp:377
cloudViewer::t::geometry::OrientedBoundingBox
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:258
cloudViewer::core::Dtype
Definition: Dtype.h:21
cloudViewer::t::geometry::AxisAlignedBoundingBox::dtype_
core::Dtype dtype_
The data type of the bounding box.
Definition: BoundingVolume.h:226
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetOrientedBoundingBox
OrientedBoundingBox GetOrientedBoundingBox() const
Convert to an oriented box.
Definition: BoundingVolume.cpp:275
cloudViewer::t::geometry::DrawableGeometry::GetMaterial
visualization::rendering::Material & GetMaterial()
Get material associated with this Geometry.
Definition: DrawableGeometry.h:28
cloudViewer::OrientedBoundingBox
A bounding box oriented along an arbitrary frame of reference.
Definition: OrientedBoundingBox.h:22
ecvOrientedBBox::CreateFromPoints
static ecvOrientedBBox CreateFromPoints(const std::vector< Eigen::Vector3d > &points)
Definition: ecvOrientedBBox.cpp:115
cloudViewer::core::Tensor::Max
Tensor Max(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1275
cloudViewer::OrientedBoundingBox::GetColor
const Eigen::Vector3d & GetColor() const
Gets the bounding box color.
Definition: OrientedBoundingBox.h:63
cloudViewer::BoundingBoxTpl::GetColor
Eigen::Vector3d GetColor() const
Gets the bounding box color.
Definition: BoundingBox.h:267
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetExtent
core::Tensor GetExtent() const
Get the extent/length of the bounding box in x, y, and z dimension.
Definition: BoundingVolume.h:155
cloudViewer::t::geometry::AxisAlignedBoundingBox::FromLegacy
static AxisAlignedBoundingBox FromLegacy(const cloudViewer::geometry::AxisAlignedBoundingBox &box, const core::Dtype &dtype=core::Float32, const core::Device &device=core::Device("CPU:0"))
Definition: BoundingVolume.cpp:279
cloudViewer::t::geometry::OrientedBoundingBox::GetMaxBound
core::Tensor GetMaxBound() const
Definition: BoundingVolume.cpp:424
cloudViewer::t::geometry::OrientedBoundingBox::Transform
OrientedBoundingBox & Transform(const core::Tensor &transformation)
Transform the oriented box by the given transformation matrix.
Definition: BoundingVolume.cpp:478
cloudViewer::t::geometry::OrientedBoundingBox::center_
core::Tensor center_
Definition: BoundingVolume.h:480
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetMaxBound
core::Tensor GetMaxBound() const
Definition: BoundingVolume.h:116
cloudViewer::core::Tensor::Eye
static Tensor Eye(int64_t n, Dtype dtype, const Device &device)
Create an identity matrix of size n x n.
Definition: Tensor.cpp:418
cloudViewer::t::geometry::OrientedBoundingBox::Scale
OrientedBoundingBox & Scale(double scale, const utility::optional< core::Tensor > &center=utility::nullopt)
Scale the axis-aligned box. If is the min_bound and is the max_bound of the axis aligned bounding b...
Definition: BoundingVolume.cpp:494
y
normal_z y
Definition: my_point_types.h:168
cloudViewer::t::geometry::OrientedBoundingBox::device_
core::Device device_
Definition: BoundingVolume.h:478
cloudViewer::core::Zeros
void Zeros(benchmark::State &state, const Device &device)
Definition: Zeros.cpp:16
cloudViewer::t::geometry::AxisAlignedBoundingBox::ToLegacy
cloudViewer::geometry::AxisAlignedBoundingBox ToLegacy() const
Convert to a legacy CloudViewer axis-aligned box.
Definition: BoundingVolume.cpp:249
cloudViewer::t::geometry::OrientedBoundingBox::GetAxisAlignedBoundingBox
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const
Convert to an axis-aligned box.
Definition: BoundingVolume.cpp:544
cloudViewer::t::geometry::OrientedBoundingBox::GetCenter
core::Tensor GetCenter() const
Definition: BoundingVolume.h:335
cloudViewer::t::geometry::AxisAlignedBoundingBox::operator+=
AxisAlignedBoundingBox & operator+=(const AxisAlignedBoundingBox &other)
Add operation for axis-aligned bounding box. The device of other box must be the same as the device o...
Definition: BoundingVolume.cpp:162
BoundingVolume.h
cloudViewer::t::geometry::AxisAlignedBoundingBox::Clear
AxisAlignedBoundingBox & Clear() override
Clear all elements in the geometry.
Definition: BoundingVolume.cpp:67
cloudViewer::t::geometry::DrawableGeometry
Mix-in class for geometry types that can be visualized.
Definition: DrawableGeometry.h:19
cloudViewer::core::Tensor::Zeros
static Tensor Zeros(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with zeros.
Definition: Tensor.cpp:406
e
const double * e
Definition: essential_matrix_poly.h:10
extent_
Eigen::Vector3d extent_
Definition: MinimumOBB.cpp:50
cloudViewer::OrientedBoundingBox::GetPosition
const Eigen::Vector3d & GetPosition() const
Definition: OrientedBoundingBox.h:67
cloudViewer::t::geometry::OrientedBoundingBox::SetColor
void SetColor(const core::Tensor &color)
Set the color of the box.
Definition: BoundingVolume.cpp:405
cloudViewer::t::geometry::Geometry::GeometryType
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:28
cloudViewer::t::geometry::OrientedBoundingBox::GetColor
core::Tensor GetColor() const
Definition: BoundingVolume.h:333
cloudViewer::core::TensorKey::Index
static TensorKey Index(int64_t index)
Definition: TensorKey.cpp:134
cloudViewer::t::geometry::OrientedBoundingBox::GetBoxPoints
core::Tensor GetBoxPoints() const
Returns the eight points that define the bounding box.
Definition: BoundingVolume.cpp:428
cloudViewer::core::Tensor::AllClose
bool AllClose(const Tensor &other, double rtol=1e-5, double atol=1e-8) const
Definition: Tensor.cpp:1895
cloudViewer::core::Tensor::T
Tensor T() const
Expects input to be <= 2-D Tensor by swapping dimension 0 and 1.
Definition: Tensor.cpp:1079
cloudViewer::t::geometry::AxisAlignedBoundingBox::ToString
std::string ToString() const
Text description.
Definition: BoundingVolume.cpp:226
cloudViewer::core::Device
Definition: Device.h:18
cloudViewer::t::geometry::OrientedBoundingBox::Volume
double Volume() const
Returns the volume of the bounding box.
Definition: BoundingVolume.h:385
cloudViewer::t::geometry::OrientedBoundingBox::dtype_
core::Dtype dtype_
Definition: BoundingVolume.h:479
core
cloudViewer::t::geometry::DrawableGeometry::DrawableGeometry
DrawableGeometry()
Definition: DrawableGeometry.h:21
cloudViewer::core::Bool
const Dtype Bool
Definition: Dtype.cpp:52
cloudViewer::core::Dtype::ToString
std::string ToString() const
Definition: Dtype.h:65
cloudViewer::OrientedBoundingBox::SetColor
void SetColor(const Eigen::Vector3d &color)
Sets the bounding box color.
Definition: OrientedBoundingBox.h:61
cloudViewer::t::geometry::AxisAlignedBoundingBox::Translate
AxisAlignedBoundingBox & Translate(const core::Tensor &translation, bool relative=true)
Translate the axis-aligned box by the given translation.
Definition: BoundingVolume.cpp:126
cloudViewer::core::Tensor::Matmul
Tensor Matmul(const Tensor &rhs) const
Definition: Tensor.cpp:1919
cloudViewer::core::Float64
const Dtype Float64
Definition: Dtype.cpp:43
cloudViewer::core::Tensor::GetDevice
Device GetDevice() const override
Definition: Tensor.cpp:1435
cloudViewer::t::geometry::OrientedBoundingBox::GetDevice
core::Device GetDevice() const override
Returns the device attribute of this OrientedBoundingBox.
Definition: BoundingVolume.h:282
cloudViewer::core::Tensor::Flatten
Tensor Flatten(int64_t start_dim=0, int64_t end_dim=-1) const
Definition: Tensor.cpp:685
EigenConverter.h
PointCloud.h
points
int points
Definition: FileIOFactory.cpp:144
cloudViewer::core::Float32
const Dtype Float32
Definition: Dtype.cpp:42
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
cloudViewer::t::geometry::OrientedBoundingBox::CreateFromPoints
static OrientedBoundingBox CreateFromPoints(const core::Tensor &points, bool robust=false, MethodOBBCreate method=MethodOBBCreate::MINIMAL_APPROX)
Definition: BoundingVolume.cpp:584
cloudViewer::t::geometry::kernel::pointcloud::GetPointMaskWithinAABB
void GetPointMaskWithinAABB(const core::Tensor &points, const core::Tensor &min_bound, const core::Tensor &max_bound, core::Tensor &mask)
Definition: PointCloud.cpp:101
center_
Eigen::Vector3d center_
Definition: MinimumOBB.cpp:51
cloudViewer::utility::optional
Definition: Optional.h:44
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::core::Concatenate
Tensor Concatenate(const std::vector< Tensor > &tensors, const utility::optional< int64_t > &axis)
Concatenates the list of tensors in their order, along the given axis into a new tensor....
Definition: TensorFunction.cpp:79
cloudViewer::t::geometry::AxisAlignedBoundingBox::AxisAlignedBoundingBox
AxisAlignedBoundingBox(const core::Device &device=core::Device("CPU:0"))
Construct an empty AxisAlignedBoundingBox on the provided device.
Definition: BoundingVolume.cpp:19
cloudViewer::OrientedBoundingBox::GetRotation
const Eigen::Matrix3d & GetRotation() const
Definition: OrientedBoundingBox.h:65
cloudViewer::core::TensorKey::Slice
static TensorKey Slice(utility::optional< int64_t > start, utility::optional< int64_t > stop, utility::optional< int64_t > step)
Definition: TensorKey.cpp:138
cloudViewer::t::geometry::AxisAlignedBoundingBox::device_
core::Device device_
The device to use for the bounding box. The default is CPU:0.
Definition: BoundingVolume.h:224
cloudViewer::t::geometry::AxisAlignedBoundingBox::CreateFromPoints
static AxisAlignedBoundingBox CreateFromPoints(const core::Tensor &points)
Definition: BoundingVolume.cpp:233
MinimumOBB.h
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetMinBound
core::Tensor GetMinBound() const
Definition: BoundingVolume.h:114
cloudViewer::core::Tensor::Item
T Item() const
Definition: Tensor.h:618
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetColor
core::Tensor GetColor() const
Definition: BoundingVolume.h:118
AssertTensorDtype
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
cloudViewer::t::geometry::OrientedBoundingBox::GetExtent
core::Tensor GetExtent() const
Definition: BoundingVolume.h:339
cloudViewer::t::geometry::MethodOBBCreate::PCA
@ PCA
Principal Component Analysis.
cloudViewer::t::geometry::AxisAlignedBoundingBox::SetMinBound
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:74
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetZPercentage
double GetZPercentage(double z) const
Definition: BoundingVolume.cpp:193
cloudViewer::core::Tensor::ToString
std::string ToString(bool with_suffix=true, const std::string &indent="") const
Definition: Tensor.cpp:780
cloudViewer::core::eigen_converter::EigenMatrixToTensor
core::Tensor EigenMatrixToTensor(const Eigen::MatrixBase< Derived > &matrix)
Converts a eigen matrix of shape (M, N) with alignment A and type T to a tensor.
Definition: EigenConverter.h:29
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetPointIndicesWithinBoundingBox
core::Tensor GetPointIndicesWithinBoundingBox(const core::Tensor &points) const
Indices to points that are within the bounding box.
Definition: BoundingVolume.cpp:210
cloudViewer::visualization::rendering::Material::IsValid
bool IsValid() const
Definition: Material.h:54
cloudViewer::t::geometry::OrientedBoundingBox::GetDtype
core::Dtype GetDtype() const
Returns the data type attribute of this OrientedBoundingBox.
Definition: BoundingVolume.h:285
cloudViewer::utility::nullopt
constexpr nullopt_t nullopt
Definition: Optional.h:136
cloudViewer::core::Tensor::Min
Tensor Min(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1268
cloudViewer::t::geometry::DrawableGeometry::GetMaterial
const visualization::rendering::Material & GetMaterial() const
Get const reference to material associated with this Geometry.
Definition: DrawableGeometry.h:31
LogWarning
#define LogWarning(...)
Definition: Logging.h:72
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
cloudViewer::BoundingBoxTpl::maxCorner
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
cloudViewer::t::geometry::OrientedBoundingBox::ToLegacy
cloudViewer::geometry::OrientedBoundingBox ToLegacy() const
Convert to a legacy CloudViewer oriented box.
Definition: BoundingVolume.cpp:531
cloudViewer::t::geometry::DrawableGeometry::HasMaterial
bool HasMaterial() const
Check if a material has been applied to this Geometry with SetMaterial.
Definition: DrawableGeometry.h:25
rotation
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
z
normal_z z
Definition: my_point_types.h:165
cloudViewer::t::geometry::OrientedBoundingBox::rotation_
core::Tensor rotation_
Definition: BoundingVolume.h:481
AssertTensorShape
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
cloudViewer::t::geometry::OrientedBoundingBox::Translate
OrientedBoundingBox & Translate(const core::Tensor &translation, bool relative=true)
Translate the oriented box by the given translation. If relative is true, the translation is added to...
Definition: BoundingVolume.cpp:434
AssertTensorDtypes
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
cloudViewer::core::eigen_converter::TensorToEigenVector3dVector
std::vector< Eigen::Vector3d > TensorToEigenVector3dVector(const core::Tensor &tensor)
Converts a tensor of shape (N, 3) to std::vector<Eigen::Vector3d>. An exception will be thrown if the...
Definition: EigenConverter.cpp:150
cloudViewer::t::geometry::OrientedBoundingBox::ToString
std::string ToString() const
Text description.
Definition: BoundingVolume.cpp:526
cloudViewer::t::geometry::OrientedBoundingBox::CreateFromAxisAlignedBoundingBox
static OrientedBoundingBox CreateFromAxisAlignedBoundingBox(const AxisAlignedBoundingBox &aabb)
Definition: BoundingVolume.cpp:548
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetHalfExtent
core::Tensor GetHalfExtent() const
Returns the half extent of the bounding box.
Definition: BoundingVolume.h:158
cloudViewer::t::geometry::kernel::pointcloud::GetPointMaskWithinOBB
void GetPointMaskWithinOBB(const core::Tensor &points, const core::Tensor &center, const core::Tensor &rotation, const core::Tensor &extent, core::Tensor &mask)
Definition: PointCloud.cpp:126
cloudViewer::visualization::rendering::Material
Definition: Material.h:22
cloudViewer::t::geometry::AxisAlignedBoundingBox::GetCenter
core::Tensor GetCenter() const
Definition: BoundingVolume.h:120
cloudViewer::core::Tensor::To
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
cloudViewer::t::geometry::Geometry
The base geometry class.
Definition: Geometry.h:23
cloudViewer::OrientedBoundingBox::GetExtent
const Eigen::Vector3d & GetExtent() const
Definition: OrientedBoundingBox.h:49
cloudViewer::t::geometry::DrawableGeometry::SetMaterial
void SetMaterial(const visualization::rendering::Material &material)
Set the material properties associate with this Geometry.
Definition: DrawableGeometry.h:36
Material.h
cloudViewer::t::geometry::OrientedBoundingBox::GetRotation
core::Tensor GetRotation() const
Definition: BoundingVolume.h:337
cloudViewer::t::geometry::OrientedBoundingBox::To
OrientedBoundingBox To(const core::Device &device, bool copy=false) const
Definition: BoundingVolume.cpp:348
cloudViewer::BoundingBoxTpl::minCorner
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154
TensorFunction.h