Returns a new contour, copying all segments in the connected segment chain that includes ContourSegment, into it.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.0.0.0
Syntax
Parameters
- contourSegment
- Type: Cognex.VisionPro CogGeneralContourSegmentIterator
A segment contained in the chain of segments to copy.
- 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 | contourSegment is invalid. |
Remarks
Returns a new contour, copying all segments in the connected segment chain that includes contourSegment, into it.
See Also