[Paraview] RE : [paraview] using with python to read file VTK in 3.4 and 3.5

Berk Geveci berk.geveci at kitware.com
Wed Jun 3 20:49:59 EDT 2009


You are welcome. Thank you for reporting all the issues.

-berk

On Wed, Jun 3, 2009 at 3:48 AM, BOUSSOIR Jonathan 167706
<Jonathan.BOUSSOIR at cea.fr> wrote:
> Hi Berk,
> I read a lot of paraview emails during the weekend 24-25/05 and also next Monday. I understand than you had been working hard on python script. I have downloaded last cvs version (3.7) and compile. All problems had been fixed.
> Now I can read a file VTK with python.
> Thank you very much.
> Regards,
> Jona
>
>
> -------- Message d'origine--------
> De: Berk Geveci [mailto:berk.geveci at kitware.com]
> Date: mer. 03/06/2009 01:51
> À: BOUSSOIR Jonathan 167706
> Cc: paraview at paraview.org
> Objet : Re: [Paraview] [paraview] using with python to read file VTK in 3.4 and 3.5
>
> I can't remember if I responded to this. I fixed this issue as well as
> a few others on cvs head and 3.6 branch.
>
> -berk
>
> On Wed, May 20, 2009 at 6:32 AM, BOUSSOIR Jonathan 167706
> <Jonathan.BOUSSOIR at cea.fr> wrote:
>>
>> Hi all,
>>
>> 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.
>>
>> - I have made a sphere (surface) with Paraview and saved in a file .VTK
>> With python and paraview 3.4, I can read and see the file.
>>        from paraview.servermanager import *
>>        connection = servermanager.Connect('localhost')
>>        reader = servermanager.sources.LegacyVTKFileReader(FileNames='sphere.vtk')
>>        view = servermanager.CreateRenderView()
>>        rep = servermanager.CreateRepresentation(reader, view)
>>        view.ResetCamera()
>>        view.StillRender()
>>
>> With paraview 3.5, I can read but not see.
>>        I have changed "from paraview.servermanager import *" by "from paraview.simple import *"
>>        and "servermanager.sources.LegacyVTKFileReader" by "servermanager.sources.LegacyVTKreader"
>>
>>
>> - I have made a wavelet (volume) with Paraview and saved in a file .VTK
>> With python and paraview 3.4, I can read and can't see.
>> 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()"
>>
>> 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.
>>
>>
>> I have done with a file simple to do the examples because I'll have another file VTK to read like that.
>> Thanks in advance for your kind help.
>>
>> Regards,
>> Jona
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>


More information about the ParaView mailing list