Cog3DRectangle Constructor (Cog3DVect2, Cog3DTransformRigid, Cog3DShapeStateConstants)Cognex VisionPro 9.7
Constructs a rectangle using the specified size, rigid transform, and Cog3DShapeStateConstants.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 73.0.0.0
Syntax

public Cog3DRectangle(
	Cog3DVect2 size,
	Cog3DTransformRigid shapeFromScaledUnitRectangle,
	Cog3DShapeStateConstants shapeState
)

Parameters

size
Type: Cognex.VisionPro3D Cog3DVect2
The X, Y extents of this rectangle. X and Y must be >= 0.
shapeFromScaledUnitRectangle
Type: Cognex.VisionPro3D Cog3DTransformRigid
The rigid transform that maps the ScaledUnitRectangle to a pose in 3D space.
shapeState
Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this rectangle. Must be Cog3DShapeStateConstants.Vertex, .Curve, or .Surface.
Exceptions

ExceptionCondition
ArgumentException If any member of size is less than 0.
ArgumentNullException If shapeFromScaledUnitRectangle is null.
ArgumentException The ShapeState for this shape must be Cog3DShapeStateConstants.Vertex, .Curve, or .Surface.
See Also