mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:19:04 +08:00
Readded accidently removed stuff
This commit is contained in:
parent
55dd08eff8
commit
e57de296e7
@ -60,7 +60,7 @@ class LayerPolygon:
|
|||||||
# Only if the type of line segment changes do we need to add an extra vertex to change colors
|
# Only if the type of line segment changes do we need to add an extra vertex to change colors
|
||||||
self._build_cache_needed_points[1:, 0][:, numpy.newaxis] = self._types[1:] != self._types[:-1]
|
self._build_cache_needed_points[1:, 0][:, numpy.newaxis] = self._types[1:] != self._types[:-1]
|
||||||
# Mark points as unneeded if they are of types we don't want in the line mesh according to the calculated mask
|
# Mark points as unneeded if they are of types we don't want in the line mesh according to the calculated mask
|
||||||
numpy.logical_and(self._build_cache_needed_points, self._build_cache_line_mesh_mask )
|
numpy.logical_and(self._build_cache_needed_points, self._build_cache_line_mesh_mask, self._build_cache_needed_points )
|
||||||
|
|
||||||
self._vertex_begin = 0
|
self._vertex_begin = 0
|
||||||
self._vertex_end = numpy.sum( self._build_cache_needed_points )
|
self._vertex_end = numpy.sum( self._build_cache_needed_points )
|
||||||
|
@ -131,7 +131,7 @@ class ProcessSlicedLayersJob(Job):
|
|||||||
new_points = numpy.empty((len(points), 3), numpy.float32)
|
new_points = numpy.empty((len(points), 3), numpy.float32)
|
||||||
if polygon.point_type == 0: # Point2D
|
if polygon.point_type == 0: # Point2D
|
||||||
new_points[:, 0] = points[:, 0]
|
new_points[:, 0] = points[:, 0]
|
||||||
new_points[:, 1] = layer.height / 1000 # layer height value is in backend representation
|
new_points[:, 1] = layer.height / 1000 # layer height value is in backend representation
|
||||||
new_points[:, 2] = -points[:, 1]
|
new_points[:, 2] = -points[:, 1]
|
||||||
else: # Point3D
|
else: # Point3D
|
||||||
new_points[:, 0] = points[:, 0]
|
new_points[:, 0] = points[:, 0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user