Esempio n. 1
0
    public void Display(string inpTxt)
    {
        Tuple <Function, Function> Equations = Parser.Parse(inpTxt);

        Equation          = Equations.Item1;
        IndicatorEquation = Equations.Item2;

        if (Equation == null)
        {
            return;
        }

        PlotMeshT plotMesh = MeshGenerator.MakePlot(gameObject, XBound, ZBound, 100, ShadingMode.heightmap);

        MeshGenerator.CopyMesh(topMesh, plotMesh.topMesh);
        MeshGenerator.CopyMesh(botMesh, plotMesh.botMesh);

        topFrame.Init(plotMesh.topMesh.vertices, plotMesh.topMesh.triangles, 50, 50);
        botFrame.Init(plotMesh.botMesh.vertices, plotMesh.topMesh.triangles, 50, 50, hoverOffset: -0.01f);
    }