Retrieve errors from pointcloud_search()
Hi everyone!
We are using the pointcloud_search function in our renderer to read some pdc files.
Generally everything works well, but sometimes a pdc file is missing, and in that case we would like to kill the rendering.
The problem is we can't find a proper way to catch this case after the call of the pointcloud_search function.
This function has no "errormessage" argument (like the texture() function) allowing to retrieve errors generated by PartIO during its execution.
We can't use the return value because the function return 0 in this case, which is also the returned value if the file is existing but no particle was found in the given neighborhood.
Does anyone have an idea on how we can handle this?
Thanks a lot.
Kind regards,
Elisabeth
On May 20, 2022, at 7:42 AM, elizabeth.bonnefoy@... wrote:Hi everyone!
We are using the pointcloud_search function in our renderer to read some pdc files.
Generally everything works well, but sometimes a pdc file is missing, and in that case we would like to kill the rendering.
The problem is we can't find a proper way to catch this case after the call of the pointcloud_search function.
This function has no "errormessage" argument (like the texture() function) allowing to retrieve errors generated by PartIO during its execution.
We can't use the return value because the function return 0 in this case, which is also the returned value if the file is existing but no particle was found in the given neighborhood.
Does anyone have an idea on how we can handle this?
Thanks a lot.
Kind regards,
Elisabeth