ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Transform.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 namespace kernel {
16 namespace transform {
17 
18 void TransformPoints(const core::Tensor& transformation, core::Tensor& points);
19 
20 void TransformNormals(const core::Tensor& transformation,
22 
23 void RotatePoints(const core::Tensor& R,
25  const core::Tensor& center);
26 
28 
29 void TransformPointsCPU(const core::Tensor& transformation,
31 
32 void TransformNormalsCPU(const core::Tensor& transformation,
34 
35 void RotatePointsCPU(const core::Tensor& R,
37  const core::Tensor& center);
38 
40 
41 #ifdef BUILD_CUDA_MODULE
42 void TransformPointsCUDA(const core::Tensor& transformation,
44 
45 void TransformNormalsCUDA(const core::Tensor& transformation,
47 
48 void RotatePointsCUDA(const core::Tensor& R,
50  const core::Tensor& center);
51 
52 void RotateNormalsCUDA(const core::Tensor& R, core::Tensor& normals);
53 #endif
54 
55 } // namespace transform
56 } // namespace kernel
57 } // namespace geometry
58 } // namespace t
59 } // namespace cloudViewer
cloudViewer::t::geometry::kernel::transform::RotateNormalsCPU
void RotateNormalsCPU(const core::Tensor &R, core::Tensor &normals)
Definition: TransformImpl.h:157
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
ShapeUtil.h
CUDAUtils.h
Common CUDA utilities.
core::Tensor
cloudViewer::core::Tensor::Contiguous
Tensor Contiguous() const
Definition: Tensor.cpp:772
cloudViewer::t::geometry::kernel::transform::TransformNormalsCPU
void TransformNormalsCPU(const core::Tensor &transformation, core::Tensor &normals)
Definition: TransformImpl.h:115
Transform.h
cloudViewer::t::geometry::kernel::transform::RotateNormals
void RotateNormals(const core::Tensor &R, core::Tensor &normals)
Definition: Transform.cpp:88
cloudViewer::t::geometry::kernel::transform::TransformNormals
void TransformNormals(const core::Tensor &transformation, core::Tensor &normals)
Definition: Transform.cpp:41
cloudViewer::t::geometry::kernel::transform::TransformPoints
void TransformPoints(const core::Tensor &transformation, core::Tensor &points)
Definition: Transform.cpp:20
normals
double normals[3]
Definition: TriangleMeshIO.cpp:54
cloudViewer::t::geometry::kernel::transform::RotatePointsCPU
void RotatePointsCPU(const core::Tensor &R, core::Tensor &points, const core::Tensor &center)
Definition: TransformImpl.h:135
cloudViewer::t::geometry::kernel::transform::TransformPointsCPU
void TransformPointsCPU(const core::Tensor &transformation, core::Tensor &points)
Definition: TransformImpl.h:95
CUDA_CALL
#define CUDA_CALL(cuda_function,...)
Definition: CUDAUtils.h:49
TensorCheck.h
cloudViewer::t::geometry::kernel::transform::RotatePoints
void RotatePoints(const core::Tensor &R, core::Tensor &points, const core::Tensor &center)
Definition: Transform.cpp:63
points
int points
Definition: FileIOFactory.cpp:144
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::utility::nullopt
constexpr nullopt_t nullopt
Definition: Optional.h:136
Tensor.h
AssertTensorShape
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
cloudViewer::core::Tensor::To
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739