Cog3DPlane SetNormalAndOffset Method Cognex VisionPro 9.5
Sets this plane using the specified normal and an offset. The offset is the translation of the plane from the origin along the normal direction. The specified normal is normalized to a unit vector.

Note that the following point is on the plane: offset * normal3D / normal3D.Length

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

public void SetNormalAndOffset(
	Cog3DVect3 normal3D,
	double offset
)

Parameters

normal3D
Type: Cognex.VisionPro3D Cog3DVect3
The normal of the plane. The specified normal is normalized to a unit vector.
offset
Type: System Double
The translation of the plane from the origin along the normal direction.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when some properties change.

The following state flags may be affected:

  • SfNormal
  • SfGetTilt
  • SfGetRotation
  • SfOffset
  • SfIsDegenerateSurface
Exceptions

ExceptionCondition
ArgumentException If normal3D is (0,0,0).
See Also