Skip to content

Commit bb44695

Browse files
fix: Docstrings
1 parent 90416aa commit bb44695

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def view_zy(self) -> None:
136136
self.scene.view_zy()
137137

138138
def clip(
139-
self, mesh: Union[pv.PolyData, pv.MultiBlock], plane: ClipPlane
139+
self, mesh: Union[pv.PolyData, pv.MultiBlock, pv.UnstructuredGrid], plane: ClipPlane
140140
) -> Union[pv.PolyData, pv.MultiBlock]:
141141
"""Clip a given mesh with a plane.
142142
@@ -218,7 +218,7 @@ def plot_edges(self, custom_object: MeshObjectPlot, **plotting_options) -> None:
218218

219219
def plot(
220220
self,
221-
plottable_object: Union[pv.PolyData, pv.MultiBlock, MeshObjectPlot],
221+
plottable_object: Union[pv.PolyData, pv.MultiBlock, MeshObjectPlot, pv.UnstructuredGrid],
222222
name_filter: str = None,
223223
**plotting_options,
224224
) -> None:
@@ -229,7 +229,7 @@ def plot(
229229
230230
Parameters
231231
----------
232-
plottable_object : Union[pv.PolyData, pv.MultiBlock, MeshObjectPlot]
232+
plottable_object : Union[pv.PolyData, pv.MultiBlock, MeshObjectPlot, pv.UnstructuredGrid]
233233
Object to plot.
234234
name_filter : str, default: None
235235
Regular expression with the desired name or names to include in the plotter.
@@ -273,9 +273,6 @@ def plot_iter(
273273
) -> None:
274274
"""Plot elements of an iterable of any type of objects to the scene.
275275
276-
Supported object types are ``Body``, ``Component``, ``List[pv.PolyData]``,
277-
``pv.MultiBlock``, and ``Sketch``.
278-
279276
Parameters
280277
----------
281278
plotting_list : List[Any]

0 commit comments

Comments
 (0)