Cog3DBox Constructor (Cog3DVect3, Cog3DTransformRigid, Cog3DShapeStateConstants)Cognex VisionPro
Constructs a box using the specified size, rigid transform, and Cog3DShapeStateConstants.

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

public Cog3DBox(
	Cog3DVect3 size,
	Cog3DTransformRigid shapeFromScaledUnitBox,
	Cog3DShapeStateConstants shapeState
)

Parameters

size
Type: Cognex.VisionPro3D Cog3DVect3
The X, Y, and Z extents of this aligned box. X, Y, and Z must be > 0.
shapeFromScaledUnitBox
Type: Cognex.VisionPro3D Cog3DTransformRigid
The rigid transform that maps the ScaledUnitBox to a pose in 3D space.
shapeState
Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this box. Must be Cog3DShapeStateConstants.Vertex, .Curve, .Surface, or .Volume.
Exceptions

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