|
- 如果 pEnt1 为 AcDbRegion ,pEnt2 为 AcDbPolyline
- pEnt1->intersectWith(pEnt2,Intersect::kOnBothOperands,pts);
- 此时交点为 nil,解决方法,交换顺序
- AcGePoint3dArray pts;
- Acad::ErrorStatus es=pEnt1->intersectWith(pEnt2,Intersect::kOnBothOperands,pts);
- if (es!=Acad::eOk)
- {
- return RTNORM;
- }
- if (pts.logicalLength()==0)
- {
- pts.setLogicalLength(0);
- pts.setPhysicalLength(0);
- es=pEnt2->intersectWith(pEnt1,Intersect::kOnBothOperands,pts);
- }
- if (es!=Acad::eOk)
- {
- return RTNORM;
- }
复制代码 |
|