1 unstable release

new 0.1.0 Nov 28, 2024

#27 in Visualization

Custom license

6.5MB
3K SLoC

Polyblade

Cross-platform application for animating Conway Polyhedron Operations

Polyblade makes it easy to visualize and interact with Polyhedra. I believe that the relationships between both primitive and complex polytopes can be more intuitively understood when experienced visually, and this software aims to demonstrate that.

In particular, emphasis has been placed on making smooth animations for the transitions represented by Conway Polyhedron Notation.

animated Polyblade runs on WGPU and Iced.
Using the PST distance algorithm for efficient all pairs shortest paths in the unweighted undirected graphs represented by polyhedra, none of the vertex position data is deterministic. Instead, this distance matrix is used to create spring forces between every node pair $v_i, v_j$ where $v_n \in G$. Proportional to their distance in the graph structure $G$, the springs inflate the polyhedron to proportional size, allowing us to visualize these strucutres even when they break convexity.

To run this software, simply clone the repository and use cargo run --release. The webgl demo is available, but is notably less performant than native code.

Conway Roadmap

  • Ambo
  • Kis
  • Truncate
  • Ortho
  • Bevel
  • Expand
  • Snub
  • Join
  • Zip
  • Gyro
  • Meta
  • Needle

Other goals

  • Replace all hardcoded presets with prisms, antiprisms, and pyramids that have undergone modification.
  • Implement Vertex Coloring and Edge Coloring
  • Fix Fibonnaci lattice distribution for new shapes
  • Tesselations / tilings using Wythoff
  • "Undo" button
  • Save and load animations and cycles of Transactions
  • Schlegel diagrams
  • Color pickers
  • Pokedex entries for polyhedra, point users to wikipedia or polytope wiki when they stumble onto a known entry
    • Basic functionality
    • Switch from RON to JSON
    • Expand pokedex to include more shapes and improve overlap on isomorphic conway strings
    • Fix pokedex on WASM
  • Create WASM deployment and add to website as git submodule
    • Fix time on web for dual and related transitions
    • WebGL compat
    • WebGPU compat
  • Setup some basic CI integrations

Dependencies

~46–84MB
~1.5M SLoC