29 auto p_m = this->pointPosition_[
m];
30 auto d_m = sizeRatio_* diameter_[
m];
38 auto p_n = this->pointPosition_[
n];
39 auto d_n = sizeRatio_*diameter_[
n];
46 if(lm>ln) Swap(lm,ln);
47 if(
auto res = pairs.insert(lm,ln); res <0)
57 CellType neighborCell;
58 for(
int32 ni=0; ni<13; ni++)
60 if(ni==0) neighborCell =
currentCell + CellType( 0, 0,-1);
61 else if(ni==1) neighborCell =
currentCell + CellType(-1, 0,-1);
62 else if(ni==2) neighborCell =
currentCell + CellType(-1, 0, 0);
63 else if(ni==3) neighborCell =
currentCell + CellType(-1, 0, 1);
64 else if(ni==4) neighborCell =
currentCell + CellType( 0,-1,-1);
65 else if(ni==5) neighborCell =
currentCell + CellType( 0,-1, 0);
66 else if(ni==6) neighborCell =
currentCell + CellType( 0,-1, 1);
67 else if(ni==7) neighborCell =
currentCell + CellType(-1,-1,-1);
68 else if(ni==8) neighborCell =
currentCell + CellType(-1,-1, 0);
69 else if(ni==9) neighborCell =
currentCell + CellType(-1,-1, 1);
70 else if(ni==10) neighborCell =
currentCell + CellType( 1,-1,-1);
71 else if(ni==11) neighborCell =
currentCell + CellType( 1,-1, 0);
72 else if(ni==12) neighborCell =
currentCell + CellType( 1,-1, 1);
74 if( this->isInRange(neighborCell) )
77 n = this->head_(neighborCell.x(), neighborCell.y(), neighborCell.z());
81 auto p_n = this->pointPosition_[
n];
82 auto d_n = sizeRatio_*diameter_[
n];
88 if(lm>ln) Swap(lm,ln);
89 if(
auto res = pairs.insert(lm,ln); res <0)