Add a vertex to the polygon. If the default index -1 is used, the new vertex will be added to the end of any existing vertices. Otherwise Index must be >= 0 and <= NumVertices.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Syntax
Parameters
- x
- Type: System Double
X-coordinate of the vertex.
- y
- Type: System Double
Y-coordinate of the vertex.
- index
- Type: System Int32
Index of the vertex.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | index < -1 |
| ArgumentException | index > NumVertices |
| OutOfMemoryException | The memory to store the vertices cannot be allocated. |
Remarks
Changed Raised when the number of vertices changes.
Remarks
Add a vertex to the polygon at the given index. If index is -1 or NumVertices, the vertex is added to the end.
See Also