- UID
- 242705
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2005-4-13
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
在样条曲线上,用getPointAtDist的方法,取出若干点组成多段线以后,用getOffsetCurves函数偏移,按照ObjectARX Reference 的说法:
If the offsetDist value is negative, it is usually interpreted as being an offset to make a smaller curve (that is, for an arc it would offset to a radius that is offsetDist less than the starting curve’s radius). If the negative value has no meaning in terms of making the curve smaller, a negative offsetDist may be interpreted as an offset in the direction of smaller X,Y,Z WCS coordinates. This is not enforced, so custom entities can interpret the sign of the offsetDist value however they want.[/COLOR]
用offsetDist= -20进行偏移,得到的偏移多义线应该是缩小的,但是得出来的结果有时恰恰相反。
但偏移普通的多义线则没有这种问题!
另外,向内偏移时,偏移值过大,应该是不能偏移的,按照ObjectARX Reference 的说法:Returns Acad::eOk if offsetting is successfully completed. If the offset distance is invalid (for example, if you are offsetting an arc such that the offset result would be a negative radius), then Acad::eInvalidInput is returned. For the AutoCAD built-in classes that use ACIS (AcDbBody, AcDbRegion, and AcDb3dSolid), [/COLOR]
但经试验,返回值总是Acad::eOk !
请问该如何判断偏移失败? |
|