A rough and ready javascript implementation of the halfedge mesh data structure.