CogPolygon ConvexHull Method Cognex VisionPro 9.5
Compute and return a CogPolygon that is the convex hull of these vertices.

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

public CogPolygon ConvexHull()

Return Value

Type: CogPolygon

The convex hull of this polygon.

Remarks

Returns a new polygon that is the convex hull of the vertices of this polygon. The convex hull is the polygon that would result if you were to stretch an elastic band over all of the vertices. The following picture shows that the convex hull of a star-shaped polygon is the pentagon that encloses it.

See Also