36template<
class SetType>
37void Foam::polyMeshFilter::updateSets(
const mapPolyMesh& map)
47 const HashTable<const SetType*> sets
49 map.mesh().objectRegistry::lookupClass<
const SetType>()
52 for (
const auto& iter : sets.csorted())
54 SetType&
set =
const_cast<SetType&
>(*iter.val());
66 map.mesh().facesInstance(),
70 for (
const IOobject&
io : objs.csorted<SetType>())
72 if (!sets.contains(
io.name()))
84template<
class SetType>
85void Foam::polyMeshFilter::copySets
91 for (
const SetType& set : oldMesh.objectRegistry::csorted<SetType>())
94 newMesh.objectRegistry::getObjectPtr<SetType>(
set.name());
102 setPtr =
new SetType(newMesh,
set.name(), set,
set.writeOpt());
106 setPtr->sync(newMesh);
Mesh consisting of general polyhedral cells.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').