Skip to content
Snippets Groups Projects
Commit 535827e8 authored by Yann Boucher's avatar Yann Boucher
Browse files

Ignorer la cellule centrale pour le voisinage de von neumann aussi

parent cff63b65
No related branches found
No related tags found
No related merge requests found
Pipeline #79257 failed
......@@ -17,7 +17,9 @@ vonNeumannNeighborhoodRule::vonNeumannNeighborhoodRule(int _radius)
if( abs(i+j) <= _radius) {
newCord.x = i;
newCord.y = j;
format.positions.push_back(newCord);
if(!(newCord.x == 0 && newCord.y == 0)) {
format.positions.push_back(newCord);
}
}
}
}
......
......@@ -5,6 +5,9 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++14
TEMPLATE = app
# Optimisations, flag pour garder les infos de debug
QMAKE_CXXFLAGS += -O2 -g
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment