Skip to content

Commit

Permalink
Fix error if wall open brep is null
Browse files Browse the repository at this point in the history
  • Loading branch information
hrntsm committed Jun 9, 2023
1 parent aa16585 commit 2607b4d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ private Brep ApplyWallOpen(IEnumerable<StbOpen> opens, StbWall wall, IReadOnlyLi
Brep openBrep = Brep.CreateFromLoft(openCurve, Point3d.Unset, Point3d.Unset, LoftType.Straight, false)[0].CapPlanarHoles(_tolerance[0]);
CheckBrepOrientation(openBrep);

brep = Brep.CreateBooleanDifference(brep, openBrep, 1)[0];
if (openBrep != null)
{
brep = Brep.CreateBooleanDifference(brep, openBrep, 1)[0];
}
}
}

Expand Down

0 comments on commit 2607b4d

Please sign in to comment.