Cog3DPointCloudMeshRoot Constructor (Int32,  Cog3DPointCloudAttribute3F ,  Cog3DPointCloudAttribute3F , ICogImage, CogImage8Grey)Cognex VisionPro 9.5
Construct this mesh root from the supplied position data as well as the optional surface normal and/or grey image data.

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

public Cog3DPointCloudMeshRoot(
	int width,
	Cog3DPointCloudAttribute3F[] positions,
	Cog3DPointCloudAttribute3F[] normals,
	ICogImage greyImage,
	CogImage8Grey greyMask
)

Parameters

width
Type: System Int32
The number of columns in this mesh root. Must be greater than zero.
positions
Type:  Cognex.VisionPro3D Cog3DPointCloudAttribute3F 
A one dimensional array of points that each specify the X,Y,Z coordinates of a single surface point in storage space along with a validity byte. This array is assumed to be in row-major format where each row holds width many points. This parameter may not be null.
normals
Type:  Cognex.VisionPro3D Cog3DPointCloudAttribute3F 
An optional array of surface normals that each specify the X,Y,Z components of a surface normal vector in storage space along with a validity byte. This array is assumed to be in row-major format where each row holds width many points. If non-null, this must have the same number of elements as the positions parameter.
greyImage
Type: Cognex.VisionPro ICogImage
Optional grey image. This does not necessarily correspond to the number of points in this point cloud mesh root.
greyMask
Type: Cognex.VisionPro CogImage8Grey
Option grey mask. This must have the same width and height as the greyImage parameter.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException If width is less than one.
ArgumentNullException If positions is null.
OutOfMemoryException If sufficient storage cannot be allocated.
See Also