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

simplicial-disjoint-union

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplicial-disjoint-union

Concatenates two simplicial complexes

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

simplicial-dijsoint-union

Computes the disjoint union of two simplicial complexes. You can use this to do stuff like concatenate meshes.

Install

npm install simplicial-disjoint-union

Usage

var disjointUnion = require("simplicial-disjoint-union")

//Example:
//
//    Combine a bunny and teapot into a single mesh
//

//First read in meshes
var bunny = require("bunny")
  , teapot = require("teapot")

//Then combine positions
var combinedPos = bunny.positions.concat(teapot.positions)

//Finally combine cells using simplicial-disjoint-union
var combinedCells = disjointUniont(bunny.cells, teapot.cells)

require("simplicial-disjoint-union")(a, b[, a_verts])

Joins two simplicial complexes together.

  • a and b are the complexes we are going to join
  • a_verts an optional parameter giving the number of vertices in a if not specified, is computed dynamically.

Returns The cells in a concatenated to the cells in b, with the vertices in b relabeled by those in a's length.

Keywords

FAQs

Package last updated on 10 Apr 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