Skip to content

Commit 12da196

Browse files
RobPasMueAlejandroFernandezLuces
authored andcommitted
Bump version 0.9.1
1 parent 966c799 commit 12da196

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

doc/changelog.d/281.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: pyvista read-only behaviour

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "ansys-tools-visualization-interface"
7-
version = "0.9.0"
7+
version = "0.9.1"
88
description = "A Python visualization interface for PyAnsys libraries"
99
readme = "README.rst"
1010
requires-python = ">=3.10,<4"

src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ def clip(
180180
Clipped mesh.
181181
182182
"""
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)
184188

185189
def plot_meshobject(self, custom_object: MeshObjectPlot, **plotting_options):
186190
"""Plot a generic ``MeshObjectPlot`` object to the scene.

0 commit comments

Comments
 (0)