
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
splat-points-3d
Advanced tools
Splats a point cloud onto a volumetric grid.
var splat = require("splat-points-3d")
var pack = require("ndarray-pack")
var zeros = require("zeros")
var points = pack([
[1, 0, 0],
[0, 4, 0],
[0, 0, 8]
])
var weights = pack([
1,
2,
4
])
var grid = zeros([32, 32, 32])
splat(grid, points, weights, 3.0)
npm install splat-points-3d
require("splat-points-3d")(out, points, weights, radius)Splats a collection of points onto a 3D volumetric grid using Lanczos/sinc filtering. If you want a different kernel afterwards, you can apply a convolution via the FFT
out is a 3D ndarraypoints is a [n, 3] shape ndarray encoding the x/y/z grid coordinates of the points to splatweights is a [n] shape ndarrayradius is the radius of the point splat to draw(c) 2014 Mikola Lysenko. MIT License
FAQs
Splats a point cloud onto a 3D volume
We found that splat-points-3d 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.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.