public Mesh(Surface surface, double seed, double left, double right, double bottom, double top, bool doubleSurface, bool net) { this.surface = surface; this.seed = seed; this.left = left; this.right = right; this.bottom = bottom; this.top = top; this.doubleSurface = doubleSurface; this.net = net; }
public void enterData() { List<CommonFunction> coordinates = new List<CommonFunction>(); coordinates.Add(MathParserObjective.ParseExpressionObject(x.Text, new string[] { "u", "v" })); coordinates.Add(MathParserObjective.ParseExpressionObject(y.Text, new string[] { "u", "v" })); coordinates.Add(MathParserObjective.ParseExpressionObject(z.Text, new string[] { "u", "v" })); VectorFunction r = new VectorFunction(coordinates); surface = new Surface(r); double left = MathParserObjective.ParseExpression(this.left.Text, null)(null); double right = MathParserObjective.ParseExpression(this.right.Text, null)(null); double bottom = MathParserObjective.ParseExpression(this.bottom.Text, null)(null); double top = MathParserObjective.ParseExpression(this.top.Text, null)(null); double seed = MathParserObjective.ParseExpression(this.seed.Text, null)(null); mesh = new Mesh(surface, seed, left, right, bottom, top, true, (bool)this.net.IsChecked); mesh.computeMesh(); }