查看单个帖子
旧 2007-05-20, 09:51 AM   #1
yogy
高级会员
 
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
yogy 向着好的方向发展
默认 Dear Robin,do you think that isClosed value should be Zero for a partial circle?

Q:
Subject: Dear Robin,do you think that isClosed value should be Zero for a partial circle?

Dear Robin,

When I try to get the following parameters (shown in red font, such as m_min_t, m_max_t, isClosed, isPeriodic) from partial curve in Sketch, I get the incorrect result for the parameters. For example, for a partial circle, I get the incorrect result of the parameters as follows.
m_min_t = 0;
m_max_t = 6.28;
isClosed = 1;
isLPeriodic = 1;
I think that isClosed value should be Zero for a partial circle. Do you?
The source file is attached in the Email.

My code is as follows.
ISketchSegment swSketchSegment(dSketchSegment);
dSegmentCurve = swSketchSegment.GetCurve();



if (dSegmentCurve != NULL)
{
int isPeriodic, isClosed;
ICurve swCurve(dSegmentCurve);
swCurve.GetEndParams (&m_min_t, &m_max_t, &isClosed, &isPeriodic);
swCurve.DetachDispatch();

}
Yogy
yogy离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)