IntensityMeshSeries with different amount of columns per row
Posted: Tue Sep 25, 2018 12:28 pm
In my application, I use the IntensityMeshSeries.
As data source for the mesh, the series needs an array,
So it's exactly specified how many columns and rows must be included, otherwise
this leads to a faulty presentation. I now face the problem that in my application under
circumstances may sometimes be less columns per row.
How could I build the mesh with a different amount of columns?
(everything ok with always the same number of columns per line) You can simulate the behavior by changing the method "CreateMeshGeometry()" in the attached sample project.
Please comment/uncomment the for-header in lines 146/147.
As data source for the mesh, the series needs an array,
So it's exactly specified how many columns and rows must be included, otherwise
this leads to a faulty presentation. I now face the problem that in my application under
circumstances may sometimes be less columns per row.
How could I build the mesh with a different amount of columns?
(everything ok with always the same number of columns per line) You can simulate the behavior by changing the method "CreateMeshGeometry()" in the attached sample project.
Please comment/uncomment the for-header in lines 146/147.
Code: Select all
for (int col = 0; col < rnd.Next(6, columns); col++)
//for (int col = 0; col < columns; col++)
{