Skip to content

Commit

Permalink
move "Remove boundary entities" after applying refinemen
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeGehring committed Sep 3, 2024
1 parent cf0ce45 commit ebfb4ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions meshwell/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@ def mesh(
],
)

# Remove boundary entities
for entity in final_entity_list:
if not entity.keep:
self.model.occ.remove(entity.dimtags, recursive=True)

# Perform refinement
if background_remeshing_file is None:
Expand All @@ -391,6 +387,11 @@ def mesh(
bg_field = self.model.mesh.field.add("PostView")
self.model.mesh.field.setNumber(bg_field, "ViewIndex", 0)
gmsh.model.mesh.field.setAsBackgroundMesh(bg_field)

# Remove boundary entities
for entity in final_entity_list:
if not entity.keep:
self.model.occ.remove(entity.dimtags, recursive=True)

# Turn off default meshing options
self.model.mesh.MeshSizeFromPoints = 0
Expand Down

0 comments on commit ebfb4ef

Please sign in to comment.