SurfacePlotDemo: Points set to Double.NaN cause view cutted
I am trying to change the SurfacePlotDemo in which I want to not show a portion of the Points of the Rectangular Mesh. I tried to set the Points to Double.NaN and I can see the surface without the points but the view looks like cutted. The points that I want to exclude are excluded correctly, but the view seems to be cutted at some view angles.
If I rotate the camera the surface is shown correctly
Here is the code
public Point3D[,] CreateDataArray(Func<double, double, double> f)
{
var data = new Point3D[Rows, Columns];
for (int i = 0; i < Rows; i++)
for (int j = 0; j < Columns; j++)
{
var pt = GetPointFromIndex(i, j);
data[i, j] = new Point3D(pt.X, pt.Y, f(pt.X, pt.Y)*10);
if (i >= 0 && i < 10 && j >=0 && j < 100)
{
data[i, j] = new Point3D(double.NaN, double.NaN, double.NaN);
}
}
return data;
}
Is the only change with respect to the original example.
If I don't set any point to Double.NaN I see the surface correctly shown at any angle.
I am doing this on Windows 10 64bit, if I try on Win7 32 bit the cutting doesn't happen.
Questions:
Is setting points to NaN the correct way to not create parts of the regular mesh?
Are there any instructions to avoid this cutting?
Regards
Marco
Customer support service by UserEcho
Here is How it looks like if change view angle
I have read many blogs. This blog is the best I have ever come across. Thanks for creating this blog.
cash or crash
สมัครสมาชิกเว็บเกมขึ้นยาน cash or crash
https://binaryreviewsrace.com/สมัครเล่นเกม-cash-or-crash/