CURA-4672 fix auto arrange for small models, they are now rounded up to 1 pixel rasterized

This commit is contained in:
Jack Ha 2018-01-04 14:23:22 +01:00
parent 7b8f951682
commit abdc33a0b9
2 changed files with 13 additions and 0 deletions

View file

@ -118,6 +118,13 @@ def test_arrayFromPolygon2():
assert numpy.any(array)
## Polygon -> array
def test_fromPolygon():
vertices = numpy.array([[0, 0.5], [0, 0], [0.5, 0]])
array = ShapeArray.fromPolygon(vertices, scale=0.5)
assert numpy.any(array.arr)
## Line definition -> array with true/false
def test_check():
base_array = numpy.zeros([5, 5], dtype=float)