Commit c7e92c92 authored by Baptiste Durand's avatar Baptiste Durand

Fix : Gmsh2DRVE for unit-cell that are not rectangular

parent ce07d3d6
......@@ -9,4 +9,4 @@ demo/loc_E12_u.pdf
*.pyc.*
*.egg-info/
ho_homog/.idea
.idea/HO_homog.iml
*.iml
......@@ -230,9 +230,11 @@ class Gmsh2DRVE(object):
else:
try:
s = one(rve_s)
boundary = geo.AbstractSurface.get_surfs_boundary(s,recursive=False)
boundary = geo.AbstractSurface.get_surfs_boundary(s, recursive=False)
except ValueError:
boundary = geo.AbstractSurface.get_surfs_boundary(rve_s,recursive=False)
boundary = geo.AbstractSurface.get_surfs_boundary(
rve_s, recursive=False
)
for b in boundary:
b.get_boundary(get_coords=True)
# factory.synchronize()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment