明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2317|回复: 1

to 斑竹,请帮忙

[复制链接]
发表于 2002-7-22 16:04:00 | 显示全部楼层 |阅读模式
各位高手,请为如何求得的两个实体的交点(比如一条直线实体a,和一个圆实体b的交点)。要使用什么命令。此命令如何使用呢。请速教我,急!急!急!急!
发表于 2002-7-22 23:41:00 | 显示全部楼层

re

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-25 05:26 , Processed in 0.166654 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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