Ejemplo n.º 1
0
    public void GenerateMesh(Pair2D pair)
    {
        List <Mesh2DTriangle> trianglesList = new List <Mesh2DTriangle>();

        trianglesList.Add(Max2DMesh.CreateLineNew(pair, lineWidth, transform.position.z + lineOffset));
        mesh = Max2DMesh.ExportMesh2(trianglesList);
    }
Ejemplo n.º 2
0
 static public Mesh GetMesh()
 {
     if (mesh == null)
     {
         List <Mesh2DTriangle> triangles = new List <Mesh2DTriangle>();
         triangles.Add(Max2DMesh.CreateBox(0.25f));
         mesh = Max2DMesh.ExportMesh2(triangles);
     }
     return(mesh);
 }