getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getfem_tvtk not working


From: Lorenzo Ferro
Subject: getfem_tvtk not working
Date: Sat, 20 Mar 2021 15:30:04 +0100

Dear All,

I've installed GetFEM (getfem5.3win-amd64-py3.7.exe) on Windows 10 with Anaconda 3 (mandatory generating a Python <= 3.7 environment) and Mayavi 4.7.1 via Conda repository.

When I run the demo_tripod.py the simulation runs correctly and I can see the results via Mayavi or GMSH but unfortunately I cannot see the getfem_tvtk output since I get the following messages:

---quote---
You can view the tripod with (for example) mayavi:
mayavi2 -d tripod.vtk -f WarpVector -m Surface
or
gmsh tripod.pos
Traceback (most recent call last):
  File ".\demo_tripod.py", line 146, in <module>
    fig.show(mfu, deformation=U, data="" deformation_scale='20%')
  File "C:\Users\Ferro\anaconda3\pkgs\getfem-5.4.1\interface\tests\python\getfem_tvtk.py", line 452, in show
    self.show_mesh_fem(mf, **args)
  File "C:\Users\Ferro\anaconda3\pkgs\getfem-5.4.1\interface\tests\python\getfem_tvtk.py", line 410, in show_mesh_fem
    self.actors += it.vtk_actors()
  File "C:\Users\Ferro\anaconda3\pkgs\getfem-5.4.1\interface\tests\python\getfem_tvtk.py", line 299, in vtk_actors
    self.mapper = tvtk.PolyDataMapper(input=data);
  File "C:\Users\Ferro\anaconda3\envs\Python37\lib\site-packages\tvtk\tvtk_classes.zip\tvtk_classes\poly_data_mapper.py", line 45, in __init__
  File "C:\Users\Ferro\anaconda3\envs\Python37\lib\site-packages\tvtk\tvtk_base.py", line 362, in __init__
    super(TVTKBase, self).__init__(**traits)
  File "C:\Users\Ferro\anaconda3\envs\Python37\lib\site-packages\traits\trait_type.py", line 67, in _read_only
    % (name, class_of(object))
traits.trait_errors.TraitError: The 'input' trait of a PolyDataMapper instance is 'read only'.
---unquote---

I'd like very much to use the internal visualizer and to produce direct outputs after the simulations.
Can anyone tell me what's going wrong?
Thank you in advance.
Lorenzo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]