Skip to content

Commit

Permalink
[Fix] - Inner contour is offset correctly
Browse files Browse the repository at this point in the history
Inner contour is offset if previous outer contour exists
  • Loading branch information
drlukeparry committed Apr 10, 2024
1 parent 22e5301 commit 344941f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyslm/hatching/hatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ def hatch(self, boundaryFeature) -> Union[Layer, None]:
# Repeat for inner contours
for i in range(self._numInnerContours):

if i > 0:
offsetDelta -= self._contourOffset
if (self._numOuterContours == 0 and i > 0) or self._numOuterContours > 0:
offsetDelta -= self._contourOffset

offsetBoundary = self.offsetBoundary(boundaryFeature, offsetDelta)

Expand Down

0 comments on commit 344941f

Please sign in to comment.