text: curve - shortening flow in mathematics , the curve - shortening flow is a process that modifies a smooth curve in the euclidean plane by moving its points perpendicularly to the curve at a speed proportional to the curvature . the curve - shortening flow is an example of a geometric flow , and is the one - dimensional case of the mean curvature flow . other names for the same process include the euclidean shortening flow , geometric heat flow , and arc length evolution . as the points of any smooth simple closed curve move in this way , the curve remains simple and smooth . it loses area at a constant rate , and its perimeter decreases as quickly as possible for any continuous curve evolution . if the curve is non - convex , its total absolute curvature decreases monotonically , until it becomes convex . once convex , the isoperimetric ratio of the curve decreases as the curve converges to a circular shape , before collapsing to a single point of singularity . if two disjoint simple smooth closed curves evolve , they remain disjoint until one of them collapses to a point . the circle is the only simple closed curve that maintains its shape under the curve - shortening flow , but some curves that cross themselves or have infinite length keep their shape , including the grim reaper curve , an infinite curve that translates upwards , and spirals that rotate while remaining the same size and shape . an approximation to the curve - shortening flow can be computed numerically , by approximating the curve as a polygon and using the finite difference method to calculate the motion of each polygon vertex . alternative methods include computing a convolution of polygon vertices and then vertices on the resulting curve , or repeatedly applying a median filter to a digital image whose black and white pixels represent the inside and outside of the curve . the curve - shortening flow was originally studied as a model for annealing of metal sheets . later , it was applied in image analysis to give a multi - scale representation of shapes . it can also model reaction – diffusion systems , and the behavior of cellular automata . in pure mathematics , the curve - shortening flow can be used to find closed geodesics on riemannian manifolds , and as a model for the behavior of higher - dimensional flows . definitions a flow is a process in which the points of a mathematical space continuously change their locations or properties over time . more specifically , in a one - dimensional geometric flow such as the curve - shortening flow , the points undergoing the flow belong to a curve , and what changes is the shape of the curve , its embedding into the euclidean plane determined by the locations of each of its points . in the curve - shortening flow , each point of a curve moves in the direction of a normal vector to the curve , at a rate proportional to the curvature . for an evolving curve represented by a two - parameter function c ( s , t ) where s the arc length along the curve and t a time in the evolution of the curve , the curve - shortening flow can be described by the parabolic partial differential equation a form of the heat equation , where κ is the curvature and n is the unit normal vector . because the ingredients of this equation , the arc length , curvature , and time , are all unaffected by translations and rotations of the euclidean plane , it follows that the flow defined by this equation is invariant under translations and rotations ( or more precisely , ) . if the plane is scaled by a constant dilation factor , the flow remains essentially unchanged , but is slowed down or sped up by the same factor . non - smooth curves in order for the flow to be well defined , the given curve must be sufficiently smooth that it has a continuous curvature . however , once the flow starts , the curve becomes analytic , and remains so until reaching a singularity at which the curvature blows up . for a smooth curve without crossings , the only possible singularity happens when the curve collapses to a point , but immersed curves can have other types of singularity . in such cases , with some care it is possible to continue the flow past these singularities until the whole curve shrinks to a single point . for a simple closed curve , using an extension of the flow to non - smooth curves based on the level set method , there are only two possibilities . curves with zero lebesgue measure ( including all polygons and piecewise - smooth curves ) instantly evolve into smooth curves , after which they evolve as any smooth curve would . however , osgood curves with nonzero measure instead immediately evolve into a topological annulus with nonzero area and smooth boundaries . the topologist 's sine curve is an example that instantly becomes smooth , despite not even being locally connected ; examples such as this show that the reverse evolution of the curve - shortening flow can take well - behaved curves to complicated singularities in a finite amount of time . non - euclidean surfaces the curve - shortening flow , and many of the results about the curve - shortening flow , can be generalized from the euclidean plane to any two - dimensional riemannian manifold . in order to avoid additional types of singularity , it is important for the manifold to be convex at infinity ; this is defined to mean that every compact set has a compact convex hull , as defined using geodesic convexity . the curve - shortening flow cannot cause a curve to depart from its convex hull , so this condition prevents parts of the curve from reaching the boundary of the manifold . space curves the curve - shortening flow has also been studied for curves in three - dimensional euclidean space . the normal vector in this case can be defined ( as in the plane ) as the derivative of the tangent vector with respect to arc length , normalized to be a unit vector ; it is one of the components of the – frame . it is not well defined at points of zero curvature , but the product of the curvature and the normal vector remains well defined at those points , allowing the curve - shortening flow to be defined . curves in space may cross each other or themselves according to this flow , and the flow may lead to singularities in the curves ; every singularity is asymptotic to a plane . the curve shortening flow for space curves has been used as a way to define flow past singularities in plane curves . beyond curves it is possible to extend the definition of the flow to more general inputs than curves , for instance by using rectifiable or the level set method . however , these extended definitions may allow parts of curves to vanish instantaneously or fatten into sets of nonzero area . a commonly studied variation of the problem involves networks of interior - disjoint smooth curves , with junctions where three or more of the curves meet . when the junctions all have exactly three curves meeting at angles of 2π / 3 ( the same conditions seen in an optimal steiner tree or two - dimensional foam of soap bubbles ) the flow is well - defined for the short term . however , it may eventually reach a singular state with four or more curves meeting at a junction , and there may be more than one way to continue the flow past such a singularity . behavior avoidance principle , radius , and stretch factor if two disjoint smooth simple closed curves undergo the curve - shortening flow simultaneously , they remain disjoint as the flow progresses . the reason is that , if two smooth curves move in a way that creates a crossing , then at the time of first crossing the curves would necessarily be tangent to each other , without crossing . but , in such a situation , the two curves ' curvatures at the point of tangency would necessarily pull them apart rather than pushing them together into a crossing . for the same reason , a single simple closed curve can never evolve to cross itself . the avoidance principle implies that any smooth curve eventually either reaches a singularity ( such as a point of infinite curvature ) or collapses to a point . for , if a given smooth curve c is surrounded by a circle , both will remain disjoint until one or the other collapses or reaches a singularity . but the enclosing circle shrinks under the curvature flow , remaining circular , until it collapses , and by the avoidance principle c must remain contained within it . by the same reasoning , the radius of the smallest circle that encloses c must decrease at a rate that is at least as fast as the decrease in radius of a circle undergoing the same flow . huisken ( 1998 ) quantifies the avoidance principle for a single curve in terms of the ratio between the arc length ( of the shorter of two arcs ) and euclidean distance between pairs of points , sometimes called the stretch factor . he shows that the stretch factor is strictly decreasing at each of its local maxima , except for the case of the two ends of a diameter of a circle in which case the stretch factor is constant at π . this monotonicity property implies the avoidance principle , for if the curve would ever touch itself the stretch factor would become infinite at the two touching points . length as a curve undergoes the curve - shortening flow , its length l decreases at a rate given by the formula where the interval is taken over the curve , κ is the curvature , and s is arc length along the curve . the integrand is always non - negative , and for any smooth closed curve there exist arcs within which it is strictly positive , so the length decreases monotonically . more generally , for any evolution of curves whose normal speed is f , the rate of change in length is which can be interpreted as a negated inner product between the given evolution and the curve - shortening flow . thus , the curve - shortening flow can be described as the gradient flow for length , the flow that ( locally ) decreases the length of the curve as quickly as possible relative to the l2 norm of the flow . this property is the one that gives the curve - shortening flow its name . area for a simple closed curve , the area enclosed by the curve shrinks , at the constant rate of 2π units of area per unit of time , independent of the curve . therefore , the total time for a curve to shrink to a point is proportional to its area , regardless of its initial shape . because the area of a curve is reduced at a constant rate , and ( by the isoperimetric inequality ) a circle has the greatest possible area among simple closed curves of a given length , it follows that circles are the slowest curves to collapse to a point under the curve - shortening flow . all other curves take less time to collapse than a circle of the same length . the constant rate of area reduction is the only conservation law satisfied by the curve - shortening flow . this implies that it is not possible to express the " vanishing point " where the curve eventually collapses as an integral over the curve of any function of its points and their derivatives , because such an expression would lead to a forbidden second conservation law . however , by combining the constant rate of area loss with the avoidance principle , it is possible to prove that the vanishing point always lies within a circle , concentric with the minimum enclosing circle , whose area is the difference in areas between the enclosing circle and the given curve . total absolute curvature the total absolute curvature of a smooth curve is the integral of the absolute value of the curvature along the arc length of the curve , it can also be expressed as a sum of the angles between the normal vectors at consecutive pairs of inflection points . it is 2π for convex curves and larger for non - convex curves , serving as a measure of non - convexity of a curve . new inflection points cannot be created by the curve - shortening flow . each of the angles in the representation of the total absolute curvature as a sum decreases monotonically , except at the instants when two consecutive inflection points reach the same angle or position as each other and are both eliminated . therefore , the total absolute curvature can never increase as the curve evolves . for convex curves it is constant at 2π and for non - convex curves it decreases monotonically . gage – hamilton – grayson theorem if a smooth simple closed curve undergoes the curve - shortening flow , it remains smoothly embedded without self - intersections . it will eventually become convex , and once it does so it will remain convex . after this time , all points of the curve will move inwards , and the shape of the curve will converge to a circle as the whole curve shrinks to a single point . this behavior is sometimes summarized by saying that every simple closed curve shrinks to a " round point " . this result is due to michael gage , richard hamilton , and matthew grayson . gage ( 1983 , 1984 ) proved convergence to a circle for convex curves that contract to a point . more specifically gage showed that the isoperimetric ratio ( the ratio of squared curve length to area , a number that is 4π for a circle and larger for any other convex curve ) decreases monotonically and quickly . gage & hamilton ( 1986 ) proved that all smooth convex curves eventually contract to a point without forming any other singularities , and grayson ( 1987 ) proved that every non - convex curve will eventually become convex . andrews & bryan ( 2011 ) provide a simpler proof of grayson 's result , based on the monotonicity of the stretch factor . similar results can be extended from closed curves to unbounded curves satisfying a local lipschitz condition . for such curves , if both sides of the curve have infinite area , then the evolved curve remains smooth and singularity - free for all time . however , if one side of an unbounded curve has finite area , and the curve has finite total absolute curvature , then its evolution reaches a singularity in time proportional to the area on the finite - area side of the curve , with unbounded curvature near the singularity . for curves that are graphs of sufficiently well - behaved functions , asymptotic to a ray in each direction , the solution converges in shape to a unique shape that is asymptotic to the same rays . for networks formed by two disjoint rays on the same line , together with two smooth curves connecting the endpoints of the two rays , an analogue of the gage – hamilton – grayson theorem holds , under which the region between the two curves becomes convex and then converges to a vesica piscis shape . of self - crossing curves curves that have self - crossings may reach singularities before contracting to a point . for instance , if a lemniscate ( any smooth immersed curve with a single crossing , resembling a figure 8 or infinity symbol ) has unequal areas in its two lobes , then eventually the smaller lobe will collapse to a point . however , if the two lobes have equal areas , then they will remain equal throughout the evolution of the curve , and the isoperimetric ratio will diverge as the curve collapses to a singularity . when a locally convex self - crossing curve approaches a singularity as one of its loops shrinks , it either shrinks in a self - similar way or asymptotically approaches the grim reaper curve ( described below ) as it shrinks . when a loop collapses to a singularity , the amount of total absolute curvature that is lost is either at least 2π or exactly π . on riemannian manifolds on a riemannian manifold , any smooth simple closed curve will remain smooth and simple as it evolves , just as in the euclidean case . it will either collapse to a point in a finite amount of time , or remain smooth and simple forever . in the latter case , the curve necessarily converges to a closed geodesic of the surface . immersed curves on riemannian manifolds , with finitely many self - crossings , become self - tangent only at a discrete set of times , at each of which they lose a crossing . as a consequence the number of self - crossing points is non - decreasing . huisken 's monotonicity formula according to huisken 's monotonicity formula , the convolution of an evolving curve with a time - reversed heat kernel is non - increasing . this result can be used to analyze the singularities of the evolution . specific curves curves with self - similar evolution because every other simple closed curve converges to a circle , the circle is the only simple closed curve that keeps its shape under the curve - shortening flow . however , there are many other examples of curves that are either non - simple ( they include self - crossings ) or non - closed ( they extend to infinity ) and keep their shape . in particular , every line stays unchanged by the curve - shortening flow . lines are the only curves that are unaffected by the curve - shortening flow , although there exist more complex stable networks of curves , such as the hexagonal tiling of the plane . the grim reaper curve y − log cos x moves upwards without changing its shape . in the same way , any curve similar to the grim reaper is translated by the curve - shortening flow , shifted in the direction of the symmetry axis of the curve without changing its shape or orientation . the grim reaper is the only curve with this property . it is also called the hairpin model in the physics literature . a family of self - crossing closed curves , derived from projections of torus knots , shrink but remain self - similar under the curve - shortening flow . these have come to be known as the abresch – langer curves , after the work of abresch & langer ( 1986 ) , although they were mentioned earlier by mullins ( 1956 ) and rediscovered independently by epstein & weinstein ( 1987 ) . these curves are locally convex , and therefore can be described by their support functions . suitably scaled versions of these support functions obey the differential equation which has positive periodic solutions ( corresponding to curves with self - similar evolution ) for any period that is strictly between π and . other curves , including some infinite spirals , remain self - similar with more complicated motions including rotation or combinations of rotation , shrinking or expansion , and translation . for networks of smooth curves , meeting in threes at junctions with angles of 2π / 3 , the self - similar shrinking solutions include a double bubble surrounding two equal areas , a lens shape ( vesica piscis ) bounded by two congruent arcs of circles together with two collinear rays having their apexes at the corners of the lens , and a " fish - shaped " network bounded by a line segment , two rays , and a convex curve . any other self - similar shrinking networks involve a larger number of curves . another family of networks grows and remains self - similar ; these are tree - like networks of curves , meeting at angles of 2π / 3 at triple junctions , asymptotic to a fan of two or more rays that meet at a common endpoint . the two - ray case of these shapes is an unbounded smooth curve ; for three or more rays the evolution of these shapes may be defined using generalized variants of the curve - shortening flow such as the one for . a given fan of four or more rays may be asymptotic to more than one different solution of this type , so these solutions do not provide a unique definition for the curve - shortening flow starting from a fan of rays . ancient solutions an ancient solution to a flow problem is a curve whose evolution can be extrapolated backwards for all time , without singularities . all of the self - similar solutions that shrink or stay the same size rather than growing are ancient solutions in this sense ; they can be extrapolated backwards by reversing the self - similarity transformation that they would undergo by the forwards curve - shortening flow . thus , for instance , the circle , grim reaper , and abresch – langer curves are all ancient solutions . the only closed curves other than the circle and abresch – langer curves that form ancient solutions are a class of curves called the ovals after the work of ( 1992 ) . these curves may be parameterized by specifying their curvature as a function of the tangent angle using the formula and have as their limiting shape under reverse evolution a pair of grim reaper curves approaching each other from opposite directions . in the cartesian coordinate system , they may be given by the implicit curve equation in the physics literature , the same shapes are known as the model . for more general classes of curves , such as the graphs of functions , a more diverse collection of ancient solutions is known . numerical approximations in order to compute the curve - shortening flow efficiently , both a continuous curve and the continuous evolution of the curve need to be replaced by a discrete approximation . front tracking front tracking methods have long been used in fluid dynamics to model and track the motion of boundaries between different materials , of steep gradients in material properties such as weather fronts , or of shock waves within a single material . these methods involve deriving the equations of motion of the boundary , and using them to directly simulate the motion of the boundary , rather than simulating the underlying fluid and treating the boundary as an emergent property of the fluid . the same methods can also be used to simulate the curve - shortening flow , even when the curve undergoing the flow is not a boundary or shock . in front tracking methods for curve shortening , the curve undergoing the evolution is as a polygon . the finite difference method is used to derive formulas for the approximate normal vector and curvature at each vertex of the polygon , and these values are used to determine how to move each vertex in each time step . in some cases the normal motion of the points is combined with a tangential motion to spread them more uniformly around the curve . merriman , bence & osher ( 1992 ) write that these methods are fast and accurate but that it is much more complicated to extend them to versions of the curve - shortening flow that apply to more complicated inputs than simple closed curves , where it is necessary to deal with singularities and changes of topology . for most such methods , cao ( 2003 ) warns that " the conditions of stability cannot be determined easily and the time step must be chosen ad hoc . " another finite differencing method by crandall & lions ( 1996 ) modifies the formula for the curvature at each vertex by adding to it a small term based on the laplace operator . this modification is called elliptic regularization , and it can be used to help prove the existence of generalized flows as well as in their numerical simulation . using it , the method of crandall and lions can be proven to converge and is the only numerical method listed by cao that is equipped with bounds on its convergence rate . for an empirical comparison of the forward euler , backward euler , and more accurate crank – nicolson finite difference methods , see & ( 2009 ) . convolution mokhtarian & mackworth ( 1992 ) suggest a numerical method for computing an approximation to the curve - shortening flow that maintains a discrete approximation to the curve and alternates between two steps : the current curve by placing new sample points at a uniform spacing , as measured by normalized arc length . the locations of the points with a gaussian function with small standard deviation , in effect replacing each point 's location with a weighted average of the locations of nearby points along the curve , with gaussian weights . the standard deviation of the gaussian should be chosen to be small enough that , after this step , the sample points still have nearly - uniform spacing . as they show , this method converges to the curve - shortening distribution in the limit as the number of sample points grows and the normalized arc length of the convolution radius shrinks . median filtering merriman , bence & osher ( 1992 ) describe a scheme operating on a two - square grid – effectively an array of pixels . the curve to be evolved is represented by assigning the value 0 ( black ) to pixels exterior to the curve , and 1 ( white ) to pixels interior to the curve , giving the indicator function for the interior of the curve . this representation is updated by alternating two steps : the pixelated image with a heat kernel to simulate its evolution under the heat equation for a short time step . the result is a gaussian blur of the image , or equivalently the weierstrass transform of the indicator function , with radius proportional to the square root of the time step . set every pixel with numerical value less than 1 / 2 to 0 , and every pixel with numerical value greater than 1 / 2 to 1 , the image back to its original values in new positions . in order for this scheme to be accurate , the time step must be large enough to cause the curve to move by at least one pixel even at points of low curvature , but small enough to cause the radius of blurring to be less than the minimum radius of curvature . therefore , the size of a pixel must be o ( min κ / max ) , small enough to allow a suitable intermediate time step to be chosen . the method can be generalized to the evolution of networks of curves , meeting at junctions and dividing the plane into more than three regions , by applying the same method simultaneously to each region . instead of blurring and , this method can alternatively be described as applying a median filter with gaussian weights to each pixel . it is possible to use kernels other than the heat kernel , or to adaptively refine the grid so that it has high resolution near the curve but does not waste time and memory on pixels far from the curve that do not contribute to the outcome . instead of using only the two values in the pixelated image , a version of this method that uses an image whose pixel values represent the signed distance to the curve can achieve accuracy and require lower resolution . applications annealing metal sheets an early reference to the curve - shortening flow by william w. mullins ( 1956 ) motivates it as a model for the physical process of annealing , in which heat treatment causes the boundaries between grains of crystallized metal to shift . unlike soap films , which are forced by differences in air pressure to become surfaces of constant mean curvature , the grain boundaries in annealing are subject only to local effects , which cause them to move according to the mean curvature flow . the one - dimensional case of this flow , the curve - shortening flow , corresponds to annealing sheets of metal that are thin enough for the grains to become effectively two - dimensional and their boundaries to become one - dimensional . shape analysis in image processing and computer vision , mokhtarian & mackworth ( 1992 ) suggest applying the curve - shortening flow to the outline of a shape derived from a digital image , in order to remove noise from the shape and provide a scale space that provides a simplified description of the shape at different levels of resolution . the method of mokhtarian and mackworth involves computing the curve - shortening flow , tracking the inflection points of the curve as they progress through the flow , and drawing a graph that plots the positions of the inflection points around the curve against the time parameter . the inflection points will typically be removed from the curve in pairs as the curve becomes convex ( according to the gage – hamilton – grayson theorem ) and the lifetime of a pair of points corresponds to the salience of a feature of the shape . because of the resampled convolution method that they describe for computing a numerical approximation of the curve - shortening flow , they call their method the resampled curvature scale space . they observe that this scale space is invariant under euclidean transformations of the given shape , and assert that it uniquely determines the shape and is robust against small variations in the shape . they compare it experimentally against several related alternative definitions of a scale space for shapes , and find that the resampled curvature scale space is less computationally intensive , more robust against noise , and less strongly influenced by small - scale shape differences . reaction - diffusion in reaction – diffusion systems modeled by the allen – cahn equation , the limiting behavior for fast reaction , slow diffusion , and two or more local minima of energy with the same energy level as each other is for the system to settle into regions of different local minima , with the fronts delimiting boundaries between these regions evolving according to the curve - shortening flow . cellular automata in a cellular automaton , each cell in an infinite grid of cells may have one of a finite set of states , and all cells update their states simultaneously based only on the configuration of a small set of neighboring cells . a life - like cellular automaton rule is one in which the grid is the infinite square lattice , there are exactly two cell states , the set of neighbors of each cell are the eight neighbors of the moore neighborhood , and the update rule depends only on the number of neighbors with each of the two states rather than on any more complicated function of those states . in one particular life - like rule , introduced by gerard and called the twisted majority rule or annealing rule , the update rule sets the new value for each cell to be the majority among the nine cells given by it and its eight neighbors , except when these cells are split among four with one state and five with the other state , in which case the new value of the cell is the minority rather than the majority . the detailed dynamics of this rule are complicated , including the existence of small stable structures . however , in the aggregate ( when started with all cells in random states ) it tends to form large regions of cells that are all in the same state as each other , with the boundaries between these regions evolving according to the curve - shortening flow . construction of closed geodesics the curve - shortening flow can be used to prove an isoperimetric inequality for surfaces whose gaussian curvature is a non - increasing function of the distance from the origin , such as the paraboloid . on such a surface , the smooth compact set that has any given area and minimum perimeter for that area is necessarily a circle centered at the origin . the proof applies the curve - shortening flow to two curves , a metric circle and the boundary of any other compact set , and compares the change in perimeter of the two curves as they are both reduced to a point by the flow . the curve - shortening flow can also be used to prove the theorem of the three geodesics , that every smooth riemannian manifold topologically equivalent to a sphere has three geodesics that form simple closed curves . related flows other geometric flows related to the curve - shortening flow include the following ones . for simulating the behavior of crystals or other anisotropic materials , it is important to have variants of the curve - shortening flow for which the speed of flow depends on the orientation of a curve as well as on its curvature . one way of doing this is to define the energy of a curve to be the integral of a smooth function γ of its normal vectors , and form the gradient flow of this energy , according to which the normal speed at which the curve flows is proportional to an anisotropic analog of the curvature . this flow can be simulated by the curve as a polygon . in numerical experiments , initial curves appear to converge to the wulff shape for γ before shrinking to a point . alternatively , one can let the curve flow with speed a ( θ ) κ + b ( θ ) where κ is the ( usual ) curvature and a and b are smooth functions of the orientation θ . when a ( θ + π ) a ( θ ) and b ( θ + π ) − b ( θ ) ( so that the flow is invariant under point reflection ) , the resulting flow can be shown to obey the avoidance principle and an analog of the gage – hamilton – grayson theorem . the affine curve - shortening flow was first investigated by alvarez et al . ( 1993 ) and sapiro & tannenbaum ( 1993 ) . in this flow , the normal speed of the curve is proportional to the cube root of the curvature . the resulting flow is invariant ( with a corresponding time scaling ) under the affine transformations of the euclidean plane , a larger symmetry group than the similarity transformations under which the curve - shortening flow is invariant . under this flow , an analogue of the gage – hamilton – grayson theorem applies , under which any simple closed curve eventually becomes convex and then converges to an ellipse as it collapses to a point . transforming a curve with equal normal speeds at all points has been called the transform . curves evolved in this way will in general develop sharp corners , the trace of which forms the medial axis of the curve . a closely related curve evolution which moves straight segments of a polygonal curve at equal speeds but allows concave corners to move more quickly than unit speed instead forms a different type of topological skeleton of the given curve , its straight skeleton . for surfaces in higher dimensions , there is more than one definition of curvature , including extrinsic ( embedding - dependent ) measures such as the mean curvature and intrinsic measures such as the gaussian curvature and ricci curvature . correspondingly , there are several ways of defining geometric flows based on curvature , including the mean curvature flow ( in which the normal speed of an embedded surface is its mean curvature ) , the ricci flow ( an intrinsic flow on the metric of a space based on its ricci curvature ) and the willmore flow ( the gradient flow for an energy functional combining the mean curvature and gaussian curvature ) . the curve - shortening flow is a special case of the mean curvature flow for one - dimensional curves . inspired by the curve - shortening flow on smooth curves , researchers have studied methods for flowing polygons so that they stay polygonal , with applications including pattern formation and synchronization in distributed systems of robots . length - preserving polygonal flows can be used to solve the carpenter 's rule problem . in computer vision , the active contour model for edge detection and image segmentation is based on curve shortening , and evolves curves based on a combination of their curvature and the features of an image .