Modify the coordinates of the vertices to match the supplied values. If there are more supplied values than vertices, append sufficient vertices. If there are fewer supplied values than vertices, discard vertices at the end.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- coordinatesXY
- Type: System Double
An array of vertex coordinates.
Events
| Event Type | Reason |
|---|---|
| CogPolygon Changed | Fires when vertices are set. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | NumVertices < 1 |
| OUTOFMEMORYException | The array cannot be allocated. |
Remarks
Modifies the coordinates of the vertices to match the supplied values. If there are more supplied values than vertices, additional vertices are appended to the polygon. If there are fewer supplied values than vertices, the superfluous vertices are discarded.
See Also