Skip to content

shengt/cardinal-spline-3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardinal spline

Generate cardinal splines in 2 or 3 dimentions

2d

(red boxes show control points)

3d

(rendered using npmcad)

example

var spline = require('cardinal-spline')

var points = spline([ //array of control points
    [x,y,z],...
  ],
  0.5, //tension
  20 //number of segments between each control point
)

License

adapted from epistemex/cardinal-spline-js

Released under MIT license. You can use this class in both commercial and non-commercial projects provided that full header (minified and developer versions) is included.

© 2013-2017 Epistemex

Epistemex

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%