Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

plot line on CNiGraph3D object

Hi
I am adding some new feature into the existing code that use CNiGraph3D to display data. The data is some amplitude associated with it's location of scan (x and y). The existing code scan data from a whole area, so the graph is filled. But the new feature will scan data from just a path (eg line). So I wonder if there's a way to plot line data on CNiGraph3D object.
 
For example, I have this sequence of data (represented in x,y,amplitde)
(5,17,3.6)
(6,15,-9.2)
(7,14,4.9)
(6,12,-0.27)
(5,10,-2.45)
 
I would like to plot this data on CNiGraph3D. The graph is 10 units wide on x axis, and 20 units tall on y axis. And different value of amplitude will be plotted in difference color on Z axis.
 
creating a matrix of 10x20 and fill the remaing coordinates (aside from those 5 coordinates above) with some constant value (0 or something else), but it's kind of waste of memory (my real code would be so much bigger than 10x20). So I wonder if there's any alternative way to plot this kind of data on CNiGraph3D?
 
Thanks
 
0 Kudos
Message 1 of 1
(3,282 Views)