Polygonal chains can often be used to approximate more complex curves. In this context, the
Ramer–Douglas–Peucker algorithm can be used to find a polygonal chain with few segments that serves as an accurate approximation. In
graph drawing, polygonal chains are often used to represent the edges of graphs, in drawing styles where drawing the edges as straight line segments would cause crossings, edge-vertex collisions, or other undesired features. In this context, it is often desired to draw edges with as few segments and bends as possible, to reduce the visual clutter in the drawing; the problem of minimizing the number of bends is called
bend minimization. In
computer-aided geometric design, smooth curves are often defined by a list of
control points, e.g. in defining
Bézier curve segments. When connected together, the control points form a polygonal chain called a
control polygon. Polygonal chains are also a fundamental data type in
computational geometry. For instance, a
point location algorithm of
Lee and
Preparata operates by decomposing arbitrary
planar subdivisions into an ordered sequence of monotone chains, in which a point location query problem may be solved by
binary search; this method was later refined to give optimal time bounds for the point location problem. With
geographic information system, linestrings may represent any linear geometry, and can be described using the
well-known text markup as a LineString or MultiLineString. Linear rings (or LinearRing) are closed and simple polygonal chains used to build polygon geometries. ==See also==