47 faceToPoint::typeName,
48 "\n Usage: faceToPoint <faceSet> all\n\n"
49 " Select all points of faces in the faceSet\n\n"
54 Foam::faceToPoint::faceAction
56 Foam::faceToPoint::faceActionNames_
58 { faceAction::ALL,
"all" },
72 faceSet loadedSet(mesh_, setName);
76 for (
const label facei : faceLabels)
78 const face&
f = mesh_.faces()[facei];
80 addOrDelete(set,
f,
add);
87 Foam::faceToPoint::faceToPoint
91 const faceAction option
94 topoSetPointSource(
mesh),
95 names_(one(), setName),
100 Foam::faceToPoint::faceToPoint
102 const polyMesh&
mesh,
103 const dictionary&
dict
106 topoSetPointSource(
mesh),
108 option_(faceActionNames_.get(
"option",
dict))
111 if (!
dict.readIfPresent(
"sets", names_))
114 dict.readEntry(
"set", names_.first());
119 Foam::faceToPoint::faceToPoint
121 const polyMesh&
mesh,
125 topoSetPointSource(
mesh),
126 names_(one(), word(checkIs(is))),
127 option_(faceActionNames_.
read(checkIs(is)))
133 void Foam::faceToPoint::applyToSet
143 Info<<
" Adding points from face in faceSet "
147 for (
const word& setName : names_)
156 Info<<
" Removing points from face in faceSet "
160 for (
const word& setName : names_)