GO-V.ORG
As seen in

Rotating calipers

In computational geometry, the method of rotating calipers is an algorithm design technique that can be used to solve optimization problems including finding the width or diameter of a set of points. The method is so named because the idea is analogous to rotating a spring-loaded vernier caliper around the outside of a convex polygon. Every time one blade of the caliper lies flat against an edge of the polygon, it forms an antipodal pair with the point or edge touching the opposite blade. The complete "rotation" of the caliper around the polygon detects all antipodal pairs; the set of all pairs, viewed as a graph, forms a thrackle. The method of rotating calipers can be interpreted as the... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In computational geometry, the method of rotating calipers is an algorithm design technique that can be used to solve optimization problems including finding the width or diameter of a set of points. The method is so named because the idea is analogous to rotating a spring-loaded vernier caliper around the outside of a convex polygon. Every time one blade of the caliper lies flat against an edge of the polygon, it forms an antipodal pair with the point or edge touching the opposite blade. The complete "rotation" of the caliper around the polygon detects all antipodal pairs; the set of all pairs, viewed as a graph, forms a thrackle. The method of rotating calipers can be interpreted as the projective dual of a sweep line algorithm in which the sweep is across slopes of lines rather than across - or -coordinates of points. /* p[] is in standard form, ie, counter clockwise order, distinct vertices, no collinear vertices. ANGLE(m, n) is a procedure that returns the clockwise angle swept out by a ray as it rotates from a position parallel to the directed segment Pm,Pm+1 to a position parallel to Pn, Pn+1 We assume all indices are reduced to mod N (so that N+1 = 1). / GetAllAntiPodalPairs(p[1..n]) // Find first anti-podal pair by locating vertex opposite P1 i = 1 j = 2 while angle(i, j) Another version of this algorithm appeared in the text by Preparata and Shamos in 1985 that avoided calculation of angles: GetAllAntiPodalPairs(p[1..n]) i = n j = i + 1 while (Area(i, i + 1, j + 1) > Area(i, i + 1, j)) j = j + 1 j0 = j while (i != j0) i = i + 1 yield i, j while (Area(i, i + 1, j + 1) > Area(i, i + 1, j)) j = j + 1 if ((i, j) != (j0, 1)) yield i, j if (Area(i, i + 1, j + 1) = Area(i, i + 1, j)) if ((i, j) != (j0, n)) yield i, j + 1 ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Rotating calipers". 1789448763. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374995480

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·