title: Python mesh generation
body: <p>How can i create a 2D mesh in Python? I tried to use meshpy. If i try to run, python told me Error: all Vertices are coplanar.</p>
  
  <p>I am currently working on a finite Elements program and the first step is to build meshes for geometries. Can anybody help me?</p>
  
  <p>Thats the Code i usually use, you can see it below.</p>
  
  <pre><code>import meshpy as mp
  from meshpy.tet import MeshInfo, build
  
  
  mesh_info = MeshInfo()                      
  
  
  mesh = build(mesh_info)
  
  mesh_info.set_points([
      (0, 0, 0), (1.445, 0.19, 0), (3, 0.19, 0), (1.555, 0.19, 0),     
      (1.555, 2.81, 0), (3, 2.81, 0), (3, 3, 0), (0, 3, 0),            
      (0, 2.81, 0), (1.445, 2.81, 0), (1.445, 0.19, 0),                    
      (0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0),     
  
  mesh_info.set_facets([
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
      [0,1,2],[0,2,3],
      ])
  
  print('Mesh Points')
  
  for i,p in enumerate(mesh_info.points):
      print(i, p)
  </code></pre>