Gathering detailed insights and metrics for simplicial-complex-contour
Gathering detailed insights and metrics for simplicial-complex-contour
Gathering detailed insights and metrics for simplicial-complex-contour
Gathering detailed insights and metrics for simplicial-complex-contour
npm install simplicial-complex-contour
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Stars
7 Commits
5 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Jul 01, 2023
Latest Version
1.0.2
Package Id
simplicial-complex-contour@1.0.2
Size
4.04 kB
NPM Version
2.1.4
Node Version
0.10.26
Published on
Mar 24, 2015
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Finds a piecewise-linear isocontour on a simplicial complex using the marching simplex method.
1var extractContour = require('simplicial-complex-contour') 2var bunny = require('bunny') 3 4//Solve for the curve z=0 on the surface of the bunny 5var zvalues = bunny.positions.map(function(p) { 6 return p[2] 7}) 8var curve = extractContour(bunny.cells, zvalues, 0.0) 9 10//Unpack edges and positions of curve 11var curveEdges = curve.cells 12var curvePositions = curve.vertexWeights.map(function(w,i) { 13 var a = bunny.positions[curve.vertexIds[i][0]] 14 var b = bunny.positions[curve.vertexIds[i][1]] 15 16 return [ 17 w * a[0] + (1 - w) * b[0], 18 w * a[1] + (1 - w) * b[1], 19 w * a[2] + (1 - w) * b[2] 20 ] 21}) 22 23//Render the curve 24console.log({ 25 cells: curveEdges, 26 positions: curvePositions 27})
npm install simplicial-complex-contour
require('simplicial-complex-contour')(cells, values[, level])
Computes a piecewise linear solution to the solution values=levels
cells
is an array of simplices represented by tuples of vertex indicesvalues
is an array of values defined at each vertex of the cell complexlevel
is the level at which the surface is extracted (Default 0)Returns An object with 3 properties
cells
which are the cells of the extracted isosurfacevertexIds
which is an array of pairs of vertex ids encoding the crossing edgesvertexWeights
which are linear weights applied to each vertex(c) 2014 Mikola Lysenko. MIT License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More