Constructs an aligned box using the specified size, translation, and Cog3DShapeStateConstants.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 75.1.0.0
Syntax
Parameters
- size
- Type: Cognex.VisionPro3D Cog3DVect3
The X, Y, and Z extents of this aligned box. X, Y, and Z must be > 0.
- translationX
- Type: System Double
The X translation of this aligned box.
- translationY
- Type: System Double
The Y translation of this aligned box.
- translationZ
- Type: System Double
The Z translation of this aligned box.
- shapeState
- Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this aligned box. Must be Cog3DShapeStateConstants.Vertex, Cog3DShapeStateConstants.Curve, Cog3DShapeStateConstants.Surface, or Cog3DShapeStateConstants.Volume.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If any member of size is less than 0. |
| ArgumentException | If shapeState is not one of Cog3DShapeStateConstants.Vertex, .Curve, .Surface, and .Volume. |
See Also