54 if (lookupName.empty())
56 lookupName = this->
name();
59 auto* surfptr = obr.
getObjectPtr<polySurface>(lookupName);
63 surfptr =
new polySurface(lookupName, obr);
68 surfptr->copySurface(*
this);
Registry of regIOobjects.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Return non-const pointer to the object of the given Type, using a const-cast to have it behave like a...
A surface mesh consisting of general polygon faces and capable of holding fields.
void copySurface(const pointField &points, const faceList &faces, bool unused=false)
Update with new contents. Removes existing fields if sizes have changed.
static bool Delete(const word &surfName, const objectRegistry &)
Remove named surface from specified registry.
bool store()
Register object with its registry and transfer ownership to the registry.
polySurface * getRegistrySurface(const objectRegistry &obr, word lookupName="") const
Get surface from registry if available.
polySurface * storeRegistrySurface(objectRegistry &obr, word lookupName="") const
Copy surface into registry.
bool removeRegistrySurface(objectRegistry &obr, word lookupName="") const
Remove surface from registry.
A class for handling words, derived from Foam::string.