几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】spline Isperiodic (http://www.dimcax.com/hust/showthread.php?t=18653)

yang686526 2009-05-07 04:18 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 12:10 AM.