CogGeneralContour CreateContourFromConnectedSegments Method Cognex VisionPro 9.5
Returns a new contour, copying all segments in the connected segment chain that includes ContourSegment, into it.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public CogGeneralContour CreateContourFromConnectedSegments(
	CogGeneralContourSegmentIterator contourSegment,
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogGeneralContour

The new contour.

Exceptions

ExceptionCondition
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