MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCudaPointCloud.h
Go to the documentation of this file.
1#pragma once
2#ifndef MR_PARSING_FOR_PB11_BINDINGS
3
4#include "exports.h"
5
6#include "MRMesh/MRMeshFwd.h"
7#include "MRMesh/MRExpected.h"
8
9namespace MR::Cuda
10{
11
12struct PointCloudDataHolder;
13
15MRCUDA_API Expected<std::unique_ptr<PointCloudDataHolder>> copyDataFrom( const PointCloud& pc, bool copyNormals = false,
16 const std::vector<Vector3f>* normals = nullptr );
17
19MRCUDA_API size_t pointCloudHeapBytes( const PointCloud& pc, bool copyNormals = false,
20 const std::vector<Vector3f>* normals = nullptr );
21
22} // namespace MR::Cuda
23#endif
Definition MRCudaBasic.h:11
MRCUDA_API size_t pointCloudHeapBytes(const PointCloud &pc, bool copyNormals=false, const std::vector< Vector3f > *normals=nullptr)
return the amount of GPU memory required for MR::Cuda::PointCloudDataHolder
MRCUDA_API Expected< std::unique_ptr< PointCloudDataHolder > > copyDataFrom(const PointCloud &pc, bool copyNormals=false, const std::vector< Vector3f > *normals=nullptr)
copy point cloud-related data to the GPU memory
tl::expected< T, E > Expected
Definition MRExpected.h:59
Definition MRMesh/MRPointCloud.h:16