11[[nodiscard]]
inline EdgeId
mapEdge(
const WholeEdgeMap & map, EdgeId src )
13 EdgeId res = map[ src.undirected() ];
14 if ( res && src.odd() )
23 auto it = map.find( src.undirected() );
24 if ( it != map.end() )
34[[nodiscard]]
inline UndirectedEdgeId
mapEdge(
const UndirectedEdgeBMap & map, UndirectedEdgeId src )
36 return getAt( map.b, src );
40[[nodiscard]]
MRMESH_API UndirectedEdgeBitSet
mapEdges(
const WholeEdgeMap & map,
const UndirectedEdgeBitSet & src );
46[[nodiscard]]
MRMESH_API UndirectedEdgeBitSet
mapEdges(
const UndirectedEdgeBMap & map,
const UndirectedEdgeBitSet & src );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRCameraOrientationPlugin.h:8
T getAt(const Buffer< T, I > &bmap, I key)
given some buffer map and a key, returns the value associated with the key, or default value if key i...
Definition MRBuffer.h:119
HashMap< UndirectedEdgeId, EdgeId > WholeEdgeHashMap
mapping of whole edges: map[e]->f, map[e.sym()]->f.sym(), where only map[e] for even edges is stored
Definition MRMesh/MRMeshFwd.h:469
MRMESH_API UndirectedEdgeBitSet mapEdges(const WholeEdgeMap &map, const UndirectedEdgeBitSet &src)
given input bit-set (src), converts each id corresponding to set bit using given map,...
EdgeId mapEdge(const WholeEdgeMap &map, EdgeId src)
given input edge (src), converts its id using given map
Definition MRMapEdge.h:11