solidipes_solid_mech_plugin.loaders.meshio module

class solidipes_solid_mech_plugin.loaders.meshio.Meshio(*args, **kwargs)[source]

Bases: File

File loaded with meshio

class PyvistaPlotter(data_container=None, add_kwargs={}, show_kwargs={}, **kwargs)

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)
add(data_container, **kwargs)

Add mesh to the viewer

Parameters:

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

add_mesh(data_container: DataContainer, **kwargs)

Add mesh to the viewer

Parameters:

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

add_points(data_container, **kwargs)

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)

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)

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

_compatible_viewers: list[Type[Viewer]] = [<class 'solidipes_solid_mech_plugin.viewers.pyvista_plotter.PyvistaPlotter'>]

List of compatible Viewer classes. Doesn’t need to include Viewer classes already listed in parent classes.

property mesh