CogPolygon RemoveVertex Method Cognex VisionPro 9.20
Remove the specified vertex from the polygon. Index must be >= 0 and < NumVertices.

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

public void RemoveVertex(
	int index
)
Events

Event TypeReason
CogPolygon Changed

Fires when a vertex is removed.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    index < 0

    ArgumentException

    index >= NumVertices

    Remarks

    Removes the specified vertex from the polygon. index must be >= 0 and < NumVertices.

    See Also