
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
mesh-geodesic
Advanced tools
Computes the geodesic distance to all vertices in a triangulated mesh from a given starting vertex.
First install using npm:
npm install mesh-geodesic
Then call it as follows:
var bunny = require("bunny")
console.log(require("mesh-geodesic")(bunny.cells, bunny.positions, 0))
require("mesh-geodesic")(cells, positions, initialVertex[, maxDistance, tolerance, dual])Computes the geodesic distance to an initial vertex. Takes the following arguments:
cells: The cells of the meshpositions: The positions of the meshinitialVertex: Index of the starting vertexmaxDistances: (Optional) The total distance to travel to find all points. If not specified, is set to Infinitytolerance: (Optional) Accuracy of distance field. (Default 1e-4)dual: (Optional) Topological dual of mesh. Can be computed using require("simplicial-complex").dualReturns an object containing the distances to all vertices from initialVertex
This package was written back when I first started learning JavaScript, and probably has several bugs. It is also very slow and uses the outdated vows test harness (whereas if I were to do it again today, I would use tap). Nonetheless, it still should compute geodesics for you to some (low) level of accuracy.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Approximate geodesic distance for triangulated meshes
We found that mesh-geodesic 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
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.