Exemple #1
0
 public void AddToMesh(ModularMesh mesh, Material m)
 {
     if (mesh != null && edges[0].Vertex && edges[1].Vertex && edges[2].Vertex)
     {
         mesh.AddTriangle(this, m);
         meshes.Add(new MeshParticipant(mesh, m));
         //meshes.Add(mesh);
     }
     //else
     //Debug.Log("Triangle has null vertices and will not be added to its Mesh");
 }