I have a point-cloud of 3d points in MATLab. The point-cloud is in the form of a 3xN matrix.
I want to calculate the normals for each of these points in the form of a 3xN matrix. How would I go about doing that?
So far I have tried using
nX = (surfnorm(X'))';
Where X is my point-cloud, and nX should be my returned normals. However, whenever I try to do it this way it doesn't seem to work when I render it... Is this the correct way to go about it?
Thanks in advance!