https://github.com/sorrowfeng/spline_library
解析样条曲线
https://github.com/sorrowfeng/spline_library
cpp qt
Last synced: 21 days ago
JSON representation
解析样条曲线
- Host: GitHub
- URL: https://github.com/sorrowfeng/spline_library
- Owner: sorrowfeng
- Created: 2023-02-03T01:41:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T05:55:33.000Z (over 2 years ago)
- Last Synced: 2024-03-14T06:41:20.099Z (over 2 years ago)
- Topics: cpp, qt
- Language: C++
- Homepage:
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
}
```
# 使用效果
