Construct this
mesh
root from the supplied position data as well
as the optional surface normal and/or grey image data.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 73.0.0.0
Syntax
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
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If width is less than one. |
| ArgumentNullException | If positions is null. |
| OutOfMemoryException | If sufficient storage cannot be allocated. |
See Also