[vtkusers] drawing a line

Nico Vermaas vermaas at astron.nl
Thu Jul 17 05:37:16 EDT 2003


That works, thanks...

>>> "R K Shyamprakash" <ramakrishna.prakash at quest-global.com> 07/17/03 10:48am >>>
Why not use vtkLineSource? following code is in java

vtkLinewSource line = new vtkLineSource();
line.SetPoint1(x1,y1,z1);
line.SetPoint2(x2,y2,z2);

vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInput(line.GetOutput());

....create actor

regards
Shyam

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
Nico Vermaas
Sent: Thursday, July 17, 2003 12:57 PM
To: >
Subject: [vtkusers] drawing a line


Hi,

A simple question. What would be the best way to simply draw line from
x1,y1,z1 to x2,y2,z2 in VTK? Make a polydata?

Nico

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers 





More information about the vtkusers mailing list