triangulate-hypercube

WebJar for triangulate-hypercube

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

triangulate-hypercube
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

triangulate-hypercube
WebJar for triangulate-hypercube
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/triangulate-hypercube

Download triangulate-hypercube

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/triangulate-hypercube/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>triangulate-hypercube</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/triangulate-hypercube/
implementation 'org.webjars.npm:triangulate-hypercube:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/triangulate-hypercube/
implementation ("org.webjars.npm:triangulate-hypercube:1.0.1")
'org.webjars.npm:triangulate-hypercube:jar:1.0.1'
<dependency org="org.webjars.npm" name="triangulate-hypercube" rev="1.0.1">
  <artifact name="triangulate-hypercube" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='triangulate-hypercube', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "triangulate-hypercube" % "1.0.1"
[org.webjars.npm/triangulate-hypercube "1.0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : gamma jar [0.1.0,0.2)
org.webjars.npm : permutation-rank jar [1.0.0,2)
org.webjars.npm : permutation-parity jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

triangulate-hypercube

Triangulates an n-dimensional hypercube into a collection of simplices.

Note: In high dimensions, this triangulation is not very efficient. Pull requests welcome.

Example

var triangulateCube = require("triangulate-hypercube")

console.log(triangulateCube(2))

Output:

[ [ 3, 2, 0 ], [ 0, 1, 3 ] ]

Install

npm install triangulate-hypercube

API

require("triangulate-hypercube")(dimension)

Computes a decomposition of an n-dimensional hypercube into simplices using a naive permutation based algorithm.

  • dimension is an integer representing the dimension of the hypercube to triangulate

Returns A list of n dimensional simplices which subdivide the cube.

Credits

(c) 2014 Mikola Lysenko. MIT License

Versions

Version
1.0.1