|
[code] AcGePoint3dArray Get_intersection_point (AcDbObjectId id1,AcDbObjectId id2)
{
int i;
AcGePoint3d point;
AcGePoint3dArray points;
AcDbEntity* pent1 = NULL;
AcDbEntity* pent2 = NULL;
acdbOpenAcDbEntity(pent1,id1,AcDb::kForRead);
acdbOpenAcDbEntity(pent2,id2,AcDb::kForRead);
pent1 -> intersectWith( pent2,AcDb::kOnBothOperands,points);
pent1->close();
pent2->close();
return points;
}[/code] |
|