明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2006|回复: 3

多端线和直线之间求交点

[复制链接]
发表于 2005-11-24 13:22:00 | 显示全部楼层 |阅读模式

多端线(其中有一些是圆弧)和直线之间如何求交点,请高手指教

发表于 2005-11-24 20:03:00 | 显示全部楼层

Signature

RetVal = object.IntersectWith(IntersectObject, ExtendOption)

Object

MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/all_drawing_objects.htm" target="_blank" >All Drawing Objects (Except Pviewport and PolygonMesh)
The object or objects this method applies to.

IntersectObject

Object, input-only;
The object can be one of MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/all_drawing_objects.htm" target="_blank" >All Drawing Objects.

ExtendOption

AcExtendOption enum; input-only
This option specifies if none, one or both, of the objects are to be extended in order to attempt an intersection.

acExtendNone

Does not extend either object.

acExtendThisEntity

Extends the base object.

acExtendOtherEntity

Extends the object passed as an argument.

acExtendBoth

Extends both objects.

RetVal

Variant (array of doubles)
The array of points where one object intersects another object in the drawing.

Remarks

If the two objects do not intersect, no data is returned. You can request the point of intersection that would occur if one or both of the objects were extended to meet the other. For example, in the following illustration, Line1 is the base object from which this method was called and line3 is the object passed as a parameter. If the ExtendOption passed is acExtendThisEntity, point A is returned as the point where line1 would intersect line3 if line1 were extended. If the ExtendOption is acExtendOtherEntity, no data is returned because even if line3 were extended, it would not intersect line1.

If the intersection type is acExtendBothEntities and line2 is passed as the parameter entity, point B is returned. If the ExtendOption is acExtendNone and line2 is the parameter entity, no data is returned.

 




line3

line2 

line1   
发表于 2005-11-24 20:04:00 | 显示全部楼层

明经网上还有中文版的

 楼主| 发表于 2005-11-25 00:44:00 | 显示全部楼层

哦,谢谢了,实在是感谢,呵呵,本来了一个很笨的方法,这下应该可以解决了。

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-27 08:44 , Processed in 0.167618 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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