mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
ch color for retraction + draw jumps slightly above the rest
This commit is contained in:
parent
9b680893f7
commit
c53b110ea9
1 changed files with 3 additions and 1 deletions
|
@ -136,6 +136,8 @@ class Layer():
|
||||||
points = numpy.copy(polygon.data)
|
points = numpy.copy(polygon.data)
|
||||||
if polygon.type == Polygon.InfillType or polygon.type == Polygon.SkinType or polygon.type == Polygon.SupportInfillType:
|
if polygon.type == Polygon.InfillType or polygon.type == Polygon.SkinType or polygon.type == Polygon.SupportInfillType:
|
||||||
points[:,1] -= 0.01
|
points[:,1] -= 0.01
|
||||||
|
if polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType:
|
||||||
|
points[:,1] += 0.01
|
||||||
|
|
||||||
# Calculate normals for the entire polygon using numpy.
|
# Calculate normals for the entire polygon using numpy.
|
||||||
normals = numpy.copy(points)
|
normals = numpy.copy(points)
|
||||||
|
@ -236,7 +238,7 @@ class Polygon():
|
||||||
elif self._type == self.MoveCombingType:
|
elif self._type == self.MoveCombingType:
|
||||||
return Color(0.0, 0.0, 1.0, 1.0)
|
return Color(0.0, 0.0, 1.0, 1.0)
|
||||||
elif self._type == self.MoveRetractionType:
|
elif self._type == self.MoveRetractionType:
|
||||||
return Color(0.5, 0.5, 1.0, 1.0)
|
return Color(0.0, 1.0, 1.0, 1.0)
|
||||||
else:
|
else:
|
||||||
return Color(1.0, 1.0, 1.0, 1.0)
|
return Color(1.0, 1.0, 1.0, 1.0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue