dotnet add package Spline
dotnet run --project samples/DemoSpline/DemoSpline.csproj
using Spline;
using SplinePath = global::Spline.Spline;
var controlPoints = new[]
{
new SplinePath.CP(new Vec2(0, 0), "corner", null, null),
new SplinePath.CP(new Vec2(50, 20), "smooth", null, null),
new SplinePath.CP(new Vec2(100, 0), "corner", null, null),
};
var spline = new SplinePath(controlPoints, isClosed: false);
spline.Solve();
spline.ComputeCurvatureBlending();
string svgPath = spline.RenderSvg();
The resulting SVG path data can be used for rendering, export, diagnostics, or further geometry processing.
For a broader package walkthrough, continue with Using Spline.