|
◆ cubicSplinesBox()
void mgnear::cubicSplinesBox |
( |
Box2d & |
box, |
|
|
int |
n, |
|
|
const Point2d * |
knots, |
|
|
const Vector2d * |
knotvs, |
|
|
bool |
closed = false , |
|
|
bool |
hermite = true |
|
) |
| |
|
static |
计算三次样条曲线的绑定框
- 参数
-
[out] | box | 绑定框 |
[in] | n | 三次样条曲线的型值点的点数 |
[in] | knots | 型值点坐标数组,元素个数为n |
[in] | knotvs | 型值点的切矢量数组,元素个数为n |
[in] | closed | 是否为闭合曲线 |
[in] | hermite | 是否为Hermite曲线,不是则切矢加型值点直接形成Bezier段的控制点 |
- 参见
- mgcurv::cubicSplines, mgcurv::cubicSplinesIntersectBox
|