Share

AcGeCurve3d::projClosestPointTo

C++

GE_DLLEXPIMPORT AcGePoint3d projClosestPointTo(
    const AcGePoint3d& pnt, 
    const AcGeVector3d& projectDirection, 
    const AcGeTol& tol = AcGeContext::gTol
) const;

Description

Returns the point on the curve which when projected onto a plane whose normal is projectDirection is the closest point on the projected curve to the input point. This function is mainly used by graphics where projectDirection is the line of sight. In this case, this function returns the point on the curve that appears to be closest to the input point (but may not be the actual closest point).

Parameters

Parameters Description
pnt Input any 3D curve
projectDirection Input direction of projection
tol Input tolerance

Links

AcGeCurve3d

Was this information helpful?