MeshLib C Docs
Loading...
Searching...
No Matches
MRCudaMeshDistanceMap.h File Reference
#include <MRCCuda/exports.h>
#include <MRCMisc/common.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

MRC_CUDA_API MR_expected_MR_DistanceMap_std_stringMR_Cuda_computeDistanceMap (const MR_Mesh *mesh, const MR_MeshToDistanceMapParams *params, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb, MR_std_vector_MR_MeshTriPoint *outSamples)
MRC_CUDA_API MR_uint64_t MR_Cuda_computeDistanceMapHeapBytes (const MR_Mesh *mesh, const MR_MeshToDistanceMapParams *params, const bool *needOutSamples)

Function Documentation

◆ MR_Cuda_computeDistanceMap()

MRC_CUDA_API MR_expected_MR_DistanceMap_std_string * MR_Cuda_computeDistanceMap ( const MR_Mesh * mesh,
const MR_MeshToDistanceMapParams * params,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb,
MR_std_vector_MR_MeshTriPoint * outSamples )

computes distance (height) map for given projection parameters using float-precision for finding ray-mesh intersections, which is faster but less reliable Generated from function MR::Cuda::computeDistanceMap. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Parameter outSamples defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_DistanceMap_std_string_Destroy() to free it when you're done using it.

◆ MR_Cuda_computeDistanceMapHeapBytes()

MRC_CUDA_API MR_uint64_t MR_Cuda_computeDistanceMapHeapBytes ( const MR_Mesh * mesh,
const MR_MeshToDistanceMapParams * params,
const bool * needOutSamples )

Computes memory consumption of computeDistanceMap function Generated from function MR::Cuda::computeDistanceMapHeapBytes. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Parameter needOutSamples has a default argument: false, pass a null pointer to use it.