IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
PointCloudWriter Class Reference

Public Member Functions

void Write (string filePath, PointCloud pointCloud)
 Saves the specified point cloud to a PLY file.
 

Detailed Description

Provides functionality to write point clouds to file.

Since
IDSImaging.Peak.ICV 1.3

Definition at line 12 of file PointCloudWriter.cs.

Member Function Documentation

◆ Write()

void Write ( string filePath,
PointCloud pointCloud )
inline

Saves the specified point cloud to a PLY file.

The file format is determined by the specified file extension of the file name. Only binary PLY (.ply) is supported.

If no extension is provided, .ply is appended automatically.

Note
If a point cloud does not contain any points it cannot be written to file.
Parameters
filePathThe path of the file to write to, as a UTF-8 encoded string.
pointCloudThe point cloud to save.
Exceptions
IcvNotSupportedExceptionThe specified file extension or point type is not supported or the point cloud is empty.
IcvIOExceptionThe specified file path is invalid or the user lacks write permissions.
Since
IDSImaging.Peak.ICV 1.3

Definition at line 45 of file PointCloudWriter.cs.