samzhang111 / curve-shortening

Curve shortening flows in Javascript

Home Page:https://sam.zhang.fyi/2020/10/29/curve-shortening/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curve-shortening flows in Javascript

This is a work-in-progress extension of the work currently on display on the blog.

For example, I chunked out the progress into different files, and implemented several more of the flows surveyed by Chow and Glickenstein. Note these are not live on the website yet. I also setup a very hacky guard against numerical issues (that doesn't work all the time), basically to bail when a particular edge stops decreasing between iterations.

The two main files are:

  • curveshortening.js (view logic)
  • curveshortening-algorithms.js (actual curve shortening algorithms)

About

Curve shortening flows in Javascript

https://sam.zhang.fyi/2020/10/29/curve-shortening/


Languages

Language:JavaScript 86.3%Language:HTML 13.7%