65 void findInnerNodes(plb::BlockLattice3D<T, Descriptor> * fluid, std::vector<HemoCellParticle> & particles,
66 const std::vector<int> &
cell, std::vector<plb::Cell<T, Descriptor> *> & innerNodes) {
70 bbox[0] = bbox[0] < fluid->getLocation().x ? fluid->getLocation().x : bbox[0];
72 bbox[1] > fluid->getLocation().x + fluid->getNx() - 1 ? fluid->getLocation().x + fluid->getNx() - 1 : bbox[1];
73 bbox[2] = bbox[2] < fluid->getLocation().y ? fluid->getLocation().y : bbox[2];
75 bbox[3] > fluid->getLocation().y + fluid->getNy() - 1 ? fluid->getLocation().y + fluid->getNy() - 1 : bbox[3];
76 bbox[4] = bbox[4] < fluid->getLocation().z ? fluid->getLocation().z : bbox[4];
78 bbox[5] > fluid->getLocation().z + fluid->getNz() - 1 ? fluid->getLocation().z + fluid->getNz() - 1 : bbox[5];
81 for (
int x = (
int)bbox[0]; x <= (int)bbox[1] + 0.5; x++) {
82 for (
int y = (
int)bbox[2]; y <= (int)bbox[3] + 0.5; y++) {
83 for (
int z = (
int)bbox[4]; z <= (int)bbox[5] + 0.5; z++) {
84 int crossedCounter = 0;
87 std::vector<hemo::Array<plint, 3>> triangles_list;
100 if (crossedCounter % 2) {
101 int x_l = x - fluid->getLocation().x;
102 int y_l = y - fluid->getLocation().y;
103 int z_l = z - fluid->getLocation().z;
104 innerNodes.push_back(&fluid->get(x_l, y_l, z_l));
112 void findInnerNodes(plb::BlockLattice3D<T, Descriptor> * fluid, std::vector<HemoCellParticle> & particles,
117 bbox[0] = bbox[0] < fluid->getLocation().x ? fluid->getLocation().x : bbox[0];
119 bbox[1] > fluid->getLocation().x + fluid->getNx() - 1 ? fluid->getLocation().x + fluid->getNx() - 1 : bbox[1];
120 bbox[2] = bbox[2] < fluid->getLocation().y ? fluid->getLocation().y : bbox[2];
122 bbox[3] > fluid->getLocation().y + fluid->getNy() - 1 ? fluid->getLocation().y + fluid->getNy() - 1 : bbox[3];
123 bbox[4] = bbox[4] < fluid->getLocation().z ? fluid->getLocation().z : bbox[4];
125 bbox[5] > fluid->getLocation().z + fluid->getNz() - 1 ? fluid->getLocation().z + fluid->getNz() - 1 : bbox[5];
128 for (
int x = (
int)bbox[0]; x <= (int)bbox[1] + 0.5; x++) {
129 for (
int y = (
int)bbox[2]; y <= (int)bbox[3] + 0.5; y++) {
130 for (
int z = (
int)bbox[4]; z <= (int)bbox[5] + 0.5; z++) {
131 int crossedCounter = 0;
134 std::vector<hemo::Array<plint, 3>> triangles_list;
147 if (crossedCounter % 2) {
148 int x_l = x - fluid->getLocation().x;
149 int y_l = y - fluid->getLocation().y;
150 int z_l = z - fluid->getLocation().z;
151 innerNodes.insert({x_l, y_l, z_l});