rename
This commit is contained in:
parent
a08019518c
commit
8ce82c20b2
1 changed files with 3 additions and 4 deletions
|
@ -1197,15 +1197,14 @@ proc fillShapes(
|
||||||
bounds = computePixelBounds(segments)
|
bounds = computePixelBounds(segments)
|
||||||
startX = max(0, bounds.x.int)
|
startX = max(0, bounds.x.int)
|
||||||
startY = max(0, bounds.y.int)
|
startY = max(0, bounds.y.int)
|
||||||
stopY = min(image.height, (bounds.y + bounds.h).int)
|
pathHeight = min(image.height, (bounds.y + bounds.h).int)
|
||||||
pathHeight = stopY - startY
|
partitions = partitionSegments(segments, startY, pathHeight - startY)
|
||||||
partitions = partitionSegments(segments, startY, pathHeight)
|
|
||||||
|
|
||||||
var
|
var
|
||||||
coverages = newSeq[uint8](image.width)
|
coverages = newSeq[uint8](image.width)
|
||||||
hits = newSeq[(float32, int16)](4)
|
hits = newSeq[(float32, int16)](4)
|
||||||
|
|
||||||
for y in startY ..< stopY:
|
for y in startY ..< pathHeight:
|
||||||
computeCoverages(
|
computeCoverages(
|
||||||
coverages,
|
coverages,
|
||||||
hits,
|
hits,
|
||||||
|
|
Loading…
Reference in a new issue