more function migrations

This commit is contained in:
Daniel Ledda
2022-12-04 20:04:59 +01:00
parent 7b3aa9c871
commit 58c2b0a720
3 changed files with 29 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ auto backtrack_solve(std::vector<uint64_t> *polycube_input, std::vector<int> *of
auto end = offsets->at(set + 1);
std::cout << start << " " << end << "\n";
for (int i = start; i < end; i++) {
auto successful_fuse = (working_solution | polycube_input->at(i)) == (working_solution ^ polycube_input->at(i));
auto successful_fuse = !Voxel::collides(working_solution, polycube_input->at(i));
if (successful_fuse) {
working_solution = working_solution | polycube_input->at(i);
if (set == offsets->size() - 2) {