Cog3DBox GetOriginVertexXVectorYVectorZ Method Cognex VisionPro 9.8
Get the box's origin vertex, extent X vector, extent Y vector, and Z height.

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

public void GetOriginVertexXVectorYVectorZ(
	out Cog3DVect3 originVertex,
	out Cog3DVect3 xVector,
	out Cog3DVect3 yVector,
	out double z
)

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

ExceptionCondition
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