查看单个帖子
旧 2009-05-07, 05:18 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)