[vtkusers] How to write a collection of vtkSphereSource on a .vtk file?

Massimiliano Folco massimiliano.folco at gmail.com
Thu Jul 21 06:55:07 EDT 2011


Ok,thanks for your reply,this is exactly what I was searching for.

Thanks
Massimiliano

2011/7/19 David Doria <daviddoria at gmail.com>

> On Tue, Jul 19, 2011 at 10:57 AM, Massimiliano Folco
> <massimiliano.folco at gmail.com> wrote:
> > Hi David,
> > thanks for your kind and useful reply, now I have a better idea about
> what
> >  I should do to save and recombine polydata.
> > But I have to better specify my question: can you tell me if there is a
> way
> > to save the mesh of the sphere sources that I have rendered?
> > I need to write files that can be loaded by 3Dslicer and these files
> should
> > be .vtk files and should contain spheres ,not only points like I have
> read
> > in http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP.
> > Thanks
> > Massimiliano
>
> Please keep the conversation on the mailing list.
>
> If you use the SphereSource as the input to the XMLPolyDataWriter, the
> mesh will also be included in the file, not just the points:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110721/4601b385/attachment.htm>


More information about the vtkusers mailing list