/wasm-algeo-demos

Primary LanguageJavaScriptApache License 2.0Apache-2.0

wasm-algeo-demos

A collection of math demos.

Technology

Written in rust and javascript.

Under the hood, the computations are done by the rust crate algeo via web assembly. Then, javascript picks up the crunched numbers and creates a visualization using Three JS.

Build/Run Locally

Make sure you have wasm-pack installed. You'll also need node >= v12.13.0 to use the webpack-dev-server to run locally.

To compile the rust to webassembly (and do all the good wasm-bindgen stuff), in the root directory run

wasm-pack build

If you want to run the project locally, first install the dependencies by going to www/ and running

npm install

Finally, to host the server locally, run

npm run start

Plans

  • Cones
    • Dual cones
    • Gordan's lemma/generators of affine monoid
  • Toric Varieties
    • Resolution of singularities for 2D toric surfaces on the level of cones
    • Embed affine toric variety in 3D space when possible by computing presentation of affine monoid
  • Rendering
    • Implicit surfaces via marching cubes

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.