[vtkusers] Draw a line ...help help :(

leung fung man german_leung at hotmail.com
Sat Dec 23 04:20:18 EST 2000


Dear All VT¢Ù¡@user:
I am a beginner user in VTK. I want to draw a line(construct by many points) 
on the screen when I input the XYZ coordinate.  I will update the coorindate 
by the encoder loop, and put the new coorindate into the following program 
to draw a new point to create a line on the screen.  I try the following 
program but can not work:--(
--------------------------------------
#draw the line path
vtkPoints points
	points InsertPoint 0 20 10 0 # I will call the coorindate from the encoder
vtkCellArray lines
	lines InsertCellPoint 0
vtkPolyDataNormals normalss
	normalss SetInput [lines GetOutput]
vtkLODActor linesActor
	linesActor SetMappper linesMapper
--------------------------------------
Please sent me some idea of this!
Any advise was great help on me!!
Merry X'mas for all VTK User!

Thank you very much

Best Regards,
German Leung
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the vtkusers mailing list