[vtkusers] Re: how to write vtkPoints into a vtk file?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Mar 1 08:40:49 EST 2005


Hi

Put your vtkPoints into a dataset like vtkPolyData and write that to disk...

vtkPoints points
    points InsertPoint 0 1 2 3
vtkPolyData data
    data SetPoints points

vtkPolyDataWriter writer
    writer SetInput data
    writer SetFileName c:/points.vtk
    writer Write

hth

Goodwin

"Yang, Yuhui" <yuhui.yang at imperial.ac.uk> wrote in message
news:2A1F3E27491CBF46BC14ACB3E5C7D89A0D452F at icex3.ic.ac.uk...
Sorry if i have multi-posted. it keeps telling me undelieved.

Hi, I am trying to write the points into a file. i have tried some methods
but they don't work for me.
should I transform the vtkpoints to some other formats?

the purpose for writing into a file is doing point-based registration, how
can i do that?

thanks alot



_______________________________________________
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