Welcome to MeshPy's documentation! ================================== .. toctree:: :maxdepth: 2 :hidden: installation tri-tet gmsh geometry faq 🚀 Github 💾 Download Releases MeshPy offers quality triangular and tetrahedral mesh generation for Python. Meshes of this type are chiefly used in finite-element simulation codes, but also have many other applications ranging from computer graphics to robotics. In order to generate these 2D and 3D meshes, MeshPy provides Python interfaces to a few well-regarded mesh generators: * `Triangle `__ by J. Shewchuk. * `TetGen `__ by Hang Si. Triangle and TetGen are included in the package in slightly modified versions. An interface for `Gmsh `__ was also part of MeshPy, but is now its own package `gmsh_interop `__. MeshPy has its own `web page `_, where you can find updated software, news, a forum, and documentation. Show me! I need examples! ------------------------- This file is included in the :mod:`meshpy` distribution as :download:`examples/demo.py <../examples/demo.py>`. .. literalinclude:: ../examples/demo.py As a result of this, you will get:: Mesh Points: 0 [0.0, 0.0, 0.0] 1 [2.0, 0.0, 0.0] 2 [2.0, 2.0, 0.0] 3 [0.0, 2.0, 0.0] 4 [0.0, 0.0, 12.0] 5 [2.0, 0.0, 12.0] 6 [2.0, 2.0, 12.0] 7 [0.0, 2.0, 12.0] 8 [1.000116, 0.0, 0.0] 9 [0.0, 0.99960499999999997, 0.0] 10 [0.0, 0.99934199999999995, 12.0] 11 [1.0006170000000001, 0.0, 12.0] ... Point numbers in tetrahedra: 0 [21, 39, 38, 52] 1 [9, 50, 2, 3] 2 [12, 45, 15, 54] 3 [39, 43, 20, 52] 4 [41, 45, 24, 54] ... and a file :file:`test.vtk` that you can view with `Paraview `__ or `Visit `__. Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`