Jump to content

Polygonal chain

From Wikipedia, the free encyclopedia
(Redirected fromPolyline)
A simple polygonal chain
A self-intersecting polygonal chain
A closed polygonal chain

Ingeometry,apolygonal chain[a]is a connected series ofline segments.More formally, a polygonal chainis acurvespecified by asequenceof pointscalled itsvertices.The curve itself consists of the line segments connecting the consecutive vertices.

Variations

[edit]

Simple

[edit]

Asimple polygonal chainis one in which only consecutive segments intersect and only at their endpoints.

Closed

[edit]

Aclosed polygonal chainis one in which the first vertex coincides with the last one, or, alternatively, the first and the last vertices are also connected by a line segment.[1] A simple closed polygonal chain inthe planeis the boundary of asimple polygon.Often the term "polygon"is used in the meaning of" closed polygonal chain ", but in some cases it is important to draw a distinction between apolygonal areaand a polygonal chain.

Monotone

[edit]
A set ofn=17 points has a polygonal path with 4 same-sign slopes

A polygonal chain is calledmonotoneif there is astraight lineLsuch that every line perpendicular toLintersects the chain at most once. Every nontrivial monotone polygonal chain is open. In comparison, amonotone polygonis a polygon (a closed chain) that can be partitioned into exactly two monotone chains.[2]The graphs ofpiecewise linear functionsform monotone chains with respect to a horizontal line.

Parametrization

[edit]

Each segment of a polygonal chain is typicallyparametrizedlinearly, usinglinear interpolationbetween successive vertices. For the whole chain, two parametrizations are common in practical applications: Each segment of the chain can be assigned a unitintervalof the parameter corresponding to the index of the first vertex; alternately, each segment of the chain can be assigned an interval of the parameter corresponding to the length of the segment, so that the parameter corresponds uniformly to arclength along the whole chain.

From point sets

[edit]

Every set of at leastpoints contains a polygonal path of at leastedges in which all slopes have the same sign. This is a corollary of theErdős–Szekeres theorem.

Applications

[edit]

Polygonal chains can often be used to approximate more complex curves. In this context, theRamer–Douglas–Peucker algorithmcan be used to find a polygonal chain with few segments that serves as an accurate approximation.[3][4]

Ingraph 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 calledbend minimization.[5]

A red Bézier curve is defined by the control pointsP0, ..., P4.The gray polygonal chain connecting the control points is called the control polygon.

Incomputer-aided geometric design,smooth curves are often defined by a list ofcontrol points,e.g. in definingBézier curvesegments. When connected together, the control points form a polygonal chain called acontrol polygon.

Polygonal chains are also a fundamental data type incomputational geometry.For instance, apoint locationalgorithm ofLeeandPreparataoperates by decomposing arbitraryplanar subdivisionsinto an ordered sequence of monotone chains, in which a point location query problem may be solved bybinary search;this method was later refined to give optimal time bounds for the point location problem.[6]

Withgeographic information system,linestrings may represent any linear geometry, and can be described using thewell-known textmarkup as aLineStringorMultiLineString.[7]Linear rings (orLinearRing) are closed and simple polygonal chains used to build polygon geometries.

See also

[edit]

Notes

[edit]
  1. ^A polygonal chain may also be called apolygonal curve,[8]polygonal path,[9]polyline,[10]piecewise linear curve,[10]broken line[11]or, ingeographic information systems,alinestringorlinear ring.[7]

References

[edit]
  1. ^Mehlhorn, Kurt;Näher, Stefan (1999),LEDA: A Platform for Combinatorial and Geometric Computing,Cambridge University Press, p. 758,ISBN9780521563291.
  2. ^O'Rourke, Joseph(1998),Computational Geometry in C,Cambridge Tracts in Theoretical Computer Science, Cambridge University Press, p. 45,ISBN9780521649766.
  3. ^Ramer, Urs (1972), "An iterative procedure for the polygonal approximation of plane curves",Computer Graphics and Image Processing,1(3): 244–256,doi:10.1016/S0146-664X(72)80017-0.
  4. ^Douglas, David; Peucker, Thomas (1973), "Algorithms for the reduction of the number of points required to represent a digitized line or its caricature",The Canadian Cartographer,10(2): 112–122,doi:10.3138/FM57-6770-U75U-7727.
  5. ^Tamassia, Roberto(1987), "On embedding a graph in the grid with the minimum number of bends",SIAM Journal on Computing,16(3): 421–444,doi:10.1137/0216030.
  6. ^Edelsbrunner, Herbert;Guibas, Leonidas J.;Stolfi, Jorge(1986), "Optimal point location in a monotone subdivision",SIAM Journal on Computing,15(2): 317–340,doi:10.1137/0215023.
  7. ^abOpen Geospatial Consortium(2011-05-28), Herring, John R. (ed.),OpenGIS® Implementation Standard for Geographic information - Simple feature access - Part 1: Common architecture,1.2.1, Open Geospatial Consortium,retrieved2016-01-15
  8. ^Gomes, Jonas; Velho, Luiz; Costa Sousa, Mario (2012),Computer Graphics: Theory and Practice,CRC Press, p. 186,ISBN9781568815800.
  9. ^Cheney, Ward (2001),Analysis for Applied Mathematics,Graduate Texts in Mathematics, vol. 208, Springer, p. 13,ISBN9780387952796.
  10. ^abBoissonnat, Jean-Daniel;Teillaud, Monique(2006),Effective Computational Geometry for Curves and Surfaces,Springer, p. 34,ISBN9783540332596.
  11. ^Muggeo, Vito M. R. (May 2008),"segmented: An R package to fit regression models with broken-line relationships"(PDF),R News,8(1): 20–25