mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
name faces of unit_cube
This commit is contained in:
parent
a50f65b7f7
commit
7a13049ab8
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user