The Non-Uniform SurfaceMesh 3D Type
Examples for the Non-Uniform 3D Surface Mesh Chart can be found in the SciChart WPF Examples Suite which can be downloaded from the SciChart Website or our SciChart.WPF.Examples Github Repository.
The surface mesh can also draw data with non-uniform spacing in Z and X with a slight variation in the code. We use a NonUniformGridDataSeries3D and pass X,Z Steppings to the constructor to space out the cells in the X and Z planes.
Data is stored in the NonUniformGridDataSeries3D Type. This represents a 2-dimensional array of arrays (or 2D Jagged array) typically of type Double (but can be defined with generics).
Some important points to note:
- The double values stored in the NonUniformGridDataSeries3D correspond to the heights on the chart (the Y-Axis). They are transformed into chart World Coordinates via the SciChart3DSurface.YAxis.
- The Z and X Data-Value is defined by the XStepping and ZStepping functions passed to the NonUniformGridDataSeries3D constructor. These are also transformed into World Coordinates via the SciChart3DSurface.ZAxis and XAxis respectively.
- The Colours on the SurfaceMesh are defined by the MeshColorPalette. More on this in the following sections.
See Also