<jupyter_start><jupyter_text>Read FEniCS/Dolfin Meshes=========================PyVista leverages [meshio](https://github.com/nschloe/meshio) to readmany mesh formats not natively supported by VTK including the[FEniCS/Dolfin](https://fenicsproject.org) XML format.<jupyter_code>import pyvista as pv
from pyvista import examples<jupyter_output><empty_output><jupyter_text>Let\'s download an example FEniCS/Dolfin mesh from our example datarepository. This will download an XML Dolfin mesh and save it toPyVista\'s data directory.<jupyter_code>saved_file, _ = examples.downloads._download_file("dolfin_fine.xml")
print(saved_file)<jupyter_output><empty_output><jupyter_text>As shown, we now have an XML Dolfin mesh save locally. This filename canbe passed directly to PyVista\'s `pyvista.read`{.interpreted-textrole="func"} method to be read into a PyVista mesh.<jupyter_code>dolfin = pv.read(saved_file)
dolfin<jupyter_output><empty_output><jupyter_text>Now we can do stuff with that Dolfin mesh!<jupyter_code>qual = dolfin.compute_cell_quality()
qual.plot(show_edges=True, cpos="xy")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11690647482014388, 'fraction_numerical': 0.0, 'mean_word_length': 8.275, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '609126', 'license': 'MIT', 'n_tokens_mistral': 381, 'n_tokens_neox': 380, 'n_words': 88, 'path': 'examples/00-load/read-dolfin.ipynb', 'repo_name': 'vtkiorg/vtki-examples', 'size': '1112'}