Serious progress in meshing algorithm

The ifs are redy to be generated -> so the basic blocks