Mesh Viewer Component
- class streamlit_pyvista.mesh_viewer_component.MeshViewerComponent(mesh_path=None, server_manager_url='http://127.0.0.1:9422', setup_endpoint='/init_connection', server_manager_class=<class 'streamlit_pyvista.server_managers.server_manager.ServerManager'>, trame_viewer_class=None)[source]
Bases:
objectStreamlit component to display 3d mesh using pyvista and it’s Trame backend
- __init__(mesh_path=None, server_manager_url='http://127.0.0.1:9422', setup_endpoint='/init_connection', server_manager_class=<class 'streamlit_pyvista.server_managers.server_manager.ServerManager'>, trame_viewer_class=None)[source]
- static check_valid_input_files(list_of_path)[source]
Take a list of paths and check that each path exists.
- Parameters:
list_of_path (list[str]) – The list of paths to check.
- Returns:
True if all files exist, False otherwise.
- Return type:
bool