GetNumber of vertices in this polygon.
Namespace: Cognex.VisionAssembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
public int NumVertices { get; set; }public int NumVertices { get; set; }Public Property NumVertices As Integer
Get
Set
Public Property NumVertices As Integer
Get
Set
public:
property int NumVertices {
int get ();
void set (int value);
}public:
property int NumVertices {
int get ();
void set (int value);
}Property Value
Type:
Int32Default Value: 0
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 verticesOperation
Effect
New value > current Cognex.Vision.Polygon.NumVertices
New vertices with coordinates (0,0) are added to the end of the list of vertices.
New value < current Cognex.Vision.Polygon.NumVertices
Existing vertices are removed from the end of the list of vertices.
New value = 0
All vertices removed.
Changed Raised when the number of vertices changes.