高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】stroking An Oddbellipse 9arc0
stroking an oddbellipse (arc)
stroking an oddbellipse (arc)
i want to retrieve the wcs values for the parameters centerx, centery, lmajaxis, lminaxis, sweepang, startang, rotangle - so that i can stroke the elliptical arc. i get these parameters using appropriate methods on the oddbellipse, but when the arc has a normal vector of (0, 0, -1) - my stroking algorithm fails. is there any stroking function available in dwgdirect that can stroke the oddbellipse entity? has anyone else faced a similar problem?
thanks,
saroja
probably your algorithm do not take into consideration that angles are measured ccw around normal. if normal is (0,0,-1) they are measured cw around z axis (ccw around normal).
you can get the points this way:
code:
oddbellipseptr pdbell;
odgeelliparc3d geellipse(pdbell->center(),
pdbell->majoraxis(), pdbell->minoraxis(),
pdbell->majorradius(), pdbell->minorradius());
odgepoint3darray arrpoints;
geellipse.getsamplepoints(pdbell->startparam(), pdbell->endparam(), deviation, arrpoints);
);
sergey slezkin
last edited by mmuratov; 2nd november 2004 at 06:00 amfff">.
getsamplepoints works great!
sergey, thanks for the prompt reply. getsamplepoints works fine.
|