I am having a problem finding the intersection of two objects. The first
object is an AcDbPolyline, and the second object is a 3d polyline. The
problem is, the function does not find the intersection, even though it
returns Acad::eOk! In the code below, if pCurve points to an AcDbLine with
the same 2 points as the 3d polyline, the intersection is found without a
problem. What gives??
extern AcDbPolyline *pPline
extern AcDbCurve *pCurve;
{...}
AcDb::Planarity tmp;
AcGePlane pln;
pPline->getPlane(pln, tmp);
es = pPline->intersectWith(pCurve, AcDb::kOnBothOperands, pln, pts);
assert(es == Acad::eOk); // Ok!
assert(pts.length() > 0); // NOT ok!
Jon Rizzo
Langan Engineering and Environmental Services, Inc.