Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (3 sloc) 475 Bytes

Contour Plots


Computes a contour for a given grid function using the marching squares algorithm. Returns the contour polygon as an array of points. The grid function takes two arguments, x and y, and returns true if the specified point is inside the contour, and false for points outside the contour. The contour plugin can also take an optional starting point [x, y] on the grid.