48 cellToPoint::typeName,
49 "\n Usage: cellToPoint <cellSet> all\n\n"
50 " Select all points of cells in the cellSet\n\n"
55 Foam::cellToPoint::cellAction
57 Foam::cellToPoint::cellActionNames_
59 { cellAction::ALL,
"all" },
73 cellSet loadedSet(mesh_, setName);
77 for (
const label celli : cellLabels)
79 const labelList& cFaces = mesh_.cells()[celli];
81 for (
const label facei : cFaces)
83 const face&
f = mesh_.faces()[facei];
85 addOrDelete(set,
f,
add);
93 Foam::cellToPoint::cellToPoint
97 const cellAction option
100 topoSetPointSource(
mesh),
101 names_(one(), setName),
106 Foam::cellToPoint::cellToPoint
108 const polyMesh&
mesh,
109 const dictionary&
dict
112 topoSetPointSource(
mesh),
114 option_(cellActionNames_.get(
"option",
dict))
117 if (!
dict.readIfPresent(
"sets", names_))
120 dict.readEntry(
"set", names_.first());
125 Foam::cellToPoint::cellToPoint
127 const polyMesh&
mesh,
131 topoSetPointSource(
mesh),
132 names_(one(), word(checkIs(is))),
133 option_(cellActionNames_.
read(checkIs(is)))
139 void Foam::cellToPoint::applyToSet
149 Info<<
" Adding points in cellSet "
153 for (
const word& setName : names_)
162 Info<<
" Removing points in cellSet "
166 for (
const word& setName : names_)