39 if (lookupName.empty())
41 lookupName = this->
name();
54 if (lookupName.empty())
56 lookupName = this->
name();
59 polySurface* surfptr = getRegistrySurface(obr, lookupName);
64 surfptr =
new polySurface(lookupName, obr,
true);
67 surfptr->copySurface(*
this);
79 polySurface* surfptr = getRegistrySurface(obr, lookupName);
A surface mesh consisting of general polygon faces and capable of holding fields. ...
bool checkOut(regIOobject *io) const
Remove a regIOobject from registry and free memory if the object is ownedByRegistry. A nullptr is ignored.
const word & name() const noexcept
Name of surface.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
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...
polySurface * getRegistrySurface(const objectRegistry &obr, word lookupName="") const
Get surface from registry if available.
bool removeRegistrySurface(objectRegistry &obr, word lookupName="") const
Remove surface from registry.
Registry of regIOobjects.
polySurface * storeRegistrySurface(objectRegistry &obr, word lookupName="") const
Copy surface into registry.