Cog3DAlignedBox Constructor (Cog3DVect3, Cog3DVect3, Cog3DShapeStateConstants)Cognex VisionPro
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.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax

public Cog3DAlignedBox(
	Cog3DVect3 originVertex,
	Cog3DVect3 oppositeVertex,
	Cog3DShapeStateConstants shapeState
)

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

ExceptionCondition
ArgumentException If shapeState is not one of Cog3DShapeStateConstants.Vertex, .Curve, .Surface, and .Volume.
See Also