22#define WEM_SHORTESTPATH_TRAVERSED_BIT 15
30namespace WEMShortestPath
Defines the mesh component: node.
Base class for triangle and quad patches.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
WEMNode * _extractMin(WEMNodeVector &R, double *&distances)
Helper method: searches for the shortest edge in the WEMNodeVector R, erases the according node from ...
std::vector< WEMNode * > WEMNodeVector
Internal vector holds the temporary WEMNode front nodes.
MLWEM_EXPORT void shortestPath(WEMPatch *wemPatch, WEMNode *startNode, WEMNode *destNode, std::vector< unsigned int > &pathNodesEntryNumbers)
Computes the shortest path along edges of the wemPatch, from the startNode to the destNode.
void _addToBorder(WEMNodeVector &R, WEMNode *node, double *distances, WEMNode **previousNodes)
Helper method: adds all unvisited nodes to R, and updates the distances array and the previousNodes a...
WEMNode * _extractMax(double *&distances, WEMPatch *wemPatch)
Helper method: searches for the node with maximal distance, and returns a pointer to this node.