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