Cog3DRectangle ComputePerimeter Method Cognex VisionPro 9.7
Determines the perimeter of this shape. For a wireframe shape, the perimeter is the total length of all the wires. For an infinite shape, like Cog3DLine, the perimeter is 0.

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

public virtual double ComputePerimeter()

Return Value

Type: Double
The perimeter of this shape.

Implements

ICog3DCurve ComputePerimeter 
Remarks

  • For a Cog3DCylinder shape, no matter whether is is degenerate or not, its perimeter is computed as StartCircle.ComputePerimeter() * 2 .
  • For a Cog3DRectangle shape, no matter whether is is degenerate or not, its perimeter is computed as (Size.X + Size.Y) * 2 .
  • For a Cog3DBox or Cog3DAlignedBox shape, no matter whether is is degenerate or not, its perimeter is computed as (Size.X + Size.Y + Size.Z) * 4.
See Also