stravid/slotcars — Issue #65: Rasterize the catmull-rom path to points for fast calculations
Author: DominikGuzei
Created: 2012-03-08 10:51:29+00:00
State: open
Labels: chore

When the builder supports creation of catmull-rom splines we need to rasterize the path into many points to make it fast to caluclate the getPointAtLength and getTotalLength properties of the track.

This should be done by the track model internally so that nothing changes for the outside

* raphaelPath property on model stays the same (uses catmull-rom and only few points)
* getTotalLength and getPointAtLength uses the internal rasterized version of the path