Function cwipc_write_ext

Function Documentation

int cwipc_write_ext(const char *filename, cwipc_pointcloud *pc, int flag, char **errorMessage)

Write pointcloud to .ply file.

If an error occurs and errorMessage is non-NULL it will receive a pointer to a string with the message.

Parameters:
  • filename – The ply file to frite.

  • pc – The pointcloud to write.

  • flag – Pass CWIPC_FLAG_BINARY to write a binary file

  • errorMessage – Address of a char* where any error message is saved (or NULL).

Returns:

0 on success, -1 on failure.