ansys-tools-visualization-interface 0.8.3__py3-none-any.whl → 0.9.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -476,7 +476,7 @@ class PyVistaBackendInterface(BaseBackend):
476
476
  # Update all buttons/widgets
477
477
  [widget.update() for widget in self._widgets]
478
478
 
479
- self.show_plotter(screenshot)
479
+ self.show_plotter(screenshot, **plotting_options)
480
480
 
481
481
  picked_objects_list = []
482
482
  if isinstance(plottable_object, list):
@@ -493,7 +493,7 @@ class PyVistaBackendInterface(BaseBackend):
493
493
 
494
494
  return picked_objects_list
495
495
 
496
- def show_plotter(self, screenshot: Optional[str] = None) -> None:
496
+ def show_plotter(self, screenshot: Optional[str] = None, **kwargs) -> None:
497
497
  """Show the plotter or start the `trame <https://kitware.github.io/trame/index.html>`_ service.
498
498
 
499
499
  Parameters
@@ -512,7 +512,8 @@ class PyVistaBackendInterface(BaseBackend):
512
512
  visualizer.set_scene(self._pl)
513
513
  visualizer.show()
514
514
  else:
515
- self.pv_interface.show(screenshot=screenshot)
515
+ jupyter_backend = kwargs.pop("jupyter_backend", None)
516
+ self.pv_interface.show(screenshot=screenshot, jupyter_backend=jupyter_backend)
516
517
 
517
518
  pv.OFF_SCREEN = self._pv_off_screen_original
518
519
 
@@ -180,7 +180,11 @@ class PyVistaInterface:
180
180
  Clipped mesh.
181
181
 
182
182
  """
183
- return mesh.clip(normal=plane.normal, origin=plane.origin)
183
+ # Make sure to pass new copies/objects to the mesh for the normal
184
+ # This should be fixed by PyVista eventually... it is coming from
185
+ # https://github.com/pyvista/pyvista/commit/2db1888a294a14e4f28a140d8aa0466d332912dc
186
+ return mesh.clip(normal=[elem for elem in plane.normal],
187
+ origin=plane.origin)
184
188
 
185
189
  def plot_meshobject(self, custom_object: MeshObjectPlot, **plotting_options):
186
190
  """Plot a generic ``MeshObjectPlot`` object to the scene.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ansys-tools-visualization-interface
3
- Version: 0.8.3
3
+ Version: 0.9.1
4
4
  Summary: A Python visualization interface for PyAnsys libraries
5
5
  Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
6
6
  Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
@@ -18,25 +18,25 @@ Requires-Dist: pyvista >= 0.43.0,<1
18
18
  Requires-Dist: websockets >= 12.0,< 16
19
19
  Requires-Dist: trame >= 3.6.0,<4
20
20
  Requires-Dist: trame-vtk >= 2.8.7,<3
21
- Requires-Dist: trame-vuetify >= 2.4.3,<3
22
- Requires-Dist: ansys-sphinx-theme==1.2.4 ; extra == "doc"
21
+ Requires-Dist: trame-vuetify >= 2.4.3,< 4
22
+ Requires-Dist: ansys-sphinx-theme==1.3.2 ; extra == "doc"
23
23
  Requires-Dist: jupyter_sphinx==0.5.3 ; extra == "doc"
24
24
  Requires-Dist: jupytext==1.16.7 ; extra == "doc"
25
25
  Requires-Dist: nbsphinx==0.9.6 ; extra == "doc"
26
26
  Requires-Dist: numpydoc==1.8.0 ; extra == "doc"
27
- Requires-Dist: sphinx==8.1.3 ; extra == "doc"
28
- Requires-Dist: sphinx-autoapi==3.4.0 ; extra == "doc"
27
+ Requires-Dist: sphinx==8.2.3 ; extra == "doc"
28
+ Requires-Dist: sphinx-autoapi==3.6.0 ; extra == "doc"
29
29
  Requires-Dist: sphinx-copybutton==0.5.2 ; extra == "doc"
30
30
  Requires-Dist: sphinx_design==0.6.1 ; extra == "doc"
31
- Requires-Dist: sphinx-gallery==0.18.0 ; extra == "doc"
31
+ Requires-Dist: sphinx-gallery==0.19.0 ; extra == "doc"
32
32
  Requires-Dist: sphinx-jinja==2.0.2 ; extra == "doc"
33
- Requires-Dist: ansys-fluent-core==0.28.1 ; extra == "doc"
33
+ Requires-Dist: ansys-fluent-core==0.30.3 ; extra == "doc"
34
34
  Requires-Dist: pyside6 >= 6.8.0,<7 ; extra == "pyvistaqt"
35
35
  Requires-Dist: pyvistaqt >= 0.11.1,<1 ; extra == "pyvistaqt"
36
- Requires-Dist: pytest==8.3.4 ; extra == "tests"
36
+ Requires-Dist: pytest==8.3.5 ; extra == "tests"
37
37
  Requires-Dist: pytest-pyvista==0.1.9 ; extra == "tests"
38
- Requires-Dist: pytest-cov==6.0.0 ; extra == "tests"
39
- Requires-Dist: pyside6==6.8.1 ; extra == "tests"
38
+ Requires-Dist: pytest-cov==6.1.1 ; extra == "tests"
39
+ Requires-Dist: pyside6==6.9.0 ; extra == "tests"
40
40
  Project-URL: Discussions, https://github.com/ansys/ansys-tools-visualization-interface/discussions
41
41
  Project-URL: Documentation, https://visualization-interface.tools.docs.pyansys.com/
42
42
  Project-URL: Issues, https://github.com/ansys/ansys-tools-visualization-interface/issues
@@ -3,8 +3,8 @@ ansys/tools/visualization_interface/plotter.py,sha256=Q2WCPzq5w5bz84cEeknSGUqILY
3
3
  ansys/tools/visualization_interface/backends/__init__.py,sha256=QrhkJRa-r6kqBqdw7FVPE4eofL4RGC5FcWM20Pgjcr0,1180
4
4
  ansys/tools/visualization_interface/backends/_base.py,sha256=pR_uqDCngqpuPsoA5qPI4Ul8kPqB_nMGZTCIbcjPBBM,1871
5
5
  ansys/tools/visualization_interface/backends/pyvista/__init__.py,sha256=V7w7QRUGTxmyl4eW5uZeY-mBjrrz9cN-T8HeS2qOC3E,1320
6
- ansys/tools/visualization_interface/backends/pyvista/pyvista.py,sha256=oe_Z7g20svWTLZma9Rs4AfCa015kG6MsBhtWGh9DYvk,25855
7
- ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py,sha256=qam09sNV_C1jNTSfuSwpWStABbox_cyctO0PmXzjaoc,15344
6
+ ansys/tools/visualization_interface/backends/pyvista/pyvista.py,sha256=YA2xc-bo3jndnghuAXJovI4IYt4NdVgePm-ZyPac0oU,25984
7
+ ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py,sha256=H5h8aoamLhygHjOfLzxQlf_NTXxzdZDNzGBw5F2R34k,15629
8
8
  ansys/tools/visualization_interface/backends/pyvista/trame_local.py,sha256=6jIDMqJhZGUPru3ebfKflW9qIHOikUl5zrLGFsMCGP0,2996
9
9
  ansys/tools/visualization_interface/backends/pyvista/trame_remote.py,sha256=LxiVbwyvKoBiOX5wj_U4oZ7E-i-_gD3z7H2ZMC6UiSU,2834
10
10
  ansys/tools/visualization_interface/backends/pyvista/trame_service.py,sha256=eseK01KmnXherN-sMyv5XSmkLeD_7mPd32BFT97K3K0,5404
@@ -59,7 +59,7 @@ ansys/tools/visualization_interface/utils/__init__.py,sha256=KMyCn7hV7fzhvMntMqH
59
59
  ansys/tools/visualization_interface/utils/clip_plane.py,sha256=Mbavan9rZu86hgoBunEwWfh6Ts2mQJUCzUw9jEifrDU,2911
60
60
  ansys/tools/visualization_interface/utils/color.py,sha256=OPOO87b4bE00aRR014ob__82_rllLKu86kI1hQGmxFc,1641
61
61
  ansys/tools/visualization_interface/utils/logger.py,sha256=SRw6fcjly5dabAn4xRLYoug3WBoGulX9znSopCv4jA4,3825
62
- ansys_tools_visualization_interface-0.8.3.dist-info/LICENSE,sha256=hG7YAylqSVoTbB2JgP7Euy_f2WZRx8zwJ_x4yMttDTg,1098
63
- ansys_tools_visualization_interface-0.8.3.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
64
- ansys_tools_visualization_interface-0.8.3.dist-info/METADATA,sha256=GCx_UL82QyQxniiNoI82qLzQJnMdkxCALQskqy9dBQI,7250
65
- ansys_tools_visualization_interface-0.8.3.dist-info/RECORD,,
62
+ ansys_tools_visualization_interface-0.9.1.dist-info/LICENSE,sha256=hG7YAylqSVoTbB2JgP7Euy_f2WZRx8zwJ_x4yMttDTg,1098
63
+ ansys_tools_visualization_interface-0.9.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
64
+ ansys_tools_visualization_interface-0.9.1.dist-info/METADATA,sha256=8D2ock9IQkcPcOU-D7u8OAVkNhn5gRtzas8MILdAcG4,7251
65
+ ansys_tools_visualization_interface-0.9.1.dist-info/RECORD,,