Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
spherical-triangulation
Advanced tools
Maintain a spherical triangulation under incremental vertex insertions
Maintains a spherical triangulation under incremental vertex insertions. This module is meant to be used internally for various convex hull implementations.
This module should work for spheres in any dimension > 1, though it is probably quite slow once you get past 4D spheres.
All computations are performed using adaptive/exact arithmetic.
var createTriangulation = require("spherical-triangulation")
var st = createTriangulation([
[1,0,0],
[0,1,0],
[0,0,1],
[-1,-1,-1]
])
st.insert([1,1,0])
st.insert([0,1,1])
st.insert([1,0,1])
npm install spherical-triangulation
var createTriangulation = require("spherical-triangulation")
var st = createTriangulation(simplex)
Creates an initial spherical triangulation from a simplex
simplex
is an array of points encoding a simplexReturns A new spherical triangulation object
st.insert(point)
Inserts a point into a spherical triangulation
point
is the point which is being insertedst.locate(point)
Locates a point in the triangulation
point
is a test pointReturns The cell containing point
st.points
The list of all points in the cell complex
st.cells
An array of all the cells in the complex. Cells are all positively oriented according to the convention used in robust-orientation
.
(c) 2014 Mikola Lysenko. MIT License
FAQs
Maintain a spherical triangulation under incremental vertex insertions
The npm package spherical-triangulation receives a total of 1 weekly downloads. As such, spherical-triangulation popularity was classified as not popular.
We found that spherical-triangulation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.