Added tests for ShapeArray. CURA-3239

This commit is contained in:
Jack Ha 2017-04-03 17:03:30 +02:00
parent d1b9078657
commit 1ebf947ff2
3 changed files with 76 additions and 4 deletions

View file

@ -51,9 +51,8 @@ class Arrange:
return arranger
## Find placement for a node (using offset shape) and place it (using hull shape)
#
# return the nodes that should be placed
def findNodePlacements(self, node, offset_shape_arr, hull_shape_arr, count = 1, step = 1):
# offset_shape_arr, hull_shape_arr, arranger -> nodes, arranger
nodes = []
start_prio = 0
for i in range(count):

View file

@ -73,7 +73,7 @@ class ShapeArray:
return base_array
## Return indices that mark one side of the line, used by array_from_polygon
## Return indices that mark one side of the line, used by arrayFromPolygon
# Uses the line defined by p1 and p2 to check array of
# input indices against interpolated value
# Returns boolean array, with True inside and False outside of shape