2875147 发表于 2005-10-30 16:35:00

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

我是新手
请教在ARX2000里求两条直线交点的程序怎么些
麻烦各位高手帮忙!
谢谢!!!

2875147 发表于 2005-10-31 17:11:00

没响应啊

FallenAnge 发表于 2005-11-1 14:55:00

intersectWith 函数

2875147 发表于 2005-11-1 15:21:00

谢谢!!!
我这没有这个函数的原型
麻烦把原型告知!!!

zswking 发表于 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

2875147 发表于 2005-11-6 10:06:00

十分感谢!!!!

yulinxx 发表于 2010-8-25 17:23:00

mark
页: [1]
查看完整版本: [求助]『急』怎么求两条直线的交点