TrameVisualizer#

class ansys.geometry.core.plotting.trame_gui.TrameVisualizer(client_type: str = 'vue3')#

Defines the trame layout view.

Parameters:
client_typestr, optional

Client type to use for the trame server. Options are ‘vue2’ and ‘vue3’. Default is ‘vue3’.

Overview#

set_scene

Set the trame layout view and the mesh to show through the PyVista plotter.

show

Start the trame server and show the mesh.

Import detail#

from ansys.geometry.core.plotting.trame_gui import TrameVisualizer

Method detail#

TrameVisualizer.set_scene(plotter: beartype.typing.Union[pyvista.Plotter, ansys.geometry.core.plotting.plotter.Plotter, ansys.geometry.core.plotting.plotter_helper.PlotterHelper])#

Set the trame layout view and the mesh to show through the PyVista plotter.

Parameters:
plotterUnion[Plotter, Plotter, PlotterHelper]

PyVista plotter or PyAnsys plotter to render.

TrameVisualizer.show()#

Start the trame server and show the mesh.