[vtkusers] Saving a textured quad to file
blitz
subhadip9999 at gmail.com
Tue Feb 28 15:06:48 EST 2012
Hi I am new to vtk and I'm using it mainly with PCL.
What i have with me is a quad(I'll have polygons later on) and a jpeg image
that goes on it as texture. I want to save that in say .ply format so that I
can use some tool like MeshLab to view it later on.
I had a look at the http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WritePLY
writePLY tutorial. But they use a VtkSphereSource and then use
plyWriter->SetInputConnection(sphereSource->GetOutputPort());
for the textured quads I am setting it up like the one in the
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TextureMapQuad
example
How can I connect the two and write the textured quad to the ply file? Is
there something like vtkSphereSource that I need to set up?
I am pretty sure there must be some way to do this. Can anyone please help
me out - or link me up with some existing examples?
Thanks a lot!
--
View this message in context: http://vtk.1045678.n5.nabble.com/Saving-a-textured-quad-to-file-tp5523069p5523069.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list