查看单个帖子
旧 2009-05-04, 07:24 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】deviation

deviation
deviation
environment:
windows xp pro
visual studio .net 2003
dwgdirect 1.11.01.00
i've got an application based on odvectorizeex, and i'm using the deviation() method that appears in exsimpleview to try to control the smoothness of eg. ellipses (which have been exploded using odgigeometrysimplifier). the problem is that it doesn't seem to work. i've tried returning various values from deviation() up to 1000 and i've checked that the function is definitely getting called, but it doesn't seem to affect how many lines are used to render the ellipse.
any ideas?

could you post code that you use to set deviation.
there are two functions to set up deviation:
void odgigeometrysimplifier::setdeviation(const odgideviation* pdeviation);
void odgigeometrysimplifier::setdeviation(const odgedoublearray& deviations);
by default odgigeometrysimplifier uses deviation that is set up using first function.
also you can call function
double odgigeometrysimplifier::deviation(const odgideviationtype type, const odgepoint3d& point) const;
somewhere in your odgigeometrysimplifier inheritant and check if it returns correct value.
sincerely yours,
george udov

thanks george.
my problem was that i wasn't calling odgigeometrysimplifier::setdeviation(...) with my exsimpleview class.
works fine now.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)