Cog3DAlignedBox GetSurfaces Method Cognex VisionPro 9.8
Computes the surfaces of this box.

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

public List<Cog3DRectangle> GetSurfaces()

Return Value

Type: List Cog3DRectangle 
The list of surfaces of this box.
Remarks

Notes:
  • Assuming a unit box, the order of the returned rectangles is (uisng a pair of opposite vertices for each rectangle):
    • 0 Cog3DVect3(0,0,0), Cog3DVect3(1,1,0)
    • 1 Cog3DVect3(0,0,1), Cog3DVect3(1,1,1)
    • 2 Cog3DVect3(0,0,0), Cog3DVect3(1,0,1)
    • 3 Cog3DVect3(1,0,0), Cog3DVect3(1,1,1)
    • 4 Cog3DVect3(0,1,0), Cog3DVect3(1,1,1)
    • 5 Cog3DVect3(0,0,0), Cog3DVect3(0,1,1)
  • Each element of the returned list has the ShapeState value of Cog3DShapeStateConstants.Surface no matter the current ShapeState value of the box.
  • Some elements of the returned list might be degenerate rectangles and some elements might be duplicate if this box is degenerate.
See Also