Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDgCurveElement3dPE::getClosestPointTo Method (const OdDgCurveElement3d*, const OdGePoint3d&, OdGePoint3d&, bool)
Syntax
C++
virtual OdResult getClosestPointTo(const OdDgCurveElement3d* pCurve, const OdGePoint3d& givenPoint, OdGePoint3d& pointOnCurve, bool extend = false) const = 0;

Returns the point on the specified Curve object closest to the given point. 

 

Parameters
Description
pCurve
[in] Pointer to the curve.
givenPoint
[in] Given point.
pointOnCurve
[out] Receives the closed point on this Curve object.
extend
[in] Extends this Curve object if and only if true.

Returns eOk if successful, or an appropriate error code if not.

If normal is specified, this Curve object is projected onto the plane defined by givenPoint and normal, finds the closest point on the projected curve to givenPoint, and projects said closest point back onto the plane of this Curve object. It is this point that is returned as pointOnCurve.

Copyright © 2002-2022. Open Design Alliance All rights reserved.