MeshLib
 
Loading...
Searching...
No Matches
MR::ContoursDistanceMapOptions Struct Reference

#include <MRDistanceMap.h>

Public Types

enum  SignedDetectionMethod { ContourOrientation , WindingRule }
 method to calculate sign More...
 

Public Attributes

enum MR::ContoursDistanceMapOptions::SignedDetectionMethod ContourOrientation
 
const ContoursDistanceMapOffsetoffsetParameters { nullptr }
 optional input offset for each edges of polyline, find more on ContoursDistanceMapOffset structure description
 
const PixelBitSet * region { nullptr }
 if pointer is valid, then only these pixels will be filled
 
std::vector< UndirectedEdgeId > * outClosestEdges { nullptr }
 optional output vector of closest polyline edge per each pixel of distance map
 
float minDist { 0 }
 minimum value (or absolute value if offsetParameters == nullptr) in a pixel of distance map (lower values can be present but they are not precise)
 
float maxDist { FLT_MAX }
 maximum value (or absolute value if offsetParameters == nullptr) in a pixel of distance map (larger values cannot be present)
 

Member Enumeration Documentation

◆ SignedDetectionMethod

method to calculate sign

Enumerator
ContourOrientation 

detect sign of distance based on closest contour's edge turn
(recommended for good contours with no self-intersections)

Note
that polyline topology should be consistently oriented
WindingRule 

detect sign of distance based on number of ray intersections with contours
(recommended for contours with self-intersections)

Member Data Documentation

◆ ContourOrientation

enum MR::ContoursDistanceMapOptions::SignedDetectionMethod MR::ContoursDistanceMapOptions::ContourOrientation

◆ maxDist

float MR::ContoursDistanceMapOptions::maxDist { FLT_MAX }

maximum value (or absolute value if offsetParameters == nullptr) in a pixel of distance map (larger values cannot be present)

◆ minDist

float MR::ContoursDistanceMapOptions::minDist { 0 }

minimum value (or absolute value if offsetParameters == nullptr) in a pixel of distance map (lower values can be present but they are not precise)

◆ offsetParameters

const ContoursDistanceMapOffset* MR::ContoursDistanceMapOptions::offsetParameters { nullptr }

optional input offset for each edges of polyline, find more on ContoursDistanceMapOffset structure description

◆ outClosestEdges

std::vector<UndirectedEdgeId>* MR::ContoursDistanceMapOptions::outClosestEdges { nullptr }

optional output vector of closest polyline edge per each pixel of distance map

◆ region

const PixelBitSet* MR::ContoursDistanceMapOptions::region { nullptr }

if pointer is valid, then only these pixels will be filled


The documentation for this struct was generated from the following file: