ecurtiss / CatRom

Creates Catmull-Rom splines for Roblox
https://ecurtiss.github.io/CatRom/
Mozilla Public License 2.0
45 stars 11 forks source link

Support adding and removing point(s) from a spline #13

Open ecurtiss opened 2 months ago

ecurtiss commented 2 months ago

This would be a substantial performance improvement over the current behavior, which is to reconstruct the entire spline when its control points change. Care would need to be taken if the user had already called PrecomputeUnitSpeedData() or PrecomputeRMFs().

One use case for this is adding and removing points in a curve editor plugin such as https://devforum.roblox.com/t/2983354.