API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > getSegmentAt Method > Contour2D::getSegmentAt Method (OdUInt32, OdGePoint2d&, OdGePoint2d&, double&)
Contour2D::getSegmentAt Method (OdUInt32, OdGePoint2d&, OdGePoint2d&, double&)
Syntax
C++
Result getSegmentAt(OdUInt32 iIndex, OdGePoint2d& ptStart, OdGePoint2d& ptEnd, double& dBulge) const;
Parameters 
Description 
OdUInt32 iIndex 
[in] Segment index.  
OdGePoint2d& ptStart 
[out] Start point as OdGePoint2d.  
OdGePoint2d& ptEnd 
[out] End point as OdGePoint2d.  
double& dBulge 
[out] Bulge value.  

eOk if the segment is found successfully, or a corresponding error type otherwise.

Gets parameters of the segment specified by the index. 

 

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