API Reference > OdDb Classes > OdDbPolyline Class > OdDbPolyline Methods > OdDbPolyline::onSegAt Method
OdDbPolyline::onSegAt Method
Syntax
C++
virtual bool onSegAt(unsigned int segmentIndex, const OdGePoint2d& point2d, double& param) const;
Parameters 
Description 
unsigned int segmentIndex 
[in] Segment index.  
const OdGePoint2d& point2d 
[in] The OCS point to query.  
double& param 
[out] The parameter at that point. 

Returns true if and only if the specified OCS point is on the specified segment of this Polyline entity, and returns the parameter of that point on the segment. 

 

The returned parameter will be in the parametric form of the segment (linear or arc).

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