.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/Meshes/Mesh1_3D.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_Mesh1_3D.py: Mesh1_3D ======== Meshing a 3D domain. .. GENERATED FROM PYTHON SOURCE LINES 12-26 .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh1_3D_001.png :alt: Mesh1 3D :srcset: /examples/Meshes/images/sphx_glr_Mesh1_3D_001.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.9.0/docs/examples/Meshes/images/sphx_glr_Mesh1_3D_001.vtksz .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh1_3D_002.png :alt: Mesh1 3D :srcset: /examples/Meshes/images/sphx_glr_Mesh1_3D_002.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.9.0/docs/examples/Meshes/images/sphx_glr_Mesh1_3D_002.vtksz .. code-block:: Python :lineno-start: 13 from EasyFEA import Display, ElemType, PyVista from EasyFEA.Geoms import Point, Domain if __name__ == "__main__": Display.Clear() contour = Domain((0, 0), Point(1, 1)) PyVista.Plot_Geoms(contour).show() # "TETRA4", "TETRA10", "HEXA8", "HEXA20", "HEXA27", "PRISM6", "PRISM15", "PRISM18" elemType = ElemType.HEXA8 mesh = contour.Mesh_Extrude([], [0, 0, 0.5], [3], elemType) PyVista.Plot_Mesh(mesh).show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.391 seconds) .. _sphx_glr_download_examples_Meshes_Mesh1_3D.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Mesh1_3D.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Mesh1_3D.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: Mesh1_3D.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_