Page 1 of 1

How to save a SimpleCloud to a bin file?

Posted: Tue Nov 18, 2014 9:01 am
by bingyu1413
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!

Re: How to save a SimpleCloud to a bin file?

Posted: Tue Nov 18, 2014 9:20 am
by daniel
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).