Hi.
I've written a code to seperate a mesh into submeshes if it has seperated faces or vertices. It has been worked with a simple mesh but not working with a complex mesh. I cannot figured it out what am I doing wrong? Is there any better way to do this.
public static Mesh[] Split(Mesh mesh)
{
List indices = new List(mesh.triangles);
List
- > indexGroups = new List
- >();
// Listede index kaldıkça işleme devam et
while (indices.Count > 0)
{
bool matchFound = false;
// Her bir index grubun...
foreach (List