On 10/08/2017 at 08:41, xxxxxxxx wrote:
`I import a mesh of triangles (from an OBJ file). The overall object is a deformed plain. When I throw it under a subdivision surface, it suddenly got holes. Obviously, not all triangles in the mesh are actually welded together.
What I now need to do, is to "weld" all points that are at identical locations into ONE point.
I found a way to do that by executing an "Optimize Mesh", either through the menu or CallCommand, however, this will completely break if the user has changed the setting of "Optimize Mesh".
Is there a programmatic way of doing that? It might be doable through c4d.utils.SendModelingCommand (but that documentation is kind of minimal) or by iterating through all points and doing some magic (but that raises the question on how to efficiently find all "identical" points and how to merge them without breaking any polys and/or UV setups).
Any inputs welcome