Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simplicial-layout

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplicial-layout

Code for drawing simplicial complexes in arbitrary dimensions.

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

simplicial-layout

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.

Usage

First install the library like this:

npm install simplicial-layout

Then you can create a graph layout as follows:

var MeshLayout = require("simplicial-layout")

var l = new MeshLayout([[0, 1, 2], [2, 3], [3,4,5]], 2)
l.solve()
console.log(l.positions)

API

var MeshLayout = require("simplicial-layout")(cells[, dimension, options])

  • 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

layout.step(dt)

Steps the mesh solver a finite amount

layout.solve()

Solves the mesh layout completely

layout.positions

Positions of the vertices

Credits

(c) 2013 Mikola Lysenko. BSD

Keywords

FAQs

Package last updated on 24 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc