SkillAgentSearch skills...

ParametricCurve

Implement of Philip J. Schneider's "An Algorithm for Automatically Fitting Digitized Curves". Adaptively fit a set of 2D points with one or more cubic Bezier curves.

Install / Use

/learn @tanzby/ParametricCurve
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

ParametricCurve

ParametricCurve implements two kinds of curve, including

  • N order Bezier Curve
  • Cubic PieceWise Spline

Both of them inherit from Curve, which provides

  • Compute the n-order derivative at a point
  • Compute the parameter position (t) closest to a point on the curve
  • Sample points with equal arc distance by numerical method

For more details, read the codes of examples, a simple description about N-orders Bezier Curve can be found in https://zhuanlan.zhihu.com/p/130247362

usage

ParametricCurve only relies on Eigen, just copy the include files to your project.

reference

  • https://github.com/volkerp/fitCurves
  • https://kluge.in-chemnitz.de/opensource/spline/
View on GitHub
GitHub Stars45
CategoryDevelopment
Updated2mo ago
Forks16

Languages

C++

Security Score

90/100

Audited on Jan 18, 2026

No findings