高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】spline Isperiodic
spline: isperiodic
spline: isperiodic
hi,
i set a spline as below:
pspline->setnurbsdata(3, // degree
false, // rational
false, // closed
false, // periodic
m_controlpoints, // control points
m_knots, // knots
weights, // weights
1.0000e-10, // control point tolerance
1.0000e-10); // knot tolerance
when i read the same spline data from the database(just after writing it) using:
pspline->getnurbsdata(degree, rational, closed, periodic, ctrlpts, knots, weights, tol);
then the value of periodic comes out to be "true"(instead of "false").
why is this so?
i am using dwgdirect 1.13.2.
thanks
alex
parameters "isclosed" and "isperiodic" are dummy and exists in this function only for compatibility with objectarx. in fact, these flags can be computed from nurbs data (knots, control points, degree).
sincerely yours,
george udov
that clears a lot of things for me..thanks
|