18 label tetPointLabels[],
22 bool foundTriangle =
false;
24 const labelList& facePoints = this->pMeshFaces_[nFace];
25 tetPoints[2] = this->pMeshFaceCentres_[nFace];
29 while (pointi < facePoints.
size() && !foundTriangle)
33 label nextPointLabel = (pointi + 1) % facePoints.
size();
35 tetPointLabels[0] = facePoints[pointi];
36 tetPointLabels[1] = facePoints[nextPointLabel];
38 tetPoints[0] = this->pMeshPoints_[tetPointLabels[0]];
39 tetPoints[1] = this->pMeshPoints_[tetPointLabels[1]];
43 vector newPos = position + SMALL*(fc-position);
48 for (
label i=0; i<3; i++)
50 label ip0 = (i+1) % 3;
51 label ipp = (i+2) % 3;
58 for (
label i=0; i<3; i++)
66 for (
label i=0; i<3; i++)
69 inside = inside && (((newPos -
tetPoints[ip]) &
edge[i]) >= 0);
77 for (
label i=0; i<3; i++)
82 phi[i] = phiLength/phiMax;