Hi,
I’m trying to draw a mesh surface, with draw flat, zone colouring, with using empty data point when data is not available for them.
Take an example of a “grid” of 3 by 3.
If all 9 point have data the surface the countour map is draw perfect.
If I remove data for the middle points in the outter lines, the surface is draw incorrectly, sometimes with nothing being draw at all.
The basic settings I’m using:
m_Surface[layer].FillStyle = SurfaceFillStyle.Zone;
m_Surface[layer].FrameStyle = SurfaceFrameStyle.None;
m_Surface[layer].FrameLine.Width = 0;
m_Surface[layer].DrawFlat = true;
m_Surface[layer].AutomaticPalette = false;
m_Surface[layer].PositionMode = SurfacePositionMode.CustomValue;
m_Surface[layer].PositionValue = layer * dIncrementY;
To add point data:
if (!temp.Equals(double.NaN))
{
m_Surface[layer].Data.SetValue(x, z, temp, x, z);
}
else
{
m_Surface[layer].Data.SetValue(x, z, DBNull.Value, x, z);
}
What I’m doing wrong?
Any help is appreciated.
Imported from legacy forums. Posted by Jose (had 2190 views)