
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
implicit-mesh
Advanced tools
create simplicial complex meshes from an implicit function
var build = require('implicit-mesh')
var mesh = build(64, function (x,y,z) {
return x*x + y*y + z*z - 0.2
})
console.log(JSON.stringify(mesh))
or using a shader:
var build = require('implicit-mesh/shader')
var mesh = build(64, `
float surface (vec3 p) {
return length(p) - 0.5;
}
`)
console.log(JSON.stringify(mesh))
either way, you can use meshview:
$ electron-spawn shader.js | meshview
$ node js.js | meshview

var js = require('implicit-mesh')
var shader = require('implicit-mesh/shader')
Build a 3d mesh with resolution opts.size from an implicit function
fn(x,y,z).
If opts is a number of array, it is interpreted as the opts.size.
opts.size can be a number or an array of numbers, one for each coordinate.
The f(x,y,z) coordinates are in the domain [-1,1] and the resulting mesh
coordinates are in the range [-1,1] in each dimension.
simplicial complex meshes have:
mesh.positions - an array of position arraysmesh.cells - an array of arrays of position indicies comprising a faceTo get the surface normals you can use the [angle-normals][2] package:
var angleNormals = require('angle-normals')
var normals = angleNormals(mesh.cells, mesh.positions)
Build a mesh from a glsl function defined in the string src and:
opts.size - resolution to sample the implicitopts.precision - default: 'medium'You should define a function float surface(vec3 pos).
npm install implicit-mesh
BSD
FAQs
create simplicial complex meshes from an implicit function
The npm package implicit-mesh receives a total of 22 weekly downloads. As such, implicit-mesh popularity was classified as not popular.
We found that implicit-mesh 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.