CogShapeModelPolygon EnclosingRectangle Method Cognex VisionPro 9.10
Minimum enclosing rectangle of this shape.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 79.0.0.0
Syntax

public virtual CogRectangle EnclosingRectangle(
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogRectangle

The returned rectangle.

Implements

ICogShape EnclosingRectangle(CogCopyShapeConstants)
Exceptions

ExceptionCondition
CogShapeCannotEncloseException

The shape is a CogLine.

Remarks

Returns the smallest rectangle that encloses the shape. A CogLine does not have an enclosing rectangle.

See Also