GitHunt
LI

lischilpp/marching-squares-algorithm-visualizer

This tool provides a visual representation of the marching squares algorithm applied to various volume functions and grid sizes.

Marching Squares Algorithm Visualizer

HTML Badge CSS Badge JavaScript Badge

A tool for visualizing the Marching Squares Algorithm

Live Demo

About The Project

The marching cubes algorithm is a technique in Computer Graphics used to generate triangles that form smooth surfaces from 3D volume density values. Its 2D counterpart, the marching squares algorithm, operates similarly but on 2D scalar fields.

This tool offers an interactive visualization of the marching squares algorithm applied to various volume functions and grid sizes. It is designed to help you gain a deeper understanding of the algorithm through hands-on exploration.

The included volume functions are: Sine 2D Terrain, Sine 1D Terrain, Circle, and Square.

Screenshots

The tool using default parameters

Languages

JavaScript83.4%HTML10.5%CSS6.1%

Contributors

MIT License
Created June 23, 2024
Updated December 5, 2024