[Connect C#] CurveVector.ClosestPointBounded does not work

in C#

CurveLocationDetail curveLocation2 = _curveVector.ClosestPointBounded(pUor);

always returns null.

Both are the same exact curve vector and passing the same exact point.. It doesn't matter if the point is on the line or not. always returns null

The following works fine in c#

CurveLocationDetail curveLocation = _curveVector.ClosestPointBoundedXY(pUor, DMatrix4d.Identity);

If i access the curve primitives within the curve vector and use the CurvePrimitive.ClosestPointBounded method, this works, but not ideal.

In C++, the ClosestPointBounded method works fine..

curveVector->ClosestPointBounded(*pUor, location)

Any suggestions? Is it a bug?

Thanks,

Maury

Parents Reply Children
No Data