48 pointToFace::typeName,
49 "\n Usage: pointToFace <pointSet> any|all\n\n"
50 " Select faces with\n"
51 " -any point in the pointSet\n"
52 " -all points in the pointSet\n\n"
63 Foam::pointToFace::pointActionNames_;
68 void Foam::pointToFace::combine(
topoSet&
set,
const bool add)
const
79 iter != loadedSet.end();
83 label pointI = iter.key();
93 else if (option_ ==
ALL)
98 Map<label> numPoints(loadedSet.size());
102 label pointI = iter.key();
108 label faceI = pFaces[pFaceI];
112 if (fndFace == numPoints.end())
114 numPoints.insert(faceI, 1);
129 iter != numPoints.end();
133 label faceI = iter.key();
168 setName_(dict.
lookup(
"set")),
169 option_(pointActionNames_.read(dict.
lookup(
"option")))
181 setName_(checkIs(is)),
182 option_(pointActionNames_.read(checkIs(is)))
202 Info<<
" Adding faces according to pointSet " << setName_
209 Info<<
" Removing faces according to pointSet " << setName_