Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个需要将所有 NURB 曲线点存储在二维数组中的 c++ 程序。
为了描绘它,我将使用直线的简单示例:
[ ][ ][ ][ ] [ ][ ][ ][ ] [1][1][1][1] [ ][ ][ ][ ]
其中 1 代表这条曲线的坐标。
起初我一直在考虑在openGL中绘制nurb曲线,然后读取像素并将它们存储在二维数组中。但这似乎效率很低。
在给定所需参数的情况下,您是否知道在二维数组中生成此类曲线的更好方法?