MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / indexCurve

Function indexCurve

libs/mapv/mapv.js:1956–1969  ·  view source on GitHub ↗
(start, minX, minY, size)

Source from the content-addressed store, hash-verified

1954
1955// interlink polygon nodes in z-order
1956function indexCurve(start, minX, minY, size) {
1957 var p = start;
1958 do {
1959 if (p.z === null) p.z = zOrder(p.x, p.y, minX, minY, size);
1960 p.prevZ = p.prev;
1961 p.nextZ = p.next;
1962 p = p.next;
1963 } while (p !== start);
1964
1965 p.prevZ.nextZ = null;
1966 p.prevZ = null;
1967
1968 sortLinked(p);
1969}
1970
1971// Simon Tatham's linked list merge sort algorithm
1972// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html

Callers 1

earcutLinkedFunction · 0.85

Calls 2

zOrderFunction · 0.85
sortLinkedFunction · 0.85

Tested by

no test coverage detected