Subdivides a 3d path into spline points
npm install spline-points --saveconst splinePoints = require('spline-points')
const points = [[0, 0, 0], [1, 0, 0], [2, 1, 0]]
const smoothPoints = splinePoints(points, { segmentLength: 0.1 })
// smoothPoints = [[0, 0, 0], [0.09, -0.01, 0], [0.19, -0.02, 0], ...]cd spline-points/example
npm install
budo index.js --openvar splinePoints = require('spline-points')Subdivides a 3d path into spline points
points: Array of vec3 - path of 3d points [x, y, z] to subdivideoptsclosed: Bool - is the path closed?,falsesegmentLength: Number - distance between generated points
MIT, see LICENSE.md for details.
