diff --git a/python/csg.py b/python/csg.py index 1e58f1bb..dff88d9b 100644 --- a/python/csg.py +++ b/python/csg.py @@ -29,5 +29,12 @@ CSGeometry.GenerateMesh = csg_meshing_func unit_cube = CSGeometry() -unit_cube.Add (OrthoBrick(Pnt(0,0,0), Pnt(1,1,1))) +p1 = Plane(Pnt(0,0,0),Vec(-1,0,0)).bc("back") +p2 = Plane(Pnt(1,1,1),Vec(1,0,0)).bc("front") +p3 = Plane(Pnt(0,0,0),Vec(0,-1,0)).bc("left") +p4 = Plane(Pnt(1,1,1),Vec(0,1,0)).bc("right") +p5 = Plane(Pnt(0,0,0),Vec(0,0,-1)).bc("bottom") +p6 = Plane(Pnt(1,1,1),Vec(0,0,1)).bc("top") +unit_cube.Add (p1*p2*p3*p4*p5*p6) +# unit_cube.Add (OrthoBrick(Pnt(0,0,0), Pnt(1,1,1)))