61 zoneToPoint::typeName,
62 "\n Usage: zoneToPoint zone\n\n"
63 " Select all points in the pointZone."
64 " Note:accepts wildcards for zone.\n\n"
72 bool hasMatched =
false;
74 for (
const pointZone& zone : mesh_.pointZones())
76 if (selectedZones_.match(zone.name()))
84 Info<<
" Found matching zone " << zone.name()
91 if (pointi >= 0 && pointi < mesh_.nPoints())
93 addOrDelete(set, pointi,
add);
102 <<
"Cannot find any pointZone matching "
104 <<
"Valid names: " <<
flatOutput(mesh_.pointZones().names())
112 Foam::zoneToPoint::zoneToPoint
114 const polyMesh&
mesh,
115 const wordRe& zoneName
118 topoSetPointSource(
mesh),
119 selectedZones_(one(), zoneName)
123 Foam::zoneToPoint::zoneToPoint
125 const polyMesh&
mesh,
126 const dictionary&
dict
129 topoSetPointSource(
mesh),
133 if (!
dict.readIfPresent(
"zones", selectedZones_))
135 selectedZones_.resize(1);
136 selectedZones_.first() =
137 dict.getCompat<wordRe>(
"zone", {{
"name", 1806}});
142 Foam::zoneToPoint::zoneToPoint
144 const polyMesh&
mesh,
148 topoSetPointSource(
mesh),
149 selectedZones_(one(), wordRe(checkIs(is)))
155 void Foam::zoneToPoint::applyToSet
165 Info<<
" Adding all points of point zones "
175 Info<<
" Removing all points of point zones "