Constructs an aligned box using 2 vertices: the origin vertex and the opposite vertex.
After construction, the translation vector for this shape corresponds to the vertex
with the most negative X, Y, and Z coordinates.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- originVertex
- Type: Cognex.VisionPro3D Cog3DVect3
The first vertex used for defining this shape.
- oppositeVertex
- Type: Cognex.VisionPro3D Cog3DVect3
The second vertex used for defining this shape.
- 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 shapeState is not one of Cog3DShapeStateConstants.Vertex, .Curve, .Surface, and .Volume. |
See Also