几何尺寸与公差论坛

 找回密码
 注册
查看: 2282|回复: 1

Dear Robin,do you think that isClosed value should be Zero for a partial circ

[复制链接]
发表于 2007-5-20 09:51:29 | 显示全部楼层 |阅读模式
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
 楼主| 发表于 2007-5-20 09:52:04 | 显示全部楼层

回复: Dear Robin,do you think that isClosed value should be Zero for a partia

R:
Yogy,

The parametric range is the valid range for the curve. If the curve is infinite (such as a line), then the parametric maximum is the largest permissible value in the parametric space.



Use Edge::GetCurveParams2 to determine if a circular edge is a complete circle or an arc.



Also, you may need to create a TrimmedCurve before getting the parameters.



Robin Richter
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:39 , Processed in 0.037607 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表