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); }
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); }