- Home /
How can i merge mesh vertices using a script?
Long story short: i want to merge two meshes using a C# script. Though what i want is not just two meshes made into one. I want the vertices of the mesh to bind to each other if close enough. Like this:
The meshes on this picture are a bit wonky. Its something in threw together quite quickly in blender.
Can this even be done programatically in unity? I need this merging done programatically and then preferably in C#. Any help is greatly appreciated. Thanks in advance.
Answer by kevinrocks_786 · Mar 28, 2016 at 12:01 AM
To be honest, it probably IS possible, however you might want to take a look Mesh.vertices.
Take a look at this and the sample script. Notice how they manipulate the vertices.
Answer by BergOnTheJob · Jul 10, 2020 at 02:56 PM
I found this tool set, the Oasis Mesh Editor, it can Split Vertices and Merge Vertices back together, along with a bunch of other modeling tools. https://assetstore.unity.com/packages/slug/166155
Perhaps this tool set will work to just extend one mesh to envelope the other. =)
Your answer
Follow this Question
Related Questions
Git Version Control Merging 1 Answer
Combining two objects in Probuilder that their meshes overlap. - New user question 1 Answer
Merging meshes 0 Answers
How to merge 2 projects into one 1 Answer