API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::appendContour Method
Contour2D::appendContour Method
Syntax
C++
Result appendContour(const Contour2D& rCont, bool bCloseGap = false, double dMaxGap = 1e99);
Parameters 
Description 
const Contour2D& rCont 
[in] Contour to append.  
bool bCloseGap = false 
[in] If true, a segment connecting the points is inserted and the return code is erWarnPointNotOnThis.  
double dMaxGap = 1e99 
[in] (Optional) The maximum allowable distance between the ends of the connected contours. Default value is 1e99. 
  • eOk - If the contour is appended successfully.
  • erInvalidArgs - If rCont is equal to this contour.
  • erPointNotOnThis - If rCont.startPoint is not equal to the end of this (open) contour.
  • erWarnPointNotOnThis - If the distance from rCont.startPoint to the end of this contour is greater than FMGeGbl :: gTol.equalPoint (), but less than dMaxGap.

Appends a contour to the end of this contour. 

 

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