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;
76 class UnsortedMeshedSurface
78 public MeshedSurface<Face>
302 virtual void clear();
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
declareMemberFunctionSelectionTable(void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf))
virtual void clear()
Clear all storage.
bool read(const fileName &, const word &ext)
Read from file. Chooses reader based on explicit extension.
A HashTable with keys but without contents.
virtual void reset(pointField &&, List< Face > &&, List< label > &&zoneIds)
Transfer components (points, faces, zone ids).
A class for handling file names.
static wordHashSet writeTypes()
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
Face FaceType
Face type used.
const List< label > & zoneIds() const
Return const access to the zone ids.
void transfer(UnsortedMeshedSurface< Face > &)
Transfer the contents of the argument and annul the argument.
static bool canRead(const fileName &, const bool verbose=false)
Can we read this file format?
void operator=(const UnsortedMeshedSurface< Face > &)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual ~UnsortedMeshedSurface()
Destructor.
List< label > & storedZoneIds()
Return non-const access to the zone Ids.
UList< label > labelUList
label size() const
The surface size is the number of faces.
declareRunTimeSelectionTable(autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name))
points setSize(newPointi)
UnsortedMeshedSurface subsetMesh(const labelHashSet &include, labelList &pointMap, labelList &faceMap) const
Return new surface.
A class for handling words, derived from string.
static wordHashSet readTypes()
triSurfaceToAgglom resize(surfacesMesh.size())
TypeName("UnsortedMeshedSurface")
Runtime type information.
virtual void remapFaces(const labelUList &faceMap)
Set new zones from faceMap.
UnsortedMeshedSurface()
Construct null.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A surface mesh consisting of general polygon faces.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
const List< surfZoneIdentifier > & zoneToc() const
Return const access to the zone table-of-contents.
surfZoneList sortedZones(labelList &faceMap) const
Sort faces according to zoneIds.
label size() const
The surface size is the number of faces.
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
void setZones(const surfZoneList &)
Set zone ids and zones.
static void write(const fileName &, const UnsortedMeshedSurface< Face > &)
Write to file.
List< surfZoneIdentifier > & storedZoneToc()
Return non-const access to the zone table-of-contents.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
static autoPtr< UnsortedMeshedSurface > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
void setOneZone()
Set zones to 0 and set a single zone.