Skip to content

Commit d50b501

Browse files
committed
Check for dim 1 entities in restriction operation
1 parent 0c61ce1 commit d50b501

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solidmodels/postrender.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ function restrict_to_volume!(sm::SolidModel, volume)
517517

518518
# Check if the subtraction of the bounding volume from all surfaces and volumes is the
519519
# empty set.
520-
dims = SVector(3, 2)
520+
dims = SVector(3, 2, 1)
521521
groups =
522522
[(name, dimtags(pg)) for dim in dims for (name, pg) in pairs(dimgroupdict(sm, dim))]
523523
allents = vcat([gmsh.model.get_entities(dim) for dim in dims]...)
@@ -527,7 +527,8 @@ function restrict_to_volume!(sm::SolidModel, volume)
527527

528528
# There were entities found after cutting, the restricting volume is a subset of the
529529
# rendered geometry, will need to perform the intersection.
530-
kernel(sm).remove(out_dim_tags)
530+
kernel(sm).remove(out_dim_tags, true)
531+
_synchronize!(sm)
531532

532533
dims = SVector(3, 2, 1, 0)
533534
groups =

0 commit comments

Comments
 (0)