Normals-Calculation and Cloud2Mesh
Posted: Tue May 30, 2017 1:18 pm
He guys
I'm new here and doing my first tasks with Cloud Compare now. I have encountered a weird functionality in Cloud Compare. First about the tasks I’m trying to fulfil. I have two point clouds and want to compare them (perfect task for Cloud Compare, I guess). The expected movements of the object are along the y axis and the cloud itself just expands x & z axis.
So, I want that the normals are computed along the positive Y axis. I used the function Edit/ Normals/ Compute, and set the preferred direction along +Y. After that I calculated a mesh (without updating normals) and then used the Cloud2Mesh-Distance calculation. My expectation would be as followed (corrected me, If I’m wrong):
If the compared point is on the side of the positive normal (should be +Y) it should get a positive sign and if it is on the negative side of the normal (should be -Y) it should get a negative sign.
I come to the following error: It doesn’t matter if I choose +Y or -Y, when I calculated the normals. I always get the exact same results. I also tried it with a test example (Just three points building a triangle and 1 single point) and come to the same results, that it ignored the preferred direction for the normals calculation (also if I build the example along a different axis).
Then I came across a second error, while I did my testing. If I varied the coordinated (made all negative, made only x negative, x &z negative and y positive, …) I turned out, although I always used the same parameter settings, I got different results. Sometimes the sign was positive, if the test-point was in front of the triangle and sometimes negative. I couldn’t figure out after a schema. Seemed to me nearly arbitrary.
Maybe someone can help me and can clarify the calculation idea of Cloud Compare in this scenario for me and show me the best practice way, to be sure on which side of my point cloud the second one moved.
Thanks in advance
I'm new here and doing my first tasks with Cloud Compare now. I have encountered a weird functionality in Cloud Compare. First about the tasks I’m trying to fulfil. I have two point clouds and want to compare them (perfect task for Cloud Compare, I guess). The expected movements of the object are along the y axis and the cloud itself just expands x & z axis.
So, I want that the normals are computed along the positive Y axis. I used the function Edit/ Normals/ Compute, and set the preferred direction along +Y. After that I calculated a mesh (without updating normals) and then used the Cloud2Mesh-Distance calculation. My expectation would be as followed (corrected me, If I’m wrong):
If the compared point is on the side of the positive normal (should be +Y) it should get a positive sign and if it is on the negative side of the normal (should be -Y) it should get a negative sign.
I come to the following error: It doesn’t matter if I choose +Y or -Y, when I calculated the normals. I always get the exact same results. I also tried it with a test example (Just three points building a triangle and 1 single point) and come to the same results, that it ignored the preferred direction for the normals calculation (also if I build the example along a different axis).
Then I came across a second error, while I did my testing. If I varied the coordinated (made all negative, made only x negative, x &z negative and y positive, …) I turned out, although I always used the same parameter settings, I got different results. Sometimes the sign was positive, if the test-point was in front of the triangle and sometimes negative. I couldn’t figure out after a schema. Seemed to me nearly arbitrary.
Maybe someone can help me and can clarify the calculation idea of Cloud Compare in this scenario for me and show me the best practice way, to be sure on which side of my point cloud the second one moved.
Thanks in advance