ICog3DSurface ComputeArea Method Cognex VisionPro 9.8 SR1
Determines the area of this shape. For an infinite shape, like Cog3DPlane, the area is 0.

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

double ComputeArea()

Return Value

Type: Double
The area of this shape or returns 0, if this surface shape is empty or degenerate.
Remarks

  • For a Cog3DCylinder shape, no matter whether is is degenerate or not, its area is computed as: StartCircle.ComputeArea * 2 + Radius *Height .
  • For a Cog3DBox or Cog3DAlignedBox shape, no matter whether is is degenerate or not, its area is computed as: (Size.X * Size.Y + Size.X * Size.Z + Size.Y * Size.Z) * 2 .
See Also