Cog3DPointCloudMesh SetRoot Method Cognex VisionPro 9.24
Replace the existing root at the specified index with the supplied value.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 91.0.0.0
Syntax

public void SetRoot(
	int index,
	Cog3DPointCloudMeshRoot root
)

Parameters

index
Type: System Int32
The zero -based index at which to replace the root.
root
Type: Cognex.VisionPro3D Cog3DPointCloudMeshRoot
The root object to be assigned.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this method changes the internal state of this object.

The following state flags may be affected:

Exceptions

ExceptionCondition
ArgumentOutOfRange If index is less than zero or not less than NumRoots.
ArgumentNullException If root is null.
See Also