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);
A surface mesh consisting of general polygon faces and capable of holding fields. ...
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.
const word & name() const noexcept
Name of surface.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::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.