Fixed var nchunk_points

In the function `chunksCoherency` I had mistakenly changed `nchunk_points` to `nchunk.points`, this has been reverted.
pull/269/head
SpectralVectors 2024-04-02 12:47:42 -04:00 zatwierdzone przez GitHub
rodzic e924c246c0
commit 9a6e9612f3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -705,12 +705,12 @@ def chunksCoherency(chunks):
angle = vec.angle(lastvec, vec)
# print(angle,i)
if angle > 1.07: # 60 degrees is maximum toleration for pencil paths.
if len(nchunk.points) > 4: # this is a testing threshold
if len(nchunk_points) > 4: # this is a testing threshold
nchunks.append(nchunk.to_chunk())
nchunk = camPathChunkBuilder()
lastvec = vec
if len(nchunk.points) > 4: # this is a testing threshold
nchunk.points = np.array(nchunk.points)
if len(nchunk_points) > 4: # this is a testing threshold
nchunk.points = np.array(nchunk_points)
nchunks.append(nchunk)
return nchunks