// Update is called once per frame void Update() { if (inputReceived) { manageText(); inputReceived = false; updateOverlay = true; bool isValid = expressionSet.CompileAll(); displayParam = new CustomParametrizedSurface.DisplayParam(); displayParam.xExpression = expressionSet.expressions[X].rawText; displayParam.yExpression = expressionSet.expressions[Y].rawText; displayParam.zExpression = expressionSet.expressions[Z].rawText; displayParam.uExpression = expressionSet.ranges["u"].Max.rawText; displayParam.vExpression = expressionSet.ranges["v"].Max.rawText; ManageFeedback(); if (isValid) { paramSurface.GenerateParticles(); } } if (toExport) { toExport = false; paramSurface.GenerateMesh(); } }
// Update is called once per frame void Update() { if (updateText || inputReceived) { manageText(); updateText = false; } if (inputReceived) { inputReceived = false; updateOverlay = true; bool isValid = expressionSet.CompileAll(); ManageFeedback(); if (isValid) { paramSurface.GenerateParticles(); } } if (toExport) { toExport = false; paramSurface.GenerateMesh(); } }
public void UpdateFunctions() { Clear(); //if (es.CompileAll()) //{ es.CompileAll(); expX = solver.SymbolicateExpression(es.expressions["X"].expression); expY = solver.SymbolicateExpression(es.expressions["Y"].expression); expZ = solver.SymbolicateExpression(es.expressions["Z"].expression); //} //else //{ // return; //} //try //{ // expX = solver.SymbolicateExpression(expressionX); // expY = solver.SymbolicateExpression(expressionY); // expZ = solver.SymbolicateExpression(expressionZ); //} //catch //{ // return; //} CalculateVectors(); DrawVectorField(); }
// Reset the threads and prepare to run new calculations so long as the plotter is not graphing public void UpdateFunctions() { if (drawn) { drawn = false; Clear(); //if (es.CompileAll()) //{ es.CompileAll(); expX = solver.SymbolicateExpression(es.expressions["X"].expression); CalculateVectors(); } else { drawQueue++; } //DrawDensityPlot(); }