Skip to content

Commit

Permalink
PEP8 test_triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 23, 2013
1 parent 10faec7 commit 17b9af3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/test_triangle.py
Expand Up @@ -4,11 +4,13 @@
import numpy as np
import numpy.linalg as la


def round_trip_connect(start, end):
return [(i, i+1) for i in range(start, end)] + [(end, start)]
return [(i, i+1) for i in range(start, end)] + [(end, start)]


def main():
points = [(1,0),(1,1),(-1,1),(-1,-1),(1,-1),(1,0)]
points = [(1, 0), (1, 1), (-1, 1), (-1, -1), (1, -1), (1, 0)]
facets = round_trip_connect(0, len(points)-1)

circ_start = len(points)
Expand All @@ -25,7 +27,7 @@ def needs_refinement(vertices, area):

info = triangle.MeshInfo()
info.set_points(points)
info.set_holes([(0,0)])
info.set_holes([(0, 0)])
info.set_facets(facets)

mesh = triangle.build(info, refinement_func=needs_refinement)
Expand Down

0 comments on commit 17b9af3

Please sign in to comment.