15using VoxelsMetric = std::function<float(
size_t from,
size_t to )>;
37struct VoxelMetricParameters
43 QuarterBit quatersMask{QuarterBit::All};
48 float modifier = -1.0f );
55 size_t start,
size_t finish, ProgressCallback cb = {} );
#define MR_MAKE_FLAG_OPERATORS(T)
Definition MRFlagOperators.h:6
#define MRVOXELS_API
Definition MRVoxelsFwd.h:14
Definition MRVoxelPath.h:38
new unsafe ref ulong stop
new unsafe ref ulong start
new unsafe ref MR.SlicePlane plane
new unsafe ref float maxDistRatio
MRMESH_API EdgePath buildSmallestMetricPath(const MeshTopology &topology, const EdgeMetric &metric, VertId start, VertId finish, float maxPathMetric=FLT_MAX)
builds shortest path in given metric from start to finish vertices; if no path can be found then empt...
MRVOXELS_API VoxelsMetric voxelsExponentMetric(const VdbVolume &voxels, const VoxelMetricParameters ¶meters, float modifier=-1.0f)
e^(modifier*(dens1+dens2))
std::function< float(size_t from, size_t to)> VoxelsMetric
Definition MRVoxelPath.h:15
QuarterBit
Definition MRVoxelPath.h:18
MRVOXELS_API VoxelsMetric voxelsSumDiffsMetric(const VdbVolume &voxels, const VoxelMetricParameters ¶meters)
sum of dense differences with start and stop voxels
Definition MRCameraOrientationPlugin.h:8