Skip to content

Commit

Permalink
Bump version 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroFernandezLuces committed Sep 6, 2024
1 parent f5625e3 commit cec0425
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/140.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: Missing support for unstructured grid types
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "ansys-tools-visualization-interface"
version = "0.4.2"
version = "0.4.3"
description = "A Python visualization interface for PyAnsys libraries"
readme = "README.rst"
requires-python = ">=3.9,<4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def plot(
return self._object_to_actors_map

# Check what kind of object we are dealing with
if isinstance(plottable_object, pv.PolyData):
if isinstance(plottable_object, (pv.PolyData, pv.UnstructuredGrid)):
if "clipping_plane" in plotting_options:
mesh = self.clip(plottable_object, plotting_options["clipping_plane"])
plotting_options.pop("clipping_plane", None)
Expand Down
7 changes: 7 additions & 0 deletions tests/test_generic_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ def test_plotter_add_mb():
pl.plot(mb)
pl.show()

def test_plotter_add_unstructured_grid():
"""Adds unstructured grid to the plotter."""
pl = Plotter()
sphere = pv.Sphere()
ug = pv.UnstructuredGrid(sphere)
pl.plot(ug)
pl.show()

def test_plotter_add_custom():
"""Adds a MeshObjectPlot object to the plotter."""
Expand Down

0 comments on commit cec0425

Please sign in to comment.