c++ - 将鼠标点转换为二次 B 样条

标签 c++ c opengl

我正在编写绘图程序。我正在尝试采用有序列表鼠标位置,并近似平滑的二次 BSpline 曲线。有谁知道如何做到这一点?

谢谢!

最佳答案

"B-spline curve fitting based on adaptive curve refinement using dominant points" by Park & Lee"Fair interpolation and approximation of B-splines by energy minimization and points insertion" by Vassilev似乎正在解决这个问题。第一个链接上还有一些引用资料应该对您有帮助。

将高曲率区域的数据点转换为控制点并去除小曲率区域的数据点是一种通用方法。

关于c++ - 将鼠标点转换为二次 B 样条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3291218/

相关文章:

c++ - != 运算符重载的参数问题

c++ - 如何在 mongocxx (c++) 中抑制字段?

c++ - 在 C++ 中,如果 "int a = 3; int* p = &a;",那么为什么 "const int* &pp = p"是不允许的,而 "const int* const &pp = p"是允许的?

c - for循环之谜

c - 3D ASCII 正弦波发生器产生奇怪的正弦波

c++ - 灰度中的 glDrawPixels?

c++ - 在 2D 纹理之上绘制基元 ( GL_QUADS ) - 没有四边形渲染,纹理颜色改变

c++ - 覆盖动态分配的内存-C++

c - tcsh 时间和 makefile 时间明显不同

java - 我需要在 2D Java 模拟游戏中使用 OpenGL 吗?