CogGeneralContour CreateContourFromSegments Method Cognex VisionPro 9.23
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax

public CogGeneralContour CreateContourFromSegments(
	CogGeneralContourSegmentIterator startSegment,
	CogGeneralContourSegmentIterator endSegment,
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogGeneralContour

The new contour.

Exceptions

ExceptionCondition
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