API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::appendSegment Method
Contour2D::appendSegment Method
Syntax
C++
Result appendSegment(const Segment2D& rSeg, bool bShiftToHit = false);
Parameters 
Description 
const Segment2D& rSeg 
[in] Segment to add.  
bool bShiftToHit = false 
[in] (Optional) true to enable shift correction, or false for disable. Default value is false. 
  • eOk - If the segment is appended successfully, or a corresponding error type otherwise.
  • erPointNotOnThis - If bShiftToHit is false and rSeg.startPt() is not equal to the end of this (open) contour.
  • erWarnPointNotOnThis - If bShiftToHit is true and the rSeg is shifted.

Appends a segment to the end of this contour. 

 

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