高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】how to construct valid odgecircarc3d from given oddbarc enti
how to construct valid odgecircarc3d from given oddbarc enti
how to construct valid odgecircarc3d from given oddbarc entity
i think that directly passing the start and angles produces ge arc, which does not match the arc entity.
thanks for any help
regards
chudomir
quote:
originally posted by chudo
i think that directly passing the start and angles produces ge arc, which does not match the arc entity.
thanks for any help
regards
chudomir
the methods for accessing the properties between oddbarc and odgecircarc3d appear as follows:
for oddbarc:
odgepoint3d center() const
odgevector3d normal()
double radius()
double startangle()
double endangle()
double thickness()
and for odgecircarc3d :
odgepoint3d center() const { return m_pcenter;}
odgevector3d normal() const { return m_vnormal;}
odgevector3d refvec() const { return m_vrefvec;}
double radius() const { return m_dradius;}
double startang() const { return m_dstartangle;}
double endang() const { return m_dstartangle + m_dinclangle;}
this appears to be a one to one coorespondence. defaults for the vectors for ge are
: m_vnormal(odgevector3d::kzaxis)
, m_vrefvec(odgevector3d::kxaxis)
have you used these methods to match the properties back and forth and experienced differing results?
i notice in the code called into the set() method, a restriction on the property relationships for start and end angle:
m_dstartangle = startangle;
if (endangle < startangle)
endangle += oda2pi;
m_dinclangle = endangle - startangle;
|