Surface chart with more than one surface


Author
Message
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K
Hi

Is it possible to draw more than one surface on a grid surface chart?

We are generating a surface by fitting the best surface to a series of (x, y, z) points, and we want to overlay the original (x, y, z) data to see how good the fit is. The original data is ideally drawn as series of points, with a drop down line onto the base "plane" so we can get an idea where the points lie in relation to the fitted surface.

We would also want to highlight one point on the surface as a the selected surface location.

Hope this makes sense.

Thanks

Kevin
Replies
Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K
That's what I thought. Here's a sample of my code with the added points and lines:

for (int zIndex = 0; zIndex < zLength; zIndex++)
{
for (int xIndex = 0; xIndex < xLength; xIndex++)
{
gridSurface.Data.SetValue(xIndex, zIndex, yData[yIndex]);

series.AddDataPoint(new NDataPoint(xIndex, yData[yIndex], zIndex));

dropLines.AddDataPoint(new NDataPoint(xIndex, 0, zIndex));
dropLines.AddDataPoint(new NDataPoint(xIndex, yData[yIndex], zIndex));
dropLines.AddDataPoint(new NDataPoint(xIndex, double.NaN, zIndex));

yIndex++;
}
}

I wanted to attach an image but can't see how to. Basically the series and droplines ignore the z values. My grid has a maximum z of 5. Series is displayed at fixed z = 6 and droplines at z = 8.

I've tried adding the point surface, but that is also offset from the original surface.
The same thing happens if I switch to using a mesh surface.

I'm not quite on the latest version if this was fixed recently.

Any ideas?

Thanks

Kevin



Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Kevin,
Make sure that series and dropLines have UseXValues and UseZValues set to true. Is this the problem?


Best Regards,
Nevron Support Team


Kevin Harrison 1
Kevin Harrison 1
Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)
Group: Forum Members
Posts: 176, Visits: 1.9K
That would be it! Now we're getting somewhere. Now I need to work out how to make the surface partially transparent, so the points are readily visible.

Thanks for all the help and quick responses. Much appreciated.

Kevin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search