← Back to team overview

yade-users team mailing list archive

Re: [Question #701938]: Large size cylinderConnection in periodic scene

 

Question #701938 on Yade changed:
https://answers.launchpad.net/yade/+question/701938

Xin Li posted a new comment:
Hi Bruno
I may still need the flag “AllowBiggerThanPeriod” even the distance between each node below cell width/3, 4 or 6 or higher number as the bounding box of  each connection has a larger size > half of the cell size. Unless I cut the radius part of the Aabb of gridConnection on the axial direction under periodic scene from grid.cpp. 

O = scene->cell->unshearPt(O);
O2 = scene->cell->unshearPt(O2);
O2 = O2 + scene->cell->hSize * GC->cellDist.cast<Real>(); for (int k = 0; k < 3; k++) {
if (k<1) {aabb->min[k] = min(O[k], O2[k]); aabb->max[k] = max(O[k], O2[k])} else {
aabb->min[k] = min(O[k], O2[k]) - GC->radius;
aabb->max[k] = max(O[k], O2[k]) + GC->radius;
}

Thanks
Xin

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.