diff --git a/pyslm/hatching/hatching.py b/pyslm/hatching/hatching.py index 021f2f6..e51eb99 100755 --- a/pyslm/hatching/hatching.py +++ b/pyslm/hatching/hatching.py @@ -875,7 +875,10 @@ def hatch(self, boundaryFeature) -> Union[Layer, None]: hatchLayerGeometries = [] for i in range(self._numOuterContours): - offsetDelta -= self._contourOffset + + if i > 0: + offsetDelta -= self._contourOffset + offsetBoundary = self.offsetBoundary(boundaryFeature, offsetDelta) for poly in offsetBoundary: @@ -885,9 +888,14 @@ def hatch(self, boundaryFeature) -> Union[Layer, None]: contourGeometry.subType = "outer" contourLayerGeometries.append(contourGeometry) # Append to the layer + + # Repeat for inner contours for i in range(self._numInnerContours): - offsetDelta -= self._contourOffset + + if i > 0: + offsetDelta -= self._contourOffset + offsetBoundary = self.offsetBoundary(boundaryFeature, offsetDelta) for poly in offsetBoundary: