.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/Meshes/Mesh12.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_Meshes_Mesh12.py: Mesh12 ====== Meshing of a part designed by cad software. .. GENERATED FROM PYTHON SOURCE LINES 12-34 .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh12_001.png :alt: Mesh12 :srcset: /examples/Meshes/images/sphx_glr_Mesh12_001.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.8.0/docs/examples/Meshes/images/sphx_glr_Mesh12_001.vtksz .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh12_002.png :alt: Mesh12 :srcset: /examples/Meshes/images/sphx_glr_Mesh12_002.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.8.0/docs/examples/Meshes/images/sphx_glr_Mesh12_002.vtksz .. code-block:: Python :lineno-start: 13 from EasyFEA import Display, Folder, Mesher, ElemType, PyVista if __name__ == "__main__": Display.Clear() parts_dir = Folder.Join(Folder.Dir(n=2), "_parts") stp = Folder.Join(parts_dir, "beam.stp") mesh_stp = Mesher().Mesh_Import_part(stp, 3, 13 / 5, ElemType.TETRA4) igs = Folder.Join(parts_dir, "beam.igs") mesh_igs = Mesher().Mesh_Import_part(igs, 3, 13 / 5, ElemType.TETRA10) # An igs file will provide a contour mesh only. pltr1 = PyVista.Plot_Mesh(mesh_stp) pltr1.add_title("beam.stp") pltr1.show() pltr2 = PyVista.Plot_Mesh(mesh_igs) pltr2.add_title("beam.igs") pltr2.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.656 seconds) .. _sphx_glr_download_examples_Meshes_Mesh12.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Mesh12.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Mesh12.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: Mesh12.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_