几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】rouble When Creating Spline From Fit Points (http://www.dimcax.com/hust/showthread.php?t=18821)

yang686526 2009-05-07 05:18 PM

【转帖】rouble When Creating Spline From Fit Points
 
trouble when creating spline from fit points
trouble when creating spline from fit points
when creating an oddbspline from fit points (with or without) fit tangents, i get trouble. i use insertfitpointat( i, odgepoint3d) with index i from 0 to number of fit points.
1) calling reversecurve() on the new spline crashes the program
2) without this call, i get problem when calling the final writefile() :
there is an odassert in oddbsplineimpl
what's wrong with my use of these functions?
1. oddbspline::reversecurve() throws self-descriptive exception "enotimplemented".
2. it seems spline degree was not set. use oddbspline::setfitdata(). insertfitpointat() is intented to be used for editing not for creating a new entity.
sergey slezkin
quote:
originally posted by sergey slezkin
1. oddbspline::reversecurve() throws self-descriptive exception "enotimplemented".
2. it seems spline degree was not set. use oddbspline::setfitdata(). insertfitpointat() is intented to be used for editing not for creating a new entity.
thank you sergey:
you are right : spline degree was not set. to get rid of these problems i use the 'all in one' function setfitdata(...) and it works fine.
for my exoneration i am quite new with the library and some reflexes are still missing...
jean


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