[vtkusers] RE: Display scattered points (Re-send)
Xianjin Yang
Yang at AGIUSA.COM
Thu Mar 20 11:44:26 EST 2003
Hi VTK users,
How do I show/display some scattered points in VTK? I am new to VTK and this is
my first (simple?) VTK project. You may assume my scattered points are stored in
an array like P[N][3], N points with (X, Y, Z) coordinates. It would be great if
I have control of point's size and color. In OpenGL, the code may look like this
for (i=0; i<N; i++)
{
glBegin(GL_POINTS);
glColor4d(r, g, b, a);
glPointSize(size);
glVertex3d(P[i][0], P[i][1], P[i][2]);
glEnd();
}
Any hints or tips or pseudocode in any programming language will be appreciated.
Xianjin Yang
More information about the vtkusers
mailing list