CogPolygon NumVertices Property Cognex VisionPro
Number of vertices in this polygon.

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

public int NumVertices { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogPolygon Changed

Fires when the number of vertices changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The number of vertices is < 0.

    Remarks

    Sets or gets the number of vertices in this polygon. The following table describes what happens when you set the number of vertices.

    Changing the number of verticesOperationEffectNew value > current NumVerticesNew vertices with coordinates (0,0) are added to the end of the list of vertices.New value < current NumVerticesExisting vertices are removed from the end of the list of vertices.New value = 0All vertices removed.

    Default Value: 0

    See Also