Export scalar field bug

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
patcarbon007
Posts: 7
Joined: Thu Jul 12, 2012 11:21 am

Export scalar field bug

Post by patcarbon007 »

Fun times:

I need to export a scalar field into matlab but it's not working, I tried:
1) export as an ascii ply. Not good. The X Y (big numbers) are truncated to integers.
2) export as .txt ascii. X Y are now fine but the scalar field is mangled and completely wrong.

Tried this in 2.5.4 then tried 2.5.5 but in the latest CC, 'Apply Transform' crashed 50% of the time (was fine in 2.5.4). I tried to upload sample data, but the forum won't take bin or ply files...

Any ideas?
Patrice
patcarbon007
Posts: 7
Joined: Thu Jul 12, 2012 11:21 am

Re: Export scalar field bug

Post by patcarbon007 »

found a workaround, seems like the ascii save bug only affects the last column. So if you create a bogus scalar field, like a rough with a kernel of 0, the penultimate scalar gets saved correctly. This works on the comandline even if it creates extra files.

Still, would be nice if we could save to ply with full precision.

Thanks
Patrice
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Export scalar field bug

Post by daniel »

I can't reproduce this bug... nor with ASCII or PLY (apart that the rply library seems to save numbers in ASCII format with a relatively low precision indeed - but I have 4 digits on my side, not zero precision).

Can you send me the file maybe? (cloudcompare [at] danielgm.net)

And by the way, on which system are you working?
Daniel, CloudCompare admin
Post Reply