Profile Picture

TriangulatedSurfaceChart with empty data points

Posted By joern kunze 10 Years Ago
Author
Message
joern kunze
Question Posted 10 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
Hi Experts,
SnippetI want to display grid based measurement data (X: 1,2,3.. Z:1,2,3) but with empty data points and no interpolation at all between data points.
So far I found a way to do it with NTriangulatedSurfaceSeries - here is a rough example with just 4 data points - where one data point is empty:
https://www.nevron.com/forum/uploads/images/90963ff0-7c01-41ae-993d-bdaa.jpg

Unfortunatly, I could not find a way to handle empty data points.
The upper left square should be completly empty since all corner values are NaN - but it isnt.

Is there a way to achieve this?
Or is there even an easier and better way than using Triangulated surface chart ? Basically I have transformed each measured data point to 4 points representing the points very close to the corner of the measured data point within the measurement grid - for example measurement point represented by the upper right yellowish square (X=2, Z=2 with value 3.1) is transformed to:
Snippet
surface.XValues.AddRange( new double[] {1.51, 1.51, 2,49, 2.49} );Snippet
surface.ZValues.AddRange( new double[] {1.51, 2.49, 1.51, 2.49});
Snippet
surface.Values.AddRange( new double[] {3.1, 3.1, 3.1 , 3.1});
This approach works (except for empty data points which are double.NaN) - but looks clumsy somehow ...

Thanks a lot for your help,
Joern




Similar Topics


Reading This Topic