
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
spatial-grid
Advanced tools
Spatial queries on simplicial complexes
First, install via npm:
npm install spatial-grid
Then you can create grids and query them as follows:
var mesh = require("bunny");
var grid = require("sptial-grid")
require("spatial-grid")(mesh, tolerance)Creates a spatial grid over the simplicial complex determined by [positions, cells] with cell size = tolerance.
mesh is an object containing the following fields
cells (or optionally faces): an array of cells, represented as indicespositions: An array of position vectorstolerance: The resolution of the cell complexReturns a spatial grid for the cell complex.
grid.closestCell(x)Returns information about the closest cell to the point x within the specified tolerance.
x is a pointReturns: If no cell is within tolerance, returns null. Otherwise, returns an object with the following parameters:
cell: The index of the cell within the complexpoint: The closest point to xsolution: The barycentric coordinates of the closest point to xvalue: The distance to the surface from xgrid.signedDistance(x)If mesh is orientable, returns the signed distance to the point x assuming x is within a specified distance to the boundary. Otherwise returns NaN.
(c) 2013 Mikola Lysenko. BSD
FAQs
Computes closest points to meshes and polygons
The npm package spatial-grid receives a total of 1 weekly downloads. As such, spatial-grid popularity was classified as not popular.
We found that spatial-grid 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.