CogPolygon VertexReserve Method Cognex VisionPro
If the supplied value is less than or equal to the current VertexCapacity, there will be no change. Otherwise, ensure that VertexCapacity is greater than or equal to the supplied value.

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

public void VertexReserve(
	int minNumVertices
)
Events

Event TypeReason
CogPolygon Changed

Fires when the vertex capacity changes.

The following state flag may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    minNumVertices < 0.

    Remarks

    Ensures a reserve for a specified number of vertices. If minNumVertices is less than or equal to VertexCapacity there is no change. Otherwise, VertexCapacity is greater than or equal to minNumVertices.

    See Also