primitives, i.e. create an array of 2D vertices and specify lines or polygons with short integer offsets into the array. References External links Marching Square Matlab algorithm – An easy to understand open-source marching square algorithm. implementation in Java Marching Squares code in Java. Given a 2D data set and thresholds, returns GeneralPath[] for easy plotting. Meandering Triangles explanation and sample Python implementation. Marching Squares code in C – A single header library for marching squares that can export triangle meshes for easy rendering. Computer graphics algorithms