Function Polygon.TraceContours
TraceContours
(Dictionary<int, int> outline, HashSet<int> hasInEdge, System.Action<List<int >, bool> results)
Given a set of edges between vertices, follows those edges and returns them as chains and cycles.
Public
Static
void TraceContours (
Dictionary<int, int> | outline | outline[a] = b if there is an edge from a to b. |
HashSet<int> | hasInEdge | hasInEdge should contain b if outline[a] = b for any key a. |
System.Action<List<int >, bool> | results | Will be called once for each contour with the contour as a parameter as well as a boolean indicating if the contour is a cycle or a chain (see image). |
Given a set of edges between vertices, follows those edges and returns them as chains and cycles.