Do I have to duplicate the vertices that are shared between each section in CreateMeshSection?
I'm using CreateMeshSection to create a grid.
Since I want to later in the game update the mesh during run time, I believe it's important to split my mesh into sections instead of having one giant section for everything.
My question is simple: In order to split my mesh into smaller sections, do I have to duplicate the vertices that are shared between each section? I ask because if not, I wont be able to reference the vertices in my triangle array (which is an index buffer).
Also, if I already have the entire data for the mesh, is there anything I can do to not have to copy each array item into smaller TArray sections so I can pass to CreateMeshSection?
Any info is much appreciated. Thanks!
Short answer, yes yo do. Not so short, it depends on what you are going to do with it. If you will forever have just one smoothsurface all the way you can get away with loading all vertices once. However, if you, for any reason, want to split or seperate one part from another you need duplicates. Otherwise you would get a non-manifold mesh, which is by definition not allowed.
answered Aug 05 '16 at 07:24 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here