Curve Editor (splines)

Minimalist javascript tool to experiment with different algorithms for spline creation.

Algorithms implemented by myself:

  • DeCasteljau
  • BBForm
  • MidPoint Subdivision
  • Polynomial Curve
  • Cubic Spline

This project was created as part of my Curves and Surfaces course at DigiPen Institute of Technology, so feel free to open and see the code in javascript, but have in mind that all the code is copyright of DigiPen.

How to see the code? Go to Developer Tools (or F12) and then go to the tab “Sources” (Chrome) or “Debugger” (MS Edge). There, find the Projects.js file. You should see something like this:

 

source

 

 

You can try the editor on the following link -> http://mariojulio.com/myworks/curves/index.html

 

Or you can just take a look at some screenshots here:

DeCasteljau Algorithm

DeCastelJau (less efficient) / BBForm (more efficient) Approximation Algorithms

midpoint

Midpoint Subdivision Approximation Algorithm

Polynomial Curve Interpolation Algorithm

Polynomial Curve Interpolation Algorithm

Cubic Spline Interpolation Algorithm

Cubic Spline Interpolation Algorithm

Previous Work

Project: Get The Money (Homebrew)

Next work

MJEngine