Package Exports
- pointcloud-3d
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pointcloud-3d) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pointcloud-3d
Reduce 3d point clouds using random subsampling or voxel grid sampling
Reduce point cloud by subsampling
import { reduceSampling } from 'pointcloud-3d'
const data = [
[0.1, 0.2, 0.3],
[0.3, 0.2, 0.1],
[0.2, 0.1, 0.3],
[0.1, 0.2, 0.3],
[0.3, 0.2, 0.1],
[0.2, 0.1, 0.3]
]
const reduced = reduceSampling(data, 3)
Reduce point cloud by voxel grid sampling
import { reduceVoxel } from 'pointcloud-3d'
const data = [
[0.1, 0.2, 0.3],
[0.3, 0.2, 0.1],
[0.2, 0.1, 0.3],
[0.1, 0.2, 0.3],
[0.3, 0.2, 0.1],
[0.2, 0.1, 0.3]
]
const reduced = reduceVoxel(data, 0.1)