![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 03:34 AM. |