Normals import + PCV

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
jfhullo
Posts: 90
Joined: Thu Oct 14, 2010 7:16 am

Normals import + PCV

Post by jfhullo »

HI all,

When I try to import a simple file with XYZ and Normals, I hae an error.

Here is the normal file:
100 100 100 -0.99642537 0 0.08447768

At import:
[23:42:59] [ccPointCloud::reserveTheNormsTable] Internal error: properties (re)allocation before points allocation is forbidden!
[23:43:00] Failed to allocate memory for normals! (skipped)

6 times (for each coordinates). Did I miss something?

And also I cannot select the PCV option for Use cloud normals as ray.

Any idea for these 2 issues?

JF
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Normals import + PCV

Post by daniel »

Indeed it seems that if you have just one line in your file WITHOUT a return char at the end, CC "misses" that line and then thinks that there's no point in the file (while still reading some data ;).

So you just have to add an empty line at the end of your file.

The "Use cloud normals as ray" is only available if CC founds clouds with normals in its database. I guess that due to the above bug your cloud has no normals?

Best
Daniel, CloudCompare admin
jfhullo
Posts: 90
Joined: Thu Oct 14, 2010 7:16 am

Re: Normals import + PCV

Post by jfhullo »

Ah ah :) tricky tricky...

Ok, fine for me now. Lots of things to try with CC... But still writing my PhD... AArrggh ;)

Thanks again Daniel for your hard work.

JF
Post Reply