ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TriangleMeshImpl.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 #include <Logging.h>
9 
12 #include "cloudViewer/core/Dtype.h"
18 
19 namespace cloudViewer {
20 namespace t {
21 namespace geometry {
22 namespace kernel {
23 namespace trianglemesh {
24 
25 #ifndef __CUDACC__
26 using std::isnan;
27 #endif
28 
29 #if defined(__CUDACC__)
30 void NormalizeNormalsCUDA
31 #else
33 #endif
35  const core::Dtype dtype = normals.GetDtype();
36  const int64_t n = normals.GetLength();
37 
39  scalar_t* ptr = normals.GetDataPtr<scalar_t>();
40 
41  core::ParallelFor(normals.GetDevice(), n,
42  [=] CLOUDVIEWER_DEVICE(int64_t workload_idx) {
43  int64_t idx = 3 * workload_idx;
44  scalar_t x = ptr[idx];
45  scalar_t y = ptr[idx + 1];
46  scalar_t z = ptr[idx + 2];
47  if (isnan(x)) {
48  x = 0.0;
49  y = 0.0;
50  z = 1.0;
51  } else {
52  scalar_t norm = sqrt(x * x + y * y + z * z);
53  if (norm > 0) {
54  x /= norm;
55  y /= norm;
56  z /= norm;
57  }
58  ptr[idx] = x;
59  ptr[idx + 1] = y;
60  ptr[idx + 2] = z;
61  }
62  });
63  });
64 }
65 
66 #if defined(__CUDACC__)
67 void ComputeTriangleNormalsCUDA
68 #else
70 #endif
71  (const core::Tensor& vertices,
72  const core::Tensor& triangles,
74  const core::Dtype dtype = normals.GetDtype();
75  const int64_t n = normals.GetLength();
76  const core::Tensor triangles_d = triangles.To(core::Int64);
77 
79  scalar_t* normal_ptr = normals.GetDataPtr<scalar_t>();
80  const int64_t* triangle_ptr = triangles_d.GetDataPtr<int64_t>();
81  const scalar_t* vertex_ptr = vertices.GetDataPtr<scalar_t>();
82 
83  core::ParallelFor(normals.GetDevice(), n,
84  [=] CLOUDVIEWER_DEVICE(int64_t workload_idx) {
85  int64_t idx = 3 * workload_idx;
86 
87  int64_t triangle_id1 = triangle_ptr[idx];
88  int64_t triangle_id2 = triangle_ptr[idx + 1];
89  int64_t triangle_id3 = triangle_ptr[idx + 2];
90 
91  scalar_t v01[3], v02[3];
92  v01[0] = vertex_ptr[3 * triangle_id2] -
93  vertex_ptr[3 * triangle_id1];
94  v01[1] = vertex_ptr[3 * triangle_id2 + 1] -
95  vertex_ptr[3 * triangle_id1 + 1];
96  v01[2] = vertex_ptr[3 * triangle_id2 + 2] -
97  vertex_ptr[3 * triangle_id1 + 2];
98  v02[0] = vertex_ptr[3 * triangle_id3] -
99  vertex_ptr[3 * triangle_id1];
100  v02[1] = vertex_ptr[3 * triangle_id3 + 1] -
101  vertex_ptr[3 * triangle_id1 + 1];
102  v02[2] = vertex_ptr[3 * triangle_id3 + 2] -
103  vertex_ptr[3 * triangle_id1 + 2];
104 
106  &normal_ptr[idx]);
107  });
108  });
109 }
110 
111 #if defined(__CUDACC__)
112 void ComputeTriangleAreasCUDA
113 #else
115 #endif
116  (const core::Tensor& vertices,
117  const core::Tensor& triangles,
118  core::Tensor& triangle_areas) {
119  const int64_t n = triangle_areas.GetLength();
120  const core::Dtype dtype = triangle_areas.GetDtype();
121  const core::Tensor triangles_d = triangles.To(core::Int64);
122 
123  DISPATCH_FLOAT_DTYPE_TO_TEMPLATE(dtype, [&]() {
124  scalar_t* area_ptr = triangle_areas.GetDataPtr<scalar_t>();
125  const int64_t* triangle_ptr = triangles_d.GetDataPtr<int64_t>();
126  const scalar_t* vertex_ptr = vertices.GetDataPtr<scalar_t>();
127 
128  core::ParallelFor(triangle_areas.GetDevice(), n,
129  [=] CLOUDVIEWER_DEVICE(int64_t workload_idx) {
130  int64_t idx = 3 * workload_idx;
131 
132  int64_t triangle_id1 = triangle_ptr[idx];
133  int64_t triangle_id2 = triangle_ptr[idx + 1];
134  int64_t triangle_id3 = triangle_ptr[idx + 2];
135 
136  scalar_t v01[3], v02[3];
137  v01[0] = vertex_ptr[3 * triangle_id2] -
138  vertex_ptr[3 * triangle_id1];
139  v01[1] = vertex_ptr[3 * triangle_id2 + 1] -
140  vertex_ptr[3 * triangle_id1 + 1];
141  v01[2] = vertex_ptr[3 * triangle_id2 + 2] -
142  vertex_ptr[3 * triangle_id1 + 2];
143  v02[0] = vertex_ptr[3 * triangle_id3] -
144  vertex_ptr[3 * triangle_id1];
145  v02[1] = vertex_ptr[3 * triangle_id3 + 1] -
146  vertex_ptr[3 * triangle_id1 + 1];
147  v02[2] = vertex_ptr[3 * triangle_id3 + 2] -
148  vertex_ptr[3 * triangle_id1 + 2];
149 
150  area_ptr[workload_idx] =
152  v01, v02);
153  });
154  });
155 }
156 
157 } // namespace trianglemesh
158 } // namespace kernel
159 } // namespace geometry
160 } // namespace t
161 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
colors
double colors[3]
Definition: TriangleMeshIO.cpp:53
cloudViewer::t::geometry::TensorMap
Definition: TensorMap.h:31
PointCloud.h
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
cloudViewer::t::geometry::TriangleMesh::GetVertexNormals
core::Tensor & GetVertexNormals()
Definition: TriangleMesh.h:156
ShapeUtil.h
cloudViewer::t::geometry::MetricParameters::n_sampled_points
size_t n_sampled_points
Definition: Geometry.h:110
cloudViewer::core::UInt16
const Dtype UInt16
Definition: Dtype.cpp:49
cloudViewer::t::geometry::GetOrderedEdge
static Edge< T > GetOrderedEdge(T vidx0, T vidx1)
brief Helper function to get an edge with ordered vertex indices.
Definition: TriangleMesh.cpp:1672
CUDAUtils.h
Common CUDA utilities.
LineSet.h
cloudViewer::t::geometry::vtkutils::ExtrudeRotationTriangleMesh
CLOUDVIEWER_LOCAL TriangleMesh ExtrudeRotationTriangleMesh(const Geometry &geometry, const double angle, const core::Tensor &axis, int resolution, double translation, bool capping)
Definition: VtkUtils.cpp:529
cloudViewer::t::geometry::TriangleMesh::FromTriangleMeshModel
static std::unordered_map< std::string, geometry::TriangleMesh > FromTriangleMeshModel(const cloudViewer::visualization::rendering::TriangleMeshModel &model, core::Dtype float_dtype=core::Float32, core::Dtype int_dtype=core::Int64, const core::Device &device=core::Device("CPU:0"))
Definition: TriangleMesh.cpp:602
cloudViewer::t::geometry::TriangleMesh::SimplifyQuadricDecimation
TriangleMesh SimplifyQuadricDecimation(double target_reduction, bool preserve_volume=true) const
Definition: TriangleMesh.cpp:709
cloudViewer::t::geometry::PointCloud::To
PointCloud To(const core::Device &device, bool copy=false) const
Definition: PointCloud.cpp:112
Device.h
cloudViewer::core::Tensor::GetLength
int64_t GetLength() const
Definition: Tensor.h:1125
x
normal_z x
Definition: my_point_types.h:165
cloudViewer::t::geometry::kernel::trianglemesh::ComputeTriangleAreasCPU
void ComputeTriangleAreasCPU(const core::Tensor &vertices, const core::Tensor &triangles, core::Tensor &triangle_areas)
Definition: TriangleMeshImpl.h:116
cloudViewer::t::geometry::TriangleMesh::GetTriangleIndices
core::Tensor & GetTriangleIndices()
Definition: TriangleMesh.h:174
cloudViewer::core::linalg::kernel::cross_mag_3x1
CLOUDVIEWER_HOST_DEVICE CLOUDVIEWER_FORCE_INLINE scalar_t cross_mag_3x1(const scalar_t *A_3x1_input, const scalar_t *B_3x1_input)
Definition: Matrix.h:76
cloudViewer::core::Tensor::GetShape
SizeVector GetShape() const
Definition: Tensor.h:1127
cloudViewer::t::geometry::Image::To
Image To(const core::Device &device, bool copy=false) const
Transfer the image to a specified device.
Definition: Image.h:132
core::Tensor
copy
bool copy
Definition: VtkUtils.cpp:74
cloudViewer::t::geometry::kernel::trianglemesh::mix_3x3
void mix_3x3(T *out, const T *a, const T *b, const T *c, float wts[3])
Definition: TriangleMeshCPU.cpp:60
ccMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
cloudViewer::t::geometry::TriangleMesh::ComputeTriangleNormals
TriangleMesh & ComputeTriangleNormals(bool normalized=true)
Function to compute triangle normals, usually called before rendering.
Definition: TriangleMesh.cpp:241
cloudViewer::core::eigen_converter::TensorToEigenVector2dVector
std::vector< Eigen::Vector2d > TensorToEigenVector2dVector(const core::Tensor &tensor)
Converts a tensor of shape (N, 2) to std::vector<Eigen::Vector2d>. An exception will be thrown if the...
Definition: EigenConverter.cpp:145
cloudViewer::t::geometry::TriangleMesh::SetVertexColors
void SetVertexColors(const core::Tensor &value)
Definition: TriangleMesh.h:268
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
normal
double normal[3]
Definition: FileIOFactory.cpp:53
cloudViewer::core::Tensor::Fill
void Fill(S v)
Fill the whole Tensor with a scalar value, the scalar will be casted to the Tensor's Dtype.
Definition: Tensor.h:1400
format
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
cloudViewer::core::UInt32
const Dtype UInt32
Definition: Dtype.cpp:50
cloudViewer::t::geometry::TriangleMesh::BooleanDifference
TriangleMesh BooleanDifference(const TriangleMesh &mesh, double tolerance=1e-6) const
Definition: TriangleMesh.cpp:775
cloudViewer::t::geometry::TriangleMesh::HasVertexNormals
bool HasVertexNormals() const
Definition: TriangleMesh.h:337
cloudViewer::core::IsDevice::IsCUDA
bool IsCUDA() const
Definition: Device.h:99
cloudViewer::t::geometry::kernel::trianglemesh::mix_3x3< float >
template void mix_3x3< float >(float *out, const float *a, const float *b, const float *c, float wts[3])
cloudViewer::core::Tensor::Reshape
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
cloudViewer::core::Dtype::DtypeCode::Int
@ Int
cloudViewer::t::geometry::TriangleMesh::BakeTriangleAttrTextures
std::unordered_map< std::string, core::Tensor > BakeTriangleAttrTextures(int size, const std::unordered_set< std::string > &triangle_attr={}, double margin=2., double fill=0., bool update_material=true)
Definition: TriangleMesh.cpp:1041
Edge
Weighted graph edge.
Definition: PointProjectionTools.cpp:491
AssertTensorDevice
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
cloudViewer::core::Tensor::Contiguous
Tensor Contiguous() const
Definition: Tensor.cpp:772
ccMesh::addVertexNormals
void addVertexNormals(const std::vector< Eigen::Vector3d > &normals)
Definition: ecvMesh.cpp:2273
cloudViewer::data::PCDPointCloud::GetPath
std::string GetPath() const
Path to the pcd format point cloud.
Definition: Dataset.h:693
ccMesh::getTriangleVertIndexes
cloudViewer::VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex) override
Returns the indexes of the vertices of a given triangle.
Definition: ecvMesh.cpp:2599
cloudViewer::t::geometry::vtkutils::CreateLineSetFromVtkPolyData
CLOUDVIEWER_LOCAL LineSet CreateLineSetFromVtkPolyData(vtkPolyData *polydata, bool copy)
Definition: VtkUtils.cpp:473
cloudViewer::t::geometry::TensorMap::GetPrimaryKey
std::string GetPrimaryKey() const
Returns the primary key of the TensorMap.
Definition: TensorMap.h:159
cloudViewer::visualization::rendering::Material::FromMaterialRecord
static Material FromMaterialRecord(const MaterialRecord &mat)
Convert from MaterialRecord.
Definition: Material.cpp:149
cloudViewer::t::geometry::ComputeTriangleAreasHelper
static core::Tensor ComputeTriangleAreasHelper(const TriangleMesh &mesh)
Definition: TriangleMesh.cpp:316
cloudViewer::utility::hash_tuple
Definition: Helper.h:34
cloudViewer::t::geometry::TriangleMesh::Translate
TriangleMesh & Translate(const core::Tensor &translation, bool relative=true)
Translates the VertexPositions of the TriangleMesh.
Definition: TriangleMesh.cpp:167
PCAPartition.h
cloudViewer::utility::InclusivePrefixSum
void InclusivePrefixSum(const Tin *first, const Tin *last, Tout *out)
Definition: ParallelScan.h:66
cloudViewer::t::geometry::TriangleMesh::SetVertexAttr
void SetVertexAttr(const std::string &key, const core::Tensor &value)
Definition: TriangleMesh.h:254
cloudViewer::t::geometry::TriangleMesh::SelectFacesByMask
TriangleMesh SelectFacesByMask(const core::Tensor &mask) const
Definition: TriangleMesh.cpp:1176
Transform.h
cloudViewer::t::geometry::kernel::trianglemesh::SamplePointsUniformlyCPU
std::array< core::Tensor, 3 > SamplePointsUniformlyCPU(const core::Tensor &triangles, const core::Tensor &vertices, const core::Tensor &triangle_areas, const core::Tensor &vertex_normals, const core::Tensor &vertex_colors, const core::Tensor &triangle_normals, const core::Tensor &texture_uvs, const core::Tensor &albedo, size_t number_of_points)
Definition: TriangleMeshCPU.cpp:76
cloudViewer::t::geometry::TriangleMesh::HasTriangleNormals
bool HasTriangleNormals() const
Definition: TriangleMesh.h:360
cloudViewer::t::geometry::TriangleMesh::GetCenter
core::Tensor GetCenter() const
Definition: TriangleMesh.h:632
cloudViewer::core::Tensor::Slice
Tensor Slice(int64_t dim, int64_t start, int64_t stop, int64_t step=1) const
Definition: Tensor.cpp:857
Matrix.h
ccMesh::CreateFromPointCloudBallPivoting
static std::shared_ptr< ccMesh > CreateFromPointCloudBallPivoting(const ccPointCloud &pcd, const std::vector< double > &radii)
Definition: SurfaceReconstructionBallPivoting.cpp:770
ParallelScan.h
Dataset.h
cloudViewer::t::geometry::Image
The Image class stores image with customizable rows, cols, channels, dtype and device.
Definition: Image.h:29
cloudViewer::core::Dtype::DtypeCode::UInt
@ UInt
cloudViewer::t::geometry::kernel::transform::RotateNormals
void RotateNormals(const core::Tensor &R, core::Tensor &normals)
Definition: Transform.cpp:88
cloudViewer::t::geometry::kernel::trianglemesh::ComputeVertexNormalsCPU
void ComputeVertexNormalsCPU(const core::Tensor &triangles, const core::Tensor &triangle_normals, core::Tensor &vertex_normals)
Definition: TriangleMeshCPU.cpp:23
cloudViewer::t::geometry::TriangleMesh::ToString
std::string ToString() const
Text description.
Definition: TriangleMesh.cpp:96
cloudViewer::t::geometry::TriangleMesh::ProjectImagesToAlbedo
Image ProjectImagesToAlbedo(const std::vector< Image > &images, const std::vector< core::Tensor > &intrinsic_matrices, const std::vector< core::Tensor > &extrinsic_matrices, int tex_size=1024, bool update_material=true)
Definition: TriangleMesh.cpp:1471
ccMesh::hasTriangleUvs
bool hasTriangleUvs() const
Definition: ecvMesh.h:717
cloudViewer::core::Tensor::GetItem
Tensor GetItem(const TensorKey &tk) const
Definition: Tensor.cpp:473
cloudViewer::t::geometry::kernel::transform::TransformNormals
void TransformNormals(const core::Tensor &transformation, core::Tensor &normals)
Definition: Transform.cpp:41
cloudViewer::t::geometry::TriangleMesh::GetTriangleNormals
core::Tensor & GetTriangleNormals()
Definition: TriangleMesh.h:178
cloudViewer::t::geometry::vtkutils::CreateTriangleMeshFromVtkPolyData
TriangleMesh CreateTriangleMeshFromVtkPolyData(vtkPolyData *polydata, bool copy)
Definition: VtkUtils.cpp:431
NumpyIO.h
ccMesh::triangle_uvs_
std::vector< Eigen::Vector2d > triangle_uvs_
List of uv coordinates per triangle.
Definition: ecvMesh.h:625
TriangleMesh.h
cloudViewer::t::geometry::kernel::trianglemesh::NormalizeNormalsCPU
void NormalizeNormalsCPU(core::Tensor &normals)
Definition: TriangleMeshImpl.h:34
cloudViewer::t::geometry::RaycastingScene::AddTriangles
uint32_t AddTriangles(const core::Tensor &vertex_positions, const core::Tensor &triangle_indices)
Add a triangle mesh to the scene.
Definition: RaycastingScene.cpp:1237
cloudViewer::t::geometry::PointCloud
A point cloud contains a list of 3D points.
Definition: PointCloud.h:82
cloudViewer::t::geometry::TriangleMesh::GetSurfaceArea
double GetSurfaceArea() const
Function that computes the surface area of the mesh, i.e. the sum of the individual triangle surfaces...
Definition: TriangleMesh.cpp:361
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::kernel::transform::TransformPoints
void TransformPoints(const core::Tensor &transformation, core::Tensor &points)
Definition: Transform.cpp:20
cloudViewer::t::geometry::TriangleMesh::ComputeMetrics
core::Tensor ComputeMetrics(const TriangleMesh &mesh2, std::vector< Metric > metrics={Metric::ChamferDistance}, MetricParameters params=MetricParameters()) const
Definition: TriangleMesh.cpp:1894
cloudViewer::t::geometry::DrawableGeometry::GetMaterial
visualization::rendering::Material & GetMaterial()
Get material associated with this Geometry.
Definition: DrawableGeometry.h:28
cloudViewer::t::geometry::TriangleMesh::TriangleMesh
TriangleMesh(const core::Device &device=core::Device("CPU:0"))
Definition: TriangleMesh.cpp:74
cloudViewer::t::geometry::TriangleMesh
A triangle mesh contains vertices and triangles.
Definition: TriangleMesh.h:98
normals
double normals[3]
Definition: TriangleMeshIO.cpp:54
cloudViewer::t::geometry::TensorMap::Contiguous
TensorMap Contiguous() const
Definition: TensorMap.cpp:74
cloudViewer::core::Device::ToString
std::string ToString() const
Returns string representation of device, e.g. "CPU:0", "CUDA:0".
Definition: Device.cpp:89
result
core::Tensor result
Definition: VtkUtils.cpp:76
cloudViewer::t::geometry::TriangleMesh::ExtrudeLinear
TriangleMesh ExtrudeLinear(const core::Tensor &vector, double scale=1.0, bool capping=true) const
Definition: TriangleMesh.cpp:1105
TriangleMesh.h
cloudViewer::t::geometry::ipp::Remap
void Remap(const core::Tensor &src_im, const core::Tensor &dst2src_xmap, const core::Tensor &dst2src_ymap, core::Tensor &dst_im, Image::InterpType interp_type)
Definition: IPPImage.cpp:311
width
int width
Definition: FileIOFactory.cpp:142
CLOUDVIEWER_DEVICE
#define CLOUDVIEWER_DEVICE
Definition: CUDAUtils.h:45
Parallel.h
cloudViewer::t::geometry::TriangleMesh::HasTriangleAttr
bool HasTriangleAttr(const std::string &key) const
Definition: TriangleMesh.h:343
CUDA_CALL
#define CUDA_CALL(cuda_function,...)
Definition: CUDAUtils.h:49
cloudViewer::core::Tensor::Add_
Tensor Add_(const Tensor &value)
Definition: Tensor.cpp:1117
cloudViewer::core::Tensor::NumDims
int64_t NumDims() const
Definition: Tensor.h:1172
IPP_CALL
#define IPP_CALL(ipp_function,...)
Definition: IPPImage.h:96
cloudViewer::t::geometry::TriangleMesh::SetTriangleAttr
void SetTriangleAttr(const std::string &key, const core::Tensor &value)
Definition: TriangleMesh.h:285
cloudViewer::t::geometry::vtkutils::CreateVtkPolyDataFromGeometry
vtkSmartPointer< vtkPolyData > CreateVtkPolyDataFromGeometry(const Geometry &geometry, const std::unordered_set< std::string > &point_attr_include, const std::unordered_set< std::string > &face_attr_include, const std::unordered_set< std::string > &point_attr_exclude, const std::unordered_set< std::string > &face_attr_exclude, bool copy)
Definition: VtkUtils.cpp:369
cloudViewer::t::geometry::TriangleMesh::triangle_attr_
TensorMap triangle_attr_
Definition: TriangleMesh.h:1101
IPPImage.h
size
int size
Definition: FileIOFactory.cpp:130
cloudViewer::t::geometry::CopyAttributesByMasks
static void CopyAttributesByMasks(TriangleMesh &dst, const TriangleMesh &src, const core::Tensor &vertex_mask, const core::Tensor &tri_mask)
Definition: TriangleMesh.cpp:1153
height
int height
Definition: FileIOFactory.cpp:143
cloudViewer::t::geometry::TriangleMesh::GetVertexColors
core::Tensor & GetVertexColors()
Definition: TriangleMesh.h:152
cloudViewer::t::geometry::TriangleMesh::HasVertexColors
bool HasVertexColors() const
Definition: TriangleMesh.h:330
cloudViewer::t::geometry::TensorMap::Contains
bool Contains(const std::string &key) const
Definition: TensorMap.h:187
cloudViewer::t::geometry::MetricParameters
Holder for various parameters required by metrics.
Definition: Geometry.h:103
ccMesh::addTriangle
void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.
Definition: ecvMesh.cpp:2428
cloudViewer::core::Tensor::Sub_
Tensor Sub_(const Tensor &value)
Definition: Tensor.cpp:1153
ParallelFor.h
y
normal_z y
Definition: my_point_types.h:168
cloudViewer::t::geometry::vtkutils::ExtrudeLinearTriangleMesh
CLOUDVIEWER_LOCAL TriangleMesh ExtrudeLinearTriangleMesh(const Geometry &geometry, const core::Tensor &vector, double scale, bool capping)
Definition: VtkUtils.cpp:580
ccMesh::addVertexColors
void addVertexColors(const std::vector< Eigen::Vector3d > &colors)
Definition: ecvMesh.cpp:2327
cloudViewer::pipelines::registration::BENCHMARK_CAPTURE
BENCHMARK_CAPTURE(BenchmarkCreateFromPointCloudBallPivoting, Without Non Finite Points, true) -> Unit(benchmark::kMillisecond)
cloudViewer::t::geometry::TriangleMesh::NormalizeNormals
TriangleMesh & NormalizeNormals()
Normalize both triangle normals and vertex normals to length 1.
Definition: TriangleMesh.cpp:207
cloudViewer::t::geometry::TriangleMesh::ComputeVertexNormals
TriangleMesh & ComputeVertexNormals(bool normalized=true)
Function to compute vertex normals, usually called before rendering.
Definition: TriangleMesh.cpp:277
cloudViewer::t::geometry::TriangleMesh::vertex_attr_
TensorMap vertex_attr_
Definition: TriangleMesh.h:1100
cloudViewer::core::None
constexpr utility::nullopt_t None
Definition: TensorKey.h:20
cloudViewer::t::geometry::TriangleMesh::SelectByIndex
TriangleMesh SelectByIndex(const core::Tensor &indices, bool copy_attributes=true) const
Definition: TriangleMesh.cpp:1247
cloudViewer::t::geometry::TriangleMesh::SlicePlane
LineSet SlicePlane(const core::Tensor &point, const core::Tensor &normal, const std::vector< double > contour_values={0.0}) const
Extract contour slices given a plane. This method extracts slices as LineSet from the mesh at specifi...
Definition: TriangleMesh.cpp:671
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
cloudViewer::core::Int32
const Dtype Int32
Definition: Dtype.cpp:46
Metrics.h
cloudViewer::t::geometry::TriangleMesh::GetVertexAttr
const TensorMap & GetVertexAttr() const
Getter for vertex_attr_ TensorMap. Used in Pybind.
Definition: TriangleMesh.h:133
cloudViewer::t::geometry::TriangleMesh::RemoveNonManifoldEdges
TriangleMesh RemoveNonManifoldEdges()
Definition: TriangleMesh.cpp:1697
LogDebug
#define LogDebug(...)
Definition: Logging.h:90
cloudViewer::t::geometry::Geometry::GeometryType
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:28
cloudViewer::t::geometry::TriangleMesh::PCAPartition
int PCAPartition(int max_faces)
Definition: TriangleMesh.cpp:1112
Dispatch.h
cloudViewer::t::geometry::RaycastingScene::CastRays
std::unordered_map< std::string, core::Tensor > CastRays(const core::Tensor &rays, const int nthreads=0) const
Computes the first intersection of the rays with the scene.
Definition: RaycastingScene.cpp:1321
cloudViewer::core::linalg::kernel::cross_3x1
CLOUDVIEWER_HOST_DEVICE CLOUDVIEWER_FORCE_INLINE void cross_3x1(const scalar_t *A_3x1_input, const scalar_t *B_3x1_input, scalar_t *C_3x1_output)
Definition: Matrix.h:62
colmap::Mean
double Mean(const std::vector< T > &elems)
Definition: math.h:227
cloudViewer::t::geometry::TensorMap::AssertSizeSynchronized
void AssertSizeSynchronized() const
Assert IsSizeSynchronized().
Definition: TensorMap.cpp:48
cloudViewer::t::geometry::TensorMap::GetKeySet
std::unordered_set< std::string > GetKeySet() const
Returns a set with all keys.
Definition: TensorMap.h:162
cloudViewer::t::geometry::Image::FromLegacy
static Image FromLegacy(const cloudViewer::geometry::Image &image_legacy, const core::Device &Device=core::Device("CPU:0"))
Create from a legacy CloudViewer Image.
Definition: Image.cpp:505
cloudViewer::t::geometry::UpdateTriangleIndicesByVertexMask
static void UpdateTriangleIndicesByVertexMask(core::Tensor &tris_cpu, const core::Tensor &vertex_mask)
Definition: TriangleMesh.cpp:1132
cloudViewer::core::Device
Definition: Device.h:18
cloudViewer::core::Tensor::GetShapeRef
const SizeVector & GetShapeRef() const
Definition: Tensor.h:1129
cloudViewer::visualization::rendering::TriangleMeshModel::meshes_
std::vector< MeshInfo > meshes_
Definition: Model.h:25
cloudViewer::t::geometry::TriangleMesh::GetOrientedBoundingBox
OrientedBoundingBox GetOrientedBoundingBox() const
Create an oriented bounding box from vertex attribute "positions".
Definition: TriangleMesh.cpp:785
TensorCheck.h
ecvMesh.h
cloudViewer::core::Tensor::IndexGet
Tensor IndexGet(const std::vector< Tensor > &index_tensors) const
Advanced indexing getter. This will always allocate a new Tensor.
Definition: Tensor.cpp:905
cloudViewer::t::geometry::TriangleMesh::To
TriangleMesh To(const core::Device &device, bool copy=false) const
Definition: TriangleMesh.cpp:621
AddMM.h
cloudViewer::core::UInt8
const Dtype UInt8
Definition: Dtype.cpp:48
knncpp::Index
Eigen::MatrixXd::Index Index
Definition: knncpp.h:26
cloudViewer::core::Bool
const Dtype Bool
Definition: Dtype.cpp:52
cloudViewer::core::Dtype::ToString
std::string ToString() const
Definition: Dtype.h:65
UVUnwrapping.h
cloudViewer::t::geometry::TriangleMesh::BooleanUnion
TriangleMesh BooleanUnion(const TriangleMesh &mesh, double tolerance=1e-6) const
Definition: TriangleMesh.cpp:762
cloudViewer::core::eigen_converter::EigenVector3iVectorToTensor
core::Tensor EigenVector3iVectorToTensor(const std::vector< Eigen::Vector3i > &values, core::Dtype dtype, const core::Device &device)
Converts a vector of Eigen::Vector3i to a (N, 3) tensor. This function also takes care of dtype conve...
Definition: EigenConverter.cpp:179
cloudViewer::t::geometry::ComputeMetricsCommon
core::Tensor ComputeMetricsCommon(core::Tensor distance12, core::Tensor distance21, std::vector< Metric > metrics, MetricParameters params)
Definition: Metrics.cpp:16
cloudViewer::t::geometry::kernel::transform::RotatePoints
void RotatePoints(const core::Tensor &R, core::Tensor &points, const core::Tensor &center)
Definition: Transform.cpp:63
cloudViewer::t::geometry::kernel::uvunwrapping::ComputeUVAtlas
std::tuple< float, int, int > ComputeUVAtlas(TriangleMesh &mesh, const size_t width, const size_t height, const float gutter, const float max_stretch, int parallel_partitions, int nthreads)
Definition: UVUnwrapping.cpp:175
cloudViewer::utility::random::UniformRealGenerator
Definition: Random.h:112
cloudViewer::data::PCDPointCloud
Data class for PCDPointCloud contains the fragment.pcd point cloud mesh from the Redwood Living Room ...
Definition: Dataset.h:688
cloudViewer::core::Float64
const Dtype Float64
Definition: Dtype.cpp:43
knncpp::Vector3i
Eigen::Matrix< Index, 3, 1 > Vector3i
Definition: knncpp.h:30
a
a[190]
Definition: essential_matrix_poly.h:19
cloudViewer::core::Tensor::GetDevice
Device GetDevice() const override
Definition: Tensor.cpp:1435
ccMesh::getVertexColors
std::vector< Eigen::Vector3d > getVertexColors() const
Definition: ecvMesh.cpp:2311
cloudViewer::t::geometry::TriangleMesh::device_
core::Device device_
Definition: TriangleMesh.h:1099
DISPATCH_DTYPE_TO_TEMPLATE_WITH_BOOL
#define DISPATCH_DTYPE_TO_TEMPLATE_WITH_BOOL(DTYPE,...)
Definition: Dispatch.h:68
EigenConverter.h
cloudViewer::t::geometry::TriangleMesh::SamplePointsUniformly
PointCloud SamplePointsUniformly(size_t number_of_points, bool use_triangle_normal=false)
Definition: TriangleMesh.cpp:1821
PointCloud.h
NearestNeighborSearch.h
cloudViewer::t::geometry::TriangleMesh::IsEmpty
bool IsEmpty() const override
Returns !HasVertexPositions(), triangles are ignored.
Definition: TriangleMesh.h:626
cloudViewer::t::geometry::GetEdgeToTrianglesMap
static std::unordered_map< Edge< T >, std::vector< size_t >, utility::hash_tuple< Edge< T > > > GetEdgeToTrianglesMap(const core::Tensor &tris_cpu)
Definition: TriangleMesh.cpp:1680
points
int points
Definition: FileIOFactory.cpp:144
cloudViewer::t::geometry::TriangleMesh::SetVertexPositions
void SetVertexPositions(const core::Tensor &value)
Definition: TriangleMesh.h:261
ccMesh::getEigenVertices
std::vector< Eigen::Vector3d > getEigenVertices() const
Definition: ecvMesh.cpp:2368
cloudViewer::t::geometry::RaycastingScene::CreateRaysPinhole
static core::Tensor CreateRaysPinhole(const core::Tensor &intrinsic_matrix, const core::Tensor &extrinsic_matrix, int width_px, int height_px)
Creates rays for the given camera parameters.
Definition: RaycastingScene.cpp:1629
cloudViewer::core::Float32
const Dtype Float32
Definition: Dtype.cpp:42
cloudViewer::visualization::rendering::TriangleMeshModel::materials_
std::vector< visualization::rendering::MaterialRecord > materials_
Definition: Model.h:26
cloudViewer::core::SizeVector
Definition: SizeVector.h:70
cloudViewer::t::geometry::TriangleMesh::SetTriangleNormals
void SetTriangleNormals(const core::Tensor &value)
Definition: TriangleMesh.h:298
cloudViewer::core::Undefined
const Dtype Undefined
Definition: Dtype.cpp:41
cloudViewer::core::Tensor::Mul_
Tensor Mul_(const Tensor &value)
Definition: Tensor.cpp:1189
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::TriangleMesh::HasVertexPositions
bool HasVertexPositions() const
Definition: TriangleMesh.h:323
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::t::geometry::TriangleMesh::HasVertexAttr
bool HasVertexAttr(const std::string &key) const
Definition: TriangleMesh.h:314
cloudViewer::t::geometry::vtkutils
Definition: VtkUtils.cpp:28
cloudViewer::t::geometry::TriangleMesh::ClipPlane
TriangleMesh ClipPlane(const core::Tensor &point, const core::Tensor &normal) const
Clip mesh with a plane. This method clips the triangle mesh with the specified plane....
Definition: TriangleMesh.cpp:640
DISPATCH_DTYPE_TO_TEMPLATE
#define DISPATCH_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:31
cloudViewer::t::geometry::RaycastingScene
A scene class with basic ray casting and closest point queries.
Definition: RaycastingScene.h:30
cloudViewer::t::geometry::Image::HAVE_IPP
static constexpr bool HAVE_IPP
Do we use IPP for accelerating image processing operations?
Definition: Image.h:339
ccMesh::getVertexNormals
std::vector< Eigen::Vector3d > getVertexNormals() const
Definition: ecvMesh.cpp:2266
cloudViewer::t::geometry::TriangleMesh::GetTriangleAttr
const TensorMap & GetTriangleAttr() const
Getter for triangle_attr_ TensorMap. Used in Pybind.
Definition: TriangleMesh.h:159
for
for(size_t i=0;i< 36;++i)
Definition: essential_matrix_poly.h:14
ccMesh::materials_
std::vector< std::pair< std::string, Material > > materials_
Definition: ecvMesh.h:704
cloudViewer::t::geometry::RaycastingScene::ComputeDistance
core::Tensor ComputeDistance(const core::Tensor &query_points, const int nthreads=0)
Computes the distance to the surface of the scene.
Definition: RaycastingScene.cpp:1492
cloudViewer::t::geometry::AxisAlignedBoundingBox::CreateFromPoints
static AxisAlignedBoundingBox CreateFromPoints(const core::Tensor &points)
Definition: BoundingVolume.cpp:233
ccMesh::addEigenVertices
void addEigenVertices(const std::vector< Eigen::Vector3d > &vertices)
Definition: ecvMesh.cpp:2377
RaycastingScene.h
cloudViewer::core::IsDevice::IsCPU
bool IsCPU() const
Definition: Device.h:95
VtkUtils.h
cloudViewer::t::geometry::TriangleMesh::GetNonManifoldEdges
core::Tensor GetNonManifoldEdges(bool allow_boundary_edges=true) const
Definition: TriangleMesh.cpp:1781
cloudViewer::t::geometry::TriangleMesh::SetVertexNormals
void SetVertexNormals(const core::Tensor &value)
Definition: TriangleMesh.h:275
AssertTensorDtype
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
fgr::Points
std::vector< Eigen::Vector3f > Points
Definition: FastGlobalRegistration.h:13
cloudViewer::core::TensorKey
TensorKey is used to represent single index, slice or advanced indexing on a Tensor.
Definition: TensorKey.h:26
Random.h
ImageIO.h
cloudViewer::t::geometry::TriangleMesh::GetDevice
core::Device GetDevice() const override
Returns the device of the geometry.
Definition: TriangleMesh.h:721
ccMesh
Triangular mesh.
Definition: ecvMesh.h:35
cloudViewer::core::Tensor::Empty
static Tensor Empty(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor with uninitialized values.
Definition: Tensor.cpp:400
cloudViewer::t::geometry::TriangleMesh::ToLegacy
ccMesh ToLegacy() const
Convert to a legacy CloudViewer TriangleMesh.
Definition: TriangleMesh.cpp:479
cloudViewer::core::Tensor::NumElements
int64_t NumElements() const
Definition: Tensor.h:1170
Tensor.h
cloudViewer::t::geometry::TriangleMesh::RemoveUnreferencedVertices
TriangleMesh RemoveUnreferencedVertices()
Definition: TriangleMesh.cpp:1354
cloudViewer::t::geometry::TriangleMesh::FillHoles
TriangleMesh FillHoles(double hole_size=1e6) const
Definition: TriangleMesh.cpp:789
LogWarning
#define LogWarning(...)
Definition: Logging.h:72
DISPATCH_FLOAT_DTYPE_TO_TEMPLATE
#define DISPATCH_FLOAT_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:78
cloudViewer::core::Tensor::Sum
Tensor Sum(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1240
cloudViewer::t::geometry::TriangleMesh::Scale
TriangleMesh & Scale(double scale, const core::Tensor &center)
Scales the VertexPositions of the TriangleMesh.
Definition: TriangleMesh.cpp:181
cloudViewer::t::geometry::IsNegative
static bool IsNegative(T val)
brief Static negative checker for signed integer types
Definition: TriangleMesh.cpp:1232
Matmul.h
cloudViewer::t::geometry::TriangleMesh::HasTriangleIndices
bool HasTriangleIndices() const
Definition: TriangleMesh.h:353
cloudViewer::t::geometry::DrawableGeometry::HasMaterial
bool HasMaterial() const
Check if a material has been applied to this Geometry with SetMaterial.
Definition: DrawableGeometry.h:25
cloudViewer::t::geometry::TriangleMesh::ComputeUVAtlas
std::tuple< float, int, int > ComputeUVAtlas(size_t size=512, float gutter=1.0f, float max_stretch=1.f/6, int parallel_partitions=1, int nthreads=0)
Definition: TriangleMesh.cpp:803
cloudViewer::t::geometry::LineSet
A LineSet contains points and lines joining them and optionally attributes on the points and lines.
Definition: LineSet.h:85
cloudViewer::t::geometry::TriangleMesh::ComputeConvexHull
TriangleMesh ComputeConvexHull(bool joggle_inputs=false) const
Definition: TriangleMesh.cpp:635
cloudViewer::core::eigen_converter::EigenVector2dVectorToTensor
core::Tensor EigenVector2dVectorToTensor(const std::vector< Eigen::Vector2d > &values, core::Dtype dtype, const core::Device &device)
Converts a vector of Eigen::Vector2d to a (N, 2) tensor. This function also takes care of dtype conve...
Definition: EigenConverter.cpp:172
cloudViewer::t::geometry::TriangleMesh::ComputeTriangleAreas
TriangleMesh & ComputeTriangleAreas()
Function to compute triangle areas and save it as a triangle attribute "areas". Prints a warning,...
Definition: TriangleMesh.cpp:335
cloudViewer::t::geometry::TriangleMesh::Rotate
TriangleMesh & Rotate(const core::Tensor &R, const core::Tensor &center)
Rotates the VertexPositions, VertexNormals and TriangleNormals (if exists).
Definition: TriangleMesh.cpp:192
cloudViewer::core::ParallelFor
void ParallelFor(const Device &device, int64_t n, const func_t &func)
Definition: ParallelFor.h:111
cloudViewer::t::geometry::TriangleMesh::Transform
TriangleMesh & Transform(const core::Tensor &transformation)
Transforms the VertexPositions, VertexNormals and TriangleNormals (if exist) of the TriangleMesh.
Definition: TriangleMesh.cpp:152
z
normal_z z
Definition: my_point_types.h:165
cloudViewer::core::eigen_converter::TensorToEigenVector3iVector
std::vector< Eigen::Vector3i > TensorToEigenVector3iVector(const core::Tensor &tensor)
Converts a tensor of shape (N, 3) to std::vector<Eigen::Vector3i>. An exception will be thrown if the...
Definition: EigenConverter.cpp:155
cloudViewer::t::geometry::TriangleMesh::FromLegacy
static geometry::TriangleMesh FromLegacy(const ccMesh &mesh_legacy, core::Dtype float_dtype=core::Float32, core::Dtype int_dtype=core::Int64, const core::Device &device=core::Device("CPU:0"))
Definition: TriangleMesh.cpp:379
AssertTensorShape
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
cloudViewer::t::geometry::TriangleMesh::BakeVertexAttrTextures
std::unordered_map< std::string, core::Tensor > BakeVertexAttrTextures(int size, const std::unordered_set< std::string > &vertex_attr={}, double margin=2., double fill=0., bool update_material=true)
Definition: TriangleMesh.cpp:975
cloudViewer::t::geometry::PointCloud::SetPointNormals
void SetPointNormals(const core::Tensor &value)
Set the value of the "normals" attribute. Convenience function.
Definition: PointCloud.h:198
cloudViewer::t::geometry::Image::InterpType::Linear
@ Linear
Bilinear interpolation.
TensorKey.h
cloudViewer::t::geometry::kernel::pcapartition::PCAPartition
std::tuple< int, core::Tensor > PCAPartition(core::Tensor &points, int max_points)
Definition: PCAPartition.cpp:83
AssertTensorDtypes
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
cloudViewer::io::CreatePointCloudFromFile
std::shared_ptr< ccPointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:84
cloudViewer::t::geometry::TriangleMesh::BooleanIntersection
TriangleMesh BooleanIntersection(const TriangleMesh &mesh, double tolerance=1e-6) const
Definition: TriangleMesh.cpp:768
cloudViewer::t::geometry::kernel::trianglemesh::ComputeTriangleNormalsCPU
void ComputeTriangleNormalsCPU(const core::Tensor &vertices, const core::Tensor &triangles, core::Tensor &normals)
Definition: TriangleMeshImpl.h:71
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::core::Dtype::DtypeCode
DtypeCode
Definition: Dtype.h:37
cloudViewer::t::geometry::kernel::pointcloud::Project
void Project(core::Tensor &depth, utility::optional< std::reference_wrapper< core::Tensor >> image_colors, const core::Tensor &points, utility::optional< std::reference_wrapper< const core::Tensor >> colors, const core::Tensor &intrinsics, const core::Tensor &extrinsics, float depth_scale, float depth_max)
Definition: PointCloud.cpp:63
cloudViewer::t::geometry::TriangleMesh::SetTriangleIndices
void SetTriangleIndices(const core::Tensor &value)
Set the value of the "indices" attribute in triangle_attr_.
Definition: TriangleMesh.h:291
cloudViewer::t::geometry::TriangleMesh::GetVertexPositions
core::Tensor & GetVertexPositions()
Definition: TriangleMesh.h:148
cloudViewer::pipelines::registration::BenchmarkCreateFromPointCloudBallPivoting
static void BenchmarkCreateFromPointCloudBallPivoting(benchmark::State &state, const bool remove_non_finite_points)
Definition: TriangleMesh.cpp:21
Utils::distance
static double distance(T *pot1, T *pot2)
Definition: utils.h:111
cloudViewer::ml::contrib::EPS
constexpr float EPS
Definition: IoUImpl.h:20
radii
std::vector< PointCoordinateType > radii
Definition: qM3C2Tools.cpp:42
cloudViewer::core::Int64
const Dtype Int64
Definition: Dtype.cpp:47
type
char type
Definition: FileIOFactory.cpp:131
TriangleMeshImpl.h
GeometryMacros.h
cloudViewer::t::geometry::TriangleMesh::GetAxisAlignedBoundingBox
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const
Create an axis-aligned bounding box from vertex attribute "positions".
Definition: TriangleMesh.cpp:781
ecvPointCloud.h
cloudViewer::visualization::rendering::Material
Definition: Material.h:22
Dtype.h
cloudViewer::core::Tensor::To
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
vertex_num
long vertex_num
Definition: FileIOFactory.cpp:48
cloudViewer::t::geometry::Geometry
The base geometry class.
Definition: Geometry.h:23
cloudViewer::t::geometry::DrawableGeometry::SetMaterial
void SetMaterial(const visualization::rendering::Material &material)
Set the material properties associate with this Geometry.
Definition: DrawableGeometry.h:36
cloudViewer::geometry::PointCloud
::ccPointCloud PointCloud
Definition: PointCloud.h:19
cloudViewer::core::eigen_converter::EigenVector3dVectorToTensor
core::Tensor EigenVector3dVectorToTensor(const std::vector< Eigen::Vector3d > &values, core::Dtype dtype, const core::Device &device)
Converts a vector of Eigen::Vector3d to a (N, 3) tensor. This function also takes care of dtype conve...
Definition: EigenConverter.cpp:165
PointCloudIO.h
DISPATCH_INT_DTYPE_PREFIX_TO_TEMPLATE
#define DISPATCH_INT_DTYPE_PREFIX_TO_TEMPLATE(DTYPE, PREFIX,...)
Definition: Dispatch.h:118
cloudViewer::t::geometry::TriangleMesh::ExtrudeRotation
TriangleMesh ExtrudeRotation(double angle, const core::Tensor &axis, int resolution=16, double translation=0.0, bool capping=true) const
Definition: TriangleMesh.cpp:1095
cloudViewer::core::Dtype::GetDtypeCode
DtypeCode GetDtypeCode() const
Definition: Dtype.h:61
DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE
#define DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE(FDTYPE, IDTYPE,...)
Definition: Dispatch.h:91
cloudViewer::t::geometry::PointCloud::ComputeConvexHull
TriangleMesh ComputeConvexHull(bool joggle_inputs=false) const
Definition: PointCloud.cpp:1201
cloudViewer::core::Tensor::GetDataPtr
T * GetDataPtr()
Definition: Tensor.h:1144
cloudViewer::visualization::rendering::TriangleMeshModel
Definition: Model.h:18
cloudViewer::t::geometry::PointCloud::SetPointColors
void SetPointColors(const core::Tensor &value)
Set the value of the "colors" attribute. Convenience function.
Definition: PointCloud.h:192
ccMesh::HasVertices
bool HasVertices() const
Definition: ecvMesh.h:208