高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】odgiworldgeometrydumpercirculararc help
odgiworldgeometrydumper::circulararc help
odgiworldgeometrydumper::circulararc help
this is probably a dumb question, but here goes anyways.
i am trying to override this method in the read example:
odgiworldgeometrydumper::circulararc(const odgepoint3d& center,
double radius,
const odgevector3d& normal,
const odgevector3d& startvector,
double sweepangle,
odgiarctype arctype)
what i want it to do is to dump all the points that make up the arc. can someone tell me how to go about using the given input args to getting teh generated polyline points?
thanks
steve
you can use odgecircarc3d class and its getsamplepoints() methods.
sergey slezkin
i looked at that method, but didn't think i had the required inputs for it. the only constructor i see that takes two vevotrs also required a start and end angle which i don't have.
code:
void xxx::circulararcproc(const odgepoint3d& center,
double radius,
const odgevector3d& normal,
const odgevector3d& startvector,
double sweepangle,
odgiarctype arctype,
const odgevector3d* pextrusion)
{
double dev = deviation(kodgimaxdevforcircle, center);
if (odnonzero(radius, dev))
{
odgecircarc3d circarc(center, normal, startvector.normal(), radius, 0., sweepangle);
odgeinterval interval;
circarc.getinterval(interval);
odgepoint3darray points;
circarc.getsamplepoints(interval.lowerbound(), interval.upperbound(), dev, points);
.....
sergey slezkin
|