From eea504461b93b4b40357757b4c69941bb537ab39 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 7 Feb 2024 19:14:49 +0100 Subject: [PATCH] renamed var to match algoithm --- python/polycube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/polycube.py b/python/polycube.py index 4d28119..bf614fc 100644 --- a/python/polycube.py +++ b/python/polycube.py @@ -26,9 +26,9 @@ class PolyCube: orientations[i].append(reorient_tuple(cube, i)) orientations[i].sort() oriented_offsets[i] = [(0, 0, 0)]*(n_cubes-1) - last_cube = orientations[i][0] + reference_cube = orientations[i][0] for j in range(n_cubes-1): - oriented_offsets[i][j] = subtract(*last_cube, *orientations[i][j+1]) + oriented_offsets[i][j] = subtract(*reference_cube, *orientations[i][j+1]) self.oriented_offsets = oriented_offsets def generate_children(self, max_length:int):