Normals change after importing cloud from text file

Feel free to ask any question here
Post Reply
gysvanzyl
Posts: 2
Joined: Fri Jan 22, 2021 2:25 am

Normals change after importing cloud from text file

Post by gysvanzyl »

Hi,

I'm importing a point cloud from a text file that I generated myself. The points lie on a perfect cylinder with its axis aligned with the global Y-axis. As such, if I understand things correctly, all points should have a normal with a zero y-component. This shows the Ascii file import window with all Ny values zero.
Ascii file.png
Ascii file.png (53.02 KiB) Viewed 555 times
The import seems to complete fine, and the shaded view shows that normals were imported. However, the normals values have changed. All points now have a non-zero y-component for the normal:
After import.png
After import.png (91.73 KiB) Viewed 555 times
Do I misunderstand something in how normals should behave?

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

Re: Normals change after importing cloud from text file

Post by daniel »

Nope, that's 'normal'. It's because normals are compressed to save memory (they are replaced by the nearest orientation from a list of orientations regularly sampled on a sphere). Hopefully the resulting angular error should be quite small.
Daniel, CloudCompare admin
gysvanzyl
Posts: 2
Joined: Fri Jan 22, 2021 2:25 am

Re: Normals change after importing cloud from text file

Post by gysvanzyl »

OK, thanks. Indeed, the errors are quite small. It's good to know that I've not been doing something wrong.
Post Reply