明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3945|回复: 6

[求助]『急』怎么求两条直线的交点

[复制链接]
发表于 2005-10-30 16:35:00 | 显示全部楼层 |阅读模式

我是新手

请教在ARX2000里求两条直线交点的程序怎么些

麻烦各位高手帮忙!

谢谢!!!

 楼主| 发表于 2005-10-31 17:11:00 | 显示全部楼层

没响应啊

 

发表于 2005-11-1 14:55:00 | 显示全部楼层
intersectWith 函数
 楼主| 发表于 2005-11-1 15:21:00 | 显示全部楼层

谢谢!!!

我这没有这个函数的原型

麻烦把原型告知!!!

 

发表于 2005-11-4 16:27:00 | 显示全部楼层

virtual Acad::ErrorStatus
intersectWith(
    const AcDbEntity* pEnt,
    AcDb::Intersect intType,
    AcGePoint3dArray& points,
    int thisGsMarker = 0,

    int otherGsMarker= 0) const;

pEnt Input entity with which "this" entity is to intersect
intType Input type of intersection requested
points Output with the points of intersection appended
thisGsMarker Input GS marker of subentity of "this" entity that's involved in the intersection operation. Use the 0 default if not applicable.
otherGsMarker Input GS marker of subentity of the entity pointed to by pEnt that's involved in the intersection operation. Use the 0 default if not applicable.

Function usage
It finds the intersections of the entity pointed to by pEnt and all the edges of the bounding box of this entity.
The intType is used to determine how to deal with extending the two entities in order to calculate intersections. The possible AcDb::Intersect values are:

Value Meaning
AcDb::kOnBothOperands Do not extend either entity. This results in only calculating intersections where the two entitys' geometry actually intersect
AcDb::kExtendThis Extend this entity (if necessary) when calculating intersections, but do not extend the pEnt entity.
AcDb::kExtendArg Extend the pEnt entity (if necessary) when calculating intersections, but do not extend this entity.
AcDb::kExtendBoth Extend both the pEnt entity and this entity (if necessary) when calculating intersections

 楼主| 发表于 2005-11-6 10:06:00 | 显示全部楼层

十分感谢!!!!

发表于 2010-8-25 17:23:00 | 显示全部楼层
mark  

以后用得着。。 哈哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-25 11:35 , Processed in 0.161897 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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