[vtkusers] How to display x, y, and z in 3D
Jurgen H.
jurgen30 at msn.com
Tue May 25 20:30:46 EDT 2004
Hello
Can someone help me to solve problem?
I have a matrix 500 x 500, (250000 points) on each point a have a value (Z)
that ranges between 0 and 1000, I would like to make a visualization of
values (Z) at each point representing it in heights and colors if it is
possible.
Example of the data that I deal with:
X-ose Y-ose Z-ose
0 0 50
0 1 375
0 2 24
.. .. ..
0 499 240
1 0 80
1 1 1000
1 2 670
.. .. ..
499 497 38
499 498 789
499 499 250
Here is the code in c++ to generate a matrix 500 x 500
int count = 0;
int tt;
int jj;
for ( jj = 0; jj < 500; jj++)
{
for ( tt= 0; tt < 500; tt++)
{
Xose[count] = jj;
Yose[count] = tt;
Zose[count] = tt * 2; /* don't forget to input random values */
count++;
}
}
_________________________________________________________________
Get 200+ ad-free, high-fidelity stations and LIVE Major League Baseball
Gameday Audio! http://radio.msn.click-url.com/go/onm00200491ave/direct/01/
More information about the vtkusers
mailing list