mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Added tests for ShapeArray. CURA-3239
This commit is contained in:
parent
d1b9078657
commit
1ebf947ff2
3 changed files with 76 additions and 4 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue