Hello!
Sorry for bothering you again for the problem.I've use the CCLib to regist two Cloud,but I want to save the registed cloud.How can I save the SimpleCloud to a bin file?
I also read the source code of the CloudCompare.exe.I find FileIOFilter is a class to save the ccHobject to a bin file, but how can I change the SimpleCloud to ccHobject.
Thanks!
How to save a SimpleCloud to a bin file?
-
- Posts: 19
- Joined: Tue Oct 28, 2014 5:53 am
How to save a SimpleCloud to a bin file?
Last edited by bingyu1413 on Tue Nov 18, 2014 9:23 am, edited 1 time in total.
Re: How to save a SimpleCloud to a bin file?
To save a cloud to a bin file, you'll have to use the qCC_db and qCC_io libraries (the qCC_io depends on qCC_db anyway).
You first have to convert your SimpleCloud instance to a ccPointCloud one (just use the ccPointCloud constructor for this). Then use the BinFilter class of qCC_io to save the ccPointCloud instance.
It may be much easier to save the cloud as a simple ASCII file though (X Y Z on each line).
You first have to convert your SimpleCloud instance to a ccPointCloud one (just use the ccPointCloud constructor for this). Then use the BinFilter class of qCC_io to save the ccPointCloud instance.
It may be much easier to save the cloud as a simple ASCII file though (X Y Z on each line).
Daniel, CloudCompare admin