solidipes.viewers.pyvista_plotter module

class solidipes.viewers.pyvista_plotter.PyvistaPlotter(data_container=None, add_kwargs={}, show_kwargs={}, **kwargs)[source]

Bases: Viewer

Viewer for pyvista meshes

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter constructor

_abc_impl = <_abc._abc_data object>
_update_path_list(data_container)[source]
add(data_container, **kwargs)[source]

Add mesh to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method

add_mesh(data_container: DataContainer, **kwargs)[source]

Add mesh to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method

add_points(data_container, **kwargs)[source]

Add mesh as points to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_points method

plotter

Pyvista plotter

save(path, **kwargs)[source]

Save the view to a file

Parameters:
  • path – path to the file

  • **kwargs – keyword arguments passed to the pyvista.Plotter.screenshot method

show(auto_close=False, **kwargs)[source]

Show the viewer

Parameters:
  • auto_close – whether to close the viewer after showing it

  • **kwargs – keyword arguments passed to the pyvista.Plotter.show method

shown

keeps track of whether the plotter has already been shown