This is my first time posting a question. In general, I am trying to plot a polynomial over a parallelogram but ran into trouble with a square.
f[x_, y_] := x + y;
domain = Parallelogram[{1/4, 0}, {{1/4, 0}, {0, 1/4}}];
Plot3D[f[x, y], {x, y} ϵ domain]
This gives the error
Plot3D::idomdim: {x,y}ϵdomain does not have a valid dimension as a plotting domain.
I don't get an error if I provide the plotting domain another way
Plot3D[f[x, y], {x, 1/4, 1/2}, {y, 0, 1/4}]
I'm running Mathematica 11.3
Region
needs to be aMeshRegion
.. perhaps tryPlot3D[f[x,y],{x,y}\[Element]DiscretizeRegion@domain]
. It would be nice if the documentation was clearer about this. $\endgroup$DiscretizeRegion
. For example, plotting overdomain = Parallelogram[{1/4, 1/4}, {{1/4, 0}, {0, 1/4}}];
works fine. $\endgroup$