Get the box's origin vertex, extent X vector, extent Y vector, and Z height.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- originVertex
- Type: Cognex.VisionPro3D Cog3DVect3
The output argument for the origin vertex of the box.
- xVector
- Type: Cognex.VisionPro3D Cog3DVect3
The output argument for the extent X vector of the box. Note that this vector corresponds to the Size.X extent in ScaledUnitBox space. See the Remarks section.
- yVector
- Type: Cognex.VisionPro3D Cog3DVect3
The output argument for the extent Y vector of the box. Note that this vector corresponds to the Size.Y extent in ScaledUnitBox space. See the Remarks section.
- z
- Type: System Double
The output argument for the Z height of the box. Note that Z height corresponds to the Size.Z extent in ScaledUnitBox space. See the Remarks section.
Exceptions
| Exception | Condition |
|---|---|
| Cog3DException | If the box is degenerate. |
Remarks
z will be Size.Z.
ShapeFromScaledUnitBox will map point cc3Dvect(0,0,0) to originVertex, map vector (Size.X,0,0) to (originVertex + xVector), and map vector cc3DVect(0,Size.Y,0) to (originVertex + yVector).
See Also