block by kristw 6b96f6ae9b5fafb240efd8f83fdfd865

Smoother polygon transitions

Full Screen

Smooth transitioning US tour in the same vein as this example. Steps:

  1. Compares both shapes and adds evenly-spaced points to whichever polygon has fewer so that both have the same number of points
  2. Picks the winding of the first polygon that minimizes the sum of the squared distances between point pairs

Some possible improvements:

States are preprojected to appropriate State Plane projections and don’t include islands or multipart states (AK, HI, MI).

See also: Jigsaw morphing

forked from veltman‘s block: Smoother polygon transitions

index.html