46 #ifndef UnsortedMeshedSurface_H
47 #define UnsortedMeshedSurface_H
67 template<
class Face>
class MeshedSurface;
68 template<
class Face>
class MeshedSurfaceProxy;
69 template<
class Face>
class UnsortedMeshedSurface;
302 virtual void clear();
A HashTable with keys but without contents.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
label size() const
The surface size is the number of faces.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
List< surfZoneIdentifier > & storedZoneToc()
Return non-const access to the zone table-of-contents.
static autoPtr< UnsortedMeshedSurface > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
Face FaceType
Face type used.
declareRunTimeSelectionTable(autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name))
const List< label > & zoneIds() const
Return const access to the zone ids.
surfZoneList sortedZones(labelList &faceMap) const
Sort faces according to zoneIds.
static wordHashSet writeTypes()
void operator=(const UnsortedMeshedSurface< Face > &)
void transfer(UnsortedMeshedSurface< Face > &)
Transfer the contents of the argument and annul the argument.
declareMemberFunctionSelectionTable(void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf))
bool read(const fileName &, const word &ext)
Read from file. Chooses reader based on explicit extension.
static void write(const fileName &, const UnsortedMeshedSurface< Face > &)
Write to file.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
label size() const
The surface size is the number of faces.
static bool canRead(const fileName &, const bool verbose=false)
Can we read this file format?
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
TypeName("UnsortedMeshedSurface")
Runtime type information.
List< label > & storedZoneIds()
Return non-const access to the zone Ids.
virtual ~UnsortedMeshedSurface()
Destructor.
virtual void remapFaces(const labelUList &faceMap)
Set new zones from faceMap.
void setOneZone()
Set zones to 0 and set a single zone.
virtual void clear()
Clear all storage.
UnsortedMeshedSurface subsetMesh(const labelHashSet &include, labelList &pointMap, labelList &faceMap) const
Return new surface.
void setZones(const surfZoneList &)
Set zone ids and zones.
const List< surfZoneIdentifier > & zoneToc() const
Return const access to the zone table-of-contents.
friend class UnsortedMeshedSurface
virtual void reset(pointField &&, List< Face > &&, List< label > &&zoneIds)
Transfer components (points, faces, zone ids).
static wordHashSet readTypes()
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for handling file names.
A surface mesh consisting of general polygon faces.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
UList< label > labelUList
points setSize(newPointi)
Macros to ease declaration of run-time selection tables.
triSurfaceToAgglom resize(surfacesMesh.size())