Page 1 of 1

Compare cloud-mesh not correct

Posted: Thu Apr 28, 2022 7:37 am
by jnomita
I have 1 point cloud, after comparing a new mesh file I created myself, the negative and positive distances values are next to each other.
I think the negative value should be outside or inside the mesh and separate from the positive part.
Is the problem with the mesh file I created?


Image

Re: Compare cloud-mesh not correct

Posted: Sun May 01, 2022 7:48 am
by daniel
Yes indeed, one out of 2 triangles is inverted. You can see that if you compute per-triangle normals and zoom in.

You'll see that half of the triangles are green, and half are blue. Which means that some are in the direct order (the vertices are correctly ordered), and some are inverted.
inverted_triangles.JPG
inverted_triangles.JPG (34.2 KiB) Viewed 620 times

Re: Compare cloud-mesh not correct

Posted: Thu May 05, 2022 7:47 am
by jnomita
Thanks Daniel.

I fixed my mesh. It ok now :D