API Reference > Other Classes > OdModelerTools Class > OdModelerTools Methods > getClosestPoints Method > OdModelerTools::getClosestPoints Method (OdModelerGeometry&, OdDbSubentId&, OdGeMatrix3d&, OdGePoint3d&, OdGePoint3d&)
OdModelerTools::getClosestPoints Method (OdModelerGeometry&, OdDbSubentId&, OdGeMatrix3d&, OdGePoint3d&, OdGePoint3d&)
Syntax
C++
virtual OdResult getClosestPoints(const OdModelerGeometry& obj, const OdDbSubentId& subId, const OdGeMatrix3d& toWc, const OdGePoint3d& inPt, OdGePoint3d& nearestPt) = 0;
Parameters 
Description 
const OdModelerGeometry& obj 
[in] The modeler geometry object.  
const OdDbSubentId& subId 
[in] The object subentity (may be null).  
const OdGeMatrix3d& toWc 
[in] Transformation from ECS of the modeler geometry object to WCS.  
OdGePoint3d& nearestPt 
[out] Receives a closest point on the object in WCS.  
ptWc 
[in] Input point (defined in WCS).  

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

Calculates point on the given modeler geometry object (or its subentity) closest to the given point. Matrix toWc defines transformations applied to the modeler geometry object before calculations. 

 

Copyright © 2002–2021. Open Design Alliance. All rights reserved.