Returns a new contour, copying segments from StartSegment up to, but not including, EndSegment, into it. If EndSegment is Nothing, segments are copied from StartSegment to the end of this contour.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- startSegment
- Type: Cognex.VisionPro CogGeneralContourSegmentIterator
The first segment to copy.
- endSegment
- Type: Cognex.VisionPro CogGeneralContourSegmentIterator
The ending segment. This segment is not copied.
- copyFlags
- Type: Cognex.VisionPro CogCopyShapeConstants
Specify which attributes of the contour to copy to the new contour.
Return Value
Type: CogGeneralContourThe new contour.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | startSegment is Nothing. |
| CogIteratorInvalidIteratorException | startSegment is invalid. endSegment is invalid and not the end segment. |
| CogShapeBadContourSegmentSetException | startSegment is positioned after endSegment. |
Remarks
Returns a new contour, copying segments from startSegment up to, but not including, endSegment, into it. If endSegment is Nothing, segments are copied from startSegment to the end of this contour.
See Also