-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mesh merge by distance #220
Comments
Hi I managed to do it as follows:
Wouldn't it be nice to call it a standard function in your SDK? |
Two ways of removing duplicated vertices in vcglib (both defined in clean.h):
|
Sorry if I do not understand, but what do you exactly mean with "normal vector to be included in this process"? |
We do not remove the vertex if the face normal is within some tolerance. That's why I regenerate for mesh face normal, write them in vertex normal, then compare them and remove only those that are out of tolerance. This will not reduce the vertices to a minimum, but for drawing the model this result is better. Since the surface that is supposed to be smooth has averaged normals and the next plane out of tolerance has its own set of averaged normals. The difference between RemoveDuplicateVertex is here:
|
O,k so you need the opposite: duplicating the vertices if they have sufficiently different normals. |
Thank you very much for the advice, I prefer to use the standard solution that you suggest. |
Hi
I am trying to remove duplicate vertices.
Unfortunately, after removing the duplicate vertices, I don't know how to correctly calculate the normals.
Is there support for a feature like Blender : Edit Mode : Mesh : Merge : By Distance
Here is a piece of my code:
Thank you for your response.
The text was updated successfully, but these errors were encountered: