Splines
- Dominant language
- C#
- Stars
- 6
- Forks
- 0
- Avg merge
- 1h 1m
- Merged PRs (30d)
- 2
Description
Natural cubic splines
Each control point should consist of a 3D position.
Point[] Points - Property
AddPoint - method
RemovePoint - method
The points of the spline should be represented as a linked list and be ordered. This way the first and last points of the spline can be accessed by finding the 0 and Lenght - 1 indexes.
The AddPoint and RemovePoint should insert into the array moving all items by one depending on the operation.
If ONLY two points exist in the spline and a point is removed, the whole spline is removed.
TODO: Resolution controller for the spline. Minimum resolution is 1.
Splines should be rendered as 2D segments between points. Each segment is a quad when rendered using a resolution of 1. When the resolution is 2, each segment should be rendered as two quads and so on.
Contributor guide
Assessment
This issue has not been assessed yet.