From 5e45ae7db4f2f57b87601e03e016be5020c8ec61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 13 Mar 2016 19:05:36 +0100 Subject: [PATCH] unit_square with bc-labels --- python/geom2d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/geom2d.py b/python/geom2d.py index 5211c118..debf2983 100644 --- a/python/geom2d.py +++ b/python/geom2d.py @@ -15,10 +15,10 @@ SplineGeometry.GenerateMesh = geom2d_meshing_func unit_square = SplineGeometry() pnts = [ (0,0), (1,0), (1,1), (0,1) ] -lines = [ (0,1,1), (1,2,2), (2,3,3), (3,0,4) ] +lines = [ (0,1,1,"bottom"), (1,2,2,"right"), (2,3,3,"top"), (3,0,4,"left") ] pnums = [unit_square.AppendPoint(*p) for p in pnts] -for l1,l2,bc in lines: - unit_square.Append( ["line", pnums[l1], pnums[l2]], bc=bc) +for l1,l2,bc,bcname in lines: + unit_square.Append( ["line", pnums[l1], pnums[l2]], bc=bcname) def MakeRectangle (geo, p1, p2, bc=None, bcs=None, **args):