Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
incremental-convex-hull
Advanced tools
Computes the convex hull of a collection of points in general position by incremental insertion. No attempt is made to handle degeneracies.
This module is meant to be used internally by other modules for calculating convex hulls and Delaunay triangulations. You probably shouldn't call it directly unless you know what you are doing. Instead, there will (eventually) be a wrapper over this module that handles all the special cases and correctly generates a convex hull.
var ch = require("incremental-convex-hull")
var points = [
[0, 0, 0],
[0, 0, 1],
[0, 1, 0],
[1, 0, 0],
[1, 1, 1]
]
console.log(ch(points))
Output:
[ [ 0, 2, 3 ],
[ 1, 0, 3 ],
[ 0, 1, 2 ],
[ 2, 4, 3 ],
[ 4, 1, 3 ],
[ 1, 4, 2 ] ]
npm install incremental-convex-hull
require("incremental-convex-hull")(points[, randomInsert])
Constructs a triangulation of the convex hull of points
by incremental insertion.
points
is a list of pointsrandomInsert
is a flag, which if set uses a randomized jump and walk instead of walking from the last inserted facet.Returns A list of the boundary cells of the convex hull of the point cloud.
Notes This module works in any dimension greater than 2, though becomes pretty slow after 5d.
(c) 2014 Mikola Lysenko. MIT License
FAQs
Incremental n-dimensional convex hull algorithm
The npm package incremental-convex-hull receives a total of 34,342 weekly downloads. As such, incremental-convex-hull popularity was classified as popular.
We found that incremental-convex-hull 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.