An open API service indexing awesome lists of open source software.

https://github.com/sorrowfeng/spline_library

解析样条曲线
https://github.com/sorrowfeng/spline_library

cpp qt

Last synced: 21 days ago
JSON representation

解析样条曲线

Awesome Lists containing this project

README

          

# spline_library

用于解析样条曲线,通过输入控制点,输出样条的QPainterPath

# 示例
```cpp
#include "splinehelper.h"

int main()
{
std::vector pointList; // 输入的控制点
SplineHelper spline(pointList, TypeCubicBSpline);
QPainterPath path = spline.getSplinePath();

return 0;
}
```

# 使用效果
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/0fb47fd4a15643de8cfbb2bd0a67cf78.png)