Page 1 of 1

Normals import + PCV

Posted: Mon Sep 24, 2012 9:50 pm
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

Re: Normals import + PCV

Posted: Tue Sep 25, 2012 1:27 pm
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

Re: Normals import + PCV

Posted: Wed Sep 26, 2012 12:46 am
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