Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PEP8
  • Loading branch information
inducer committed Mar 20, 2015
1 parent 16325ea commit 933399a
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions examples/test_tetgen.py
@@ -1,29 +1,27 @@
from meshpy.tet import MeshInfo, build




def main():
mesh_info = MeshInfo()

mesh_info.set_points([
(0,0,0),
(2,0,0),
(2,2,0),
(0,2,0),
(0,0,12),
(2,0,12),
(2,2,12),
(0,2,12),
(0, 0, 0),
(2, 0, 0),
(2, 2, 0),
(0, 2, 0),
(0, 0, 12),
(2, 0, 12),
(2, 2, 12),
(0, 2, 12),
])

mesh_info.set_facets([
[0,1,2,3],
[4,5,6,7],
[0,4,5,1],
[1,5,6,2],
[2,6,7,3],
[3,7,4,0],
[0, 1, 2, 3],
[4, 5, 6, 7],
[0, 4, 5, 1],
[1, 5, 6, 2],
[2, 6, 7, 3],
[3, 7, 4, 0],
])

mesh_info.save_nodes("bar")
Expand All @@ -36,8 +34,6 @@ def main():
mesh.save_faces("barout")

mesh.write_vtk("test.vtk")




if __name__ == "__main__":
Expand Down

0 comments on commit 933399a

Please sign in to comment.