How to save a SimpleCloud to a bin file?

Feel free to ask any question here
Post Reply
bingyu1413
Posts: 19
Joined: Tue Oct 28, 2014 5:53 am

How to save a SimpleCloud to a bin file?

Post 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!
Last edited by bingyu1413 on Tue Nov 18, 2014 9:23 am, edited 1 time in total.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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).
Daniel, CloudCompare admin
Post Reply