<HTML>
<HEAD>
<TITLE>Bad reader names in paraview.simple (Was: using with python to read file VTK in 3.4 and 3.5)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Berk,<BR>
<BR>
Looking at readers.xml I see that the STL reader is overriding the STL reader because it has the wrong label. Could you fix this please (and make sure it gets to the 3.6 branch)?<BR>
<BR>
Also, the capitalization of the readers is weird. It is LegacyVTKreader, but shouldn’t it be LegacyVTKReader? It seem wrong not to have “reader” capitalized don’t you think? This naming is pervasive on many readers.<BR>
<BR>
-Ken<BR>
<BR>
On 5/20/09 4:32 AM, "BOUSSOIR Jonathan 167706" <<a href="Jonathan.BOUSSOIR@cea.fr">Jonathan.BOUSSOIR@cea.fr</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
Hi all,<BR>
<BR>
I am new to paraview, I am using Linux and Paraview 3.4 or/and 3.5. I have 4 questions (with two themes) when I would like reading a file VTK.<BR>
<BR>
- I have made a sphere (surface) with Paraview and saved in a file .VTK<BR>
With python and paraview 3.4, I can read and see the file.<BR>
from paraview.servermanager import *<BR>
connection = servermanager.Connect('localhost')<BR>
reader = servermanager.sources.LegacyVTKFileReader(FileNames='sphere.vtk')<BR>
view = servermanager.CreateRenderView()<BR>
rep = servermanager.CreateRepresentation(reader, view)<BR>
view.ResetCamera()<BR>
view.StillRender()<BR>
<BR>
With paraview 3.5, I can read but not see.<BR>
I have changed "from paraview.servermanager import *" by "from paraview.simple import *"<BR>
and "servermanager.sources.LegacyVTKFileReader" by "servermanager.sources.LegacyVTKreader"<BR>
<BR>
<BR>
- I have made a wavelet (volume) with Paraview and saved in a file .VTK<BR>
With python and paraview 3.4, I can read and can't see.<BR>
I have tried to add "rep.Representation = 4" to see with the volume, but I have a error "Cell scalars not supported, Segmentation error" when I excute the line with "view.StillRender()"<BR>
<BR>
With python and paraview 3.5, I had already a error "Segmentation error" when I read the file. And I don't know how I must do to have the representation with volume.<BR>
<BR>
<BR>
I have done with a file simple to do the examples because I'll have another file VTK to read like that.<BR>
Thanks in advance for your kind help.<BR>
<BR>
Regards,<BR>
Jona<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>