Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Parameters
- startSegment
- Type: Cognex.VisionPro CogGeneralContourSegmentIterator
The first segment to remove.
- endSegment
- Type: Cognex.VisionPro CogGeneralContourSegmentIterator
The ending segment. This segment is not removed. If this value is Nothing, all segments from startSegment to the end are removed.
| Event Type | Reason |
|---|---|
| CogGeneralContour Changed | Fires when the segments are removed. The following state flags may be affected: |
| Exception | Condition |
|---|---|
| ArgumentException | startSegment is Nothing. |
| CogIteratorInvalidIteratorException | startSegment is invalid. |
| CogShapeBadContourSegmentSetException | startSegment is positioned after endSegment. |
Removes all segments from startSegment up to, but not including endSegment. RemoveSegments(CogGeneralContourSegmentIterator, CogGeneralContourSegmentIterator) may disconnect the contour at startSegment's or endSegment's start point. If endSegment is Nothing, all of the segments from startSegment to the end of the contour shape are removed.
Note: Any CogGeneralContourSegmentIterator positioned at startSegment through the segment before endSegment become invalid. Other iterators are unchanged.