-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vtk 9.4.0 fails #208
Comments
Actually, this should be fixed in |
I have the feeling that |
As I suspected, there are the following objects: > /Users/german.ayuso/Other_projects/ansys-tools-visualization-interface/src/ansys/tools/visualization_interface/backends/pyvista/widgets/mesh_slider.py(59)__init__()
-> self._mb = None
(Pdb) actors = self.plotter_helper._pl.scene.actors
(Pdb) actors
{'PolyData(Addr=0x12a7e3ed0)': Actor (0x17e5f2f20)
Center: (0.45175, 0.05, 0.0)
Pickable: True
Position: (0.0, 0.0, 0.0)
Scale: (1.0, 1.0, 1.0)
Visible: True
X Bounds 0.000E+00, 9.035E-01
Y Bounds 0.000E+00, 1.000E-01
Z Bounds 0.000E+00, 0.000E+00
User matrix: Identity
Has mapper: True
Property (0x17e7bfbe0)
Ambient: 0.0
Ambient color: Color(name='white', hex='#ffffffff', opacity=255)
Anisotropy: 0.0
Color: Color(name='white', hex='#ffffffff', opacity=255)
Culling: "none"
Diffuse: 1.0
Diffuse color: Color(name='white', hex='#ffffffff', opacity=255)
Edge color: Color(name='black', hex='#000000ff', opacity=255)
Edge opacity: 1.0
Interpolation: 0
Lighting: True
Line width: 1.0
Metallic: 0.0
Opacity: 1.0
Point size: 5.0
Render lines as tubes: False
Render points as spheres: True
Roughness: 0.5
Show edges: False
Specular: 0.0
Specular color: Color(name='white', hex='#ffffffff', opacity=255)
Specular power: 100.0
Style: "Surface"
DataSetMapper (0x17e5f2ec0)
Scalar visibility: True
Scalar range: (0.0, 0.004800000227987766)
Interpolate before mapping: True
Scalar map mode: point
Color mode: map
Attached dataset:
PolyData (0x17e5f1b40)
N Cells: 4
N Points: 8
N Strips: 0
X Bounds: 0.000e+00, 9.035e-01
Y Bounds: 0.000e+00, 1.000e-01
Z Bounds: 0.000e+00, 0.000e+00
N Arrays: 11, 'Addr=0x12a7effe0': <vtkmodules.vtkRenderingAnnotation.vtkScalarBarActor(0x12a7effe0) at 0x17e5f2fe0>}
(Pdb) type(actors)
<class 'dict'>
(Pdb) len(actors)
2
(Pdb) actors.keys()
dict_keys(['PolyData(Addr=0x12a7e3ed0)', 'Addr=0x12a7effe0'])
(Pdb) assert actors[list(actors.keys())[0]].mapper.dataset
(Pdb) assert actors[list(actors.keys())[1]].mapper.dataset
*** AttributeError: 'vtkmodules.vtkRenderingAnnotation.vtkScalarBarActo' object has no attribute 'mapper'
(Pdb) hasattr(actors[list(actors.keys())[1]], "mapper")
False
(Pdb) type(actors[list(actors.keys())[1]])
<class 'vtkmodules.vtkRenderingAnnotation.vtkScalarBarActor'> There are two objects, one is a polydata object (fine) and another one is an scalar bar actor and does not have this data. |
@AlejandroFernandezLuces can you give me some code that plot that kind of |
Not needed since Pyvista already fixed it. #209 (review) |
Attempted in ansys/pymapdl#3602
The traceback is:
The text was updated successfully, but these errors were encountered: