4#ifndef MRCUDA_NO_VOXELS
38 AddPartFunc addPart,
int layerOverlap )
const override;
CUDA implementation of IComputePointsToDistanceVolumeByParts.
Definition MRCudaPointsToDistanceVolume.h:30
complements IComputePointsToDistanceVolume with computation in z-slabs, which needs less memory
Definition MRPointsToDistanceVolume.h:68
double volume(const MeshTopology &topology, const VertCoords &points, const FaceBitSet *region=nullptr)
bool canCompute(const PointCloud &cloud, const MR::PointsToDistanceVolumeParams ¶ms) const override
std::function< Expected< void >(const SimpleVolumeMinMax &volume, int zOffset)> AddPartFunc
gets one z-slab of the volume, starting at z-layer zOffset
Definition MRPointsToDistanceVolume.h:71
tl::expected< T, E > Expected
Definition MRExpected.h:31
size_t pointsToDistanceVolumeMemory(const PointCloud &cloud, const Vector3i &dims, const VertNormals *ptNormals)
returns the minimal amount of free GPU memory required to build a distance volume with given dimensio...
Expected< MR::SimpleVolumeMinMax > compute(const PointCloud &cloud, const MR::PointsToDistanceVolumeParams ¶ms) const override
Expected< void > pointsToDistanceVolumeByParts(const PointCloud &cloud, const MR::PointsToDistanceVolumeParams ¶ms, std::function< Expected< void >(const SimpleVolumeMinMax &volume, int zOffset)> addPart, int layerOverlap)
Expected< MR::SimpleVolumeMinMax > pointsToDistanceVolume(const PointCloud &cloud, const MR::PointsToDistanceVolumeParams ¶ms)
makes SimpleVolume filled with signed distances to points with normals
SimpleVolumeMinMax
Definition MRVoxelsFwd.h:35
Expected< void > computeByParts(const PointCloud &cloud, const MR::PointsToDistanceVolumeParams ¶ms, AddPartFunc addPart, int layerOverlap) const override
makes the volume by z-slabs, passing each of them in addPart with layerOverlap layers shared by neigh...
Definition MRCudaBasic.h:15
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRPointCloud.h:17
Definition MRPointsToDistanceVolume.h:18