Home > Back-end >  O! C in a two-dimensional array, how to make a surface
O! C in a two-dimensional array, how to make a surface

Time:10-09

Each master!
The younger brother beginner c + +
Now there is a two dimensional array, array with values, how to make a 2 d array subscript as x, y, of 3 d surface array values for z axis??
Hope everybody to help me, thank you very much!!!!!!!!!!

CodePudding user response:

Do with Teechart surface figure,
No value z or z values, the surface have no change,

CodePudding user response:

Value is not to say that the array Z axis

CodePudding user response:

Design in the Teechart to join a TSurfaceSeries;
TSurfaceSeries * Series1;
Or dynamically at runtime to join:
# include "TeeSurfa. HPP
"TSurfaceSeries * Series1=new TSurfaceSeries (Chart1);
Chart1 - & gt; AddSeries (Series1);

Then the 3 d points in curved surface:
Int Z [100] [100];
Series1 - & gt; The Clear ();
For (int x=0; X & lt; 100; + + x)
For (int y=0; Y & lt; 100; + + y)
Series1 - & gt; AddXYZ (x, y, x/x, y);
Series1 - & gt; EndUpdate ();

CodePudding user response:

Point a lot of, use BeginUpdate (), EndUpdate (); To speed up
  • Related