Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion UM/Math/Polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def scale(self, factor: float, origin: Optional[List[float]] = None) -> "Polygon
transformation[2][1] = delta_scale * -origin[1]

# Apply that affine transformation to the point data.
point_data = numpy.lib.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1)) # Turn 3D to do an affine transformation.
point_data = numpy.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1)) # Turn 3D to do an affine transformation.
point_data = point_data.dot(transformation)

return Polygon(point_data[:, :-1]) # Leave out the affine component.
Expand Down