Code for drawing simplicial complexes in arbitrary dimensions.
Code for drawing simplicial complexes in arbitrary dimensions. Basically a generalized version of graph drawing for meshes and tetrahedra which works in 2D, 3D, and higher dimensions.
First install the library like this:
npm install simplicial-layout
Then you can create a graph layout as follows:
var MeshLayout =var l = 0 1 2 2 3 345 2lconsole
cells- A simplicial complex
dimension- The dimension of the space to embed the complex in (default 2)
options- Extra options for the layout. Currently supports the following:
radius- Radius for each edge. Default 2
Steps the mesh solver a finite amount
Solves the mesh layout completely
Positions of the vertices
(c) 2013 Mikola Lysenko. BSD