[vtkusers] Drawing lines in a 3D environment
Shakes
Shekhar.Chandra at sci.monash.edu.au
Mon Jun 30 16:31:31 EDT 2008
Hi Dmitri,
Yes there is in my experience. Use the class vtkLineSource. It would
look similar to:
line = vtkLineSource::New();
mapper = vtkPolyDataMapper::New();
actor = vtkActor::New();
line->SetPoint1(0,0,0);
line->SetPoint2(0,2,0);
line->Update();
mapper->SetInput(line->GetOutput());
mapper->Update();
actor->SetMapper(mapper);
Then ur usual vtk render stuff. Hope that helps.
Cheers
Shakes
Dmitri Danewitz wrote:
>
> Hello!
>
>
>
> I´ve a 3D highway network (made of polygons) and would like to ask if
> there is a possibility to draw lines (by x,y,z coordinates) in.
>
>
>
> Greets
>
> Dmitri
>
>
> ------------------------------------------------------------------------
> Gesendet von Yahoo! Mail
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52427/*http://de.overview.mail.yahoo.com>.
>
> Dem pfiffigeren Posteingang.
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list