A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated with each face. More...
Public Types | |
typedef Face | FaceType |
Face type used. More... | |
Public Types inherited from MeshedSurface< Face > | |
typedef Face | FaceType |
Face type used. More... | |
Public Types inherited from PrimitivePatch<::Foam::List< Face >, pointField > | |
enum | surfaceTopo |
Enumeration defining the surface type. Used in check routines. More... | |
typedef ::Foam::List< Face > | FaceListType |
typedef std::remove_reference< ::Foam::List< Face > >::type::value_type | FaceType |
typedef pointField | PointFieldType |
typedef std::remove_reference< pointField >::type::value_type | PointType |
Public Types inherited from List< Face > | |
typedef SubList< Face > | subList |
Declare type of subList. More... | |
Public Types inherited from UList< T > | |
typedef T | value_type |
Type of values the UList contains. More... | |
typedef T & | reference |
Type that can be used for storing into. More... | |
typedef const T & | const_reference |
Type that can be used for storing into. More... | |
typedef label | difference_type |
The type that can represent the difference between any two. More... | |
typedef label | size_type |
The type that can represent the size of a UList. More... | |
typedef T * | iterator |
Random access iterator for traversing UList. More... | |
typedef const T * | const_iterator |
Random access iterator for traversing UList. More... | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Reverse iterator for reverse traversal of UList. More... | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Reverse iterator for reverse traversal of constant UList. More... | |
Public Member Functions | |
TypeName ("UnsortedMeshedSurface") | |
Runtime type information. More... | |
UnsortedMeshedSurface () | |
Construct null. More... | |
UnsortedMeshedSurface (pointField &&, List< Face > &&, List< label > &&zoneIds, surfZoneIdentifierList &&) | |
Construct by transferring components. More... | |
UnsortedMeshedSurface (pointField &&, List< Face > &&, const labelUList &zoneSizes=labelUList(), const UList< word > &zoneNames=UList< word >()) | |
Construct by transferring points, faces. More... | |
UnsortedMeshedSurface (const UnsortedMeshedSurface< Face > &) | |
Copy constructor. More... | |
UnsortedMeshedSurface (const MeshedSurface< Face > &) | |
Construct from a meshedSurface. More... | |
UnsortedMeshedSurface (UnsortedMeshedSurface< Face > &&) | |
Construct by transferring the contents from a UnsortedMeshedSurface. More... | |
UnsortedMeshedSurface (MeshedSurface< Face > &&) | |
Construct by transferring the contents from a meshedSurface. More... | |
UnsortedMeshedSurface (const fileName &) | |
Construct from file name (uses extension to determine type) More... | |
UnsortedMeshedSurface (const fileName &, const word &) | |
Construct from file name (uses extension to determine type) More... | |
UnsortedMeshedSurface (const Time &, const word &surfName="") | |
Construct from objectRegistry and a named surface. More... | |
declareRunTimeSelectionTable (autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name)) | |
virtual | ~UnsortedMeshedSurface () |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf)) | |
label | size () const |
The surface size is the number of faces. More... | |
void | setSize (const label) |
Reset size of face and zone list. More... | |
const List< label > & | zoneIds () const |
Return const access to the zone ids. More... | |
const List< surfZoneIdentifier > & | zoneToc () const |
Return const access to the zone table-of-contents. More... | |
surfZoneList | sortedZones (labelList &faceMap) const |
Sort faces according to zoneIds. More... | |
void | setOneZone () |
Set zones to 0 and set a single zone. More... | |
void | setZones (const surfZoneList &) |
Set zone ids and zones. More... | |
void | setZones (const labelUList &sizes, const UList< word > &names) |
Set zone ids and zones. More... | |
void | setZones (const labelUList &sizes) |
Set zone ids and zones with default names. More... | |
virtual void | clear () |
Clear all storage. More... | |
UnsortedMeshedSurface | subsetMesh (const labelHashSet &include, labelList &pointMap, labelList &faceMap) const |
Return new surface. More... | |
UnsortedMeshedSurface | subsetMesh (const labelHashSet &include) const |
Return new surface. More... | |
virtual void | reset (pointField &&, List< Face > &&, List< label > &&zoneIds) |
Transfer components (points, faces, zone ids). More... | |
virtual void | reset (List< point > &&, List< Face > &&, List< label > &&zoneIds) |
Transfer components (points, faces, zone ids). More... | |
void | transfer (UnsortedMeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
void | transfer (MeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (const fileName &, const word &ext) |
Read from file. Chooses reader based on explicit extension. More... | |
virtual bool | read (const fileName &) |
Read from file. Chooses reader based on detected extension. More... | |
virtual void | write (const fileName &name) const |
Generic write routine. Chooses writer based on extension. More... | |
void | write (const Time &, const word &surfName="") const |
Write to database. More... | |
void | operator= (const UnsortedMeshedSurface< Face > &) |
operator MeshedSurfaceProxy< Face > () const | |
Conversion operator to MeshedSurfaceProxy. More... | |
Public Member Functions inherited from MeshedSurface< Face > | |
ClassName ("MeshedSurface") | |
Runtime type information. More... | |
MeshedSurface () | |
Construct null. More... | |
MeshedSurface (pointField &&, List< Face > &&, surfZoneList &&) | |
Construct by transferring components (points, faces, zones). More... | |
MeshedSurface (pointField &&, List< Face > &&, const labelUList &zoneSizes=labelUList(), const UList< word > &zoneNames=UList< word >()) | |
Construct by transferring components (points, faces). More... | |
MeshedSurface (const MeshedSurface &) | |
Copy constructor. More... | |
MeshedSurface (const UnsortedMeshedSurface< Face > &) | |
Construct from a UnsortedMeshedSurface. More... | |
MeshedSurface (const polyBoundaryMesh &, const bool globalPoints=false) | |
Construct from a boundary mesh with local points/faces. More... | |
MeshedSurface (const surfMesh &) | |
Construct from a surfMesh. More... | |
MeshedSurface (UnsortedMeshedSurface< Face > &&) | |
Construct by transferring the contents from a UnsortedMeshedSurface. More... | |
MeshedSurface (MeshedSurface< Face > &&) | |
Construct by transferring the contents from a MeshedSurface. More... | |
MeshedSurface (const fileName &) | |
Construct from file name (uses extension to determine type) More... | |
MeshedSurface (const fileName &, const word &ext) | |
Construct from file name (uses extension to determine type) More... | |
MeshedSurface (const Time &, const word &surfName="") | |
Construct from database. More... | |
declareRunTimeSelectionTable (autoPtr, MeshedSurface, fileExtension,(const fileName &name),(name)) | |
virtual | ~MeshedSurface () |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const MeshedSurface< Face > &surf),(name, surf)) | |
label | size () const |
The surface size is the number of faces. More... | |
const List< Face > & | faces () const |
Return const access to the faces. More... | |
const List< surfZone > & | surfZones () const |
Const access to the surface zones. More... | |
virtual void | addZones (const UList< surfZone > &, const bool cullEmpty=false) |
Add surface zones. More... | |
virtual void | addZones (const labelUList &sizes, const UList< word > &names, const bool cullEmpty=false) |
Add surface zones. More... | |
virtual void | addZones (const labelUList &sizes, const bool cullEmpty=false) |
Add surface zones. More... | |
virtual void | removeZones () |
Remove surface zones. More... | |
virtual void | movePoints (const pointField &) |
Move points. More... | |
virtual void | scalePoints (const scalar) |
Scale points. A non-positive factor is ignored. More... | |
virtual void | reset (pointField &&points, List< Face > &&faces, surfZoneList &&zones) |
Reset primitive data (points, faces and zones) More... | |
virtual void | reset (List< point > &&points, List< Face > &&faces, surfZoneList &&zones) |
Reset primitive data (points, faces and zones) More... | |
virtual void | cleanup (const bool verbose) |
Remove invalid faces. More... | |
virtual bool | stitchFaces (const scalar tol=small, const bool verbose=false) |
virtual bool | checkFaces (const bool verbose=false) |
virtual label | triangulate () |
Triangulate in-place, returning the number of triangles added. More... | |
virtual label | triangulate (List< label > &faceMap) |
Triangulate in-place, returning the number of triangles added. More... | |
MeshedSurface | subsetMesh (const labelHashSet &include, labelList &pointMap, labelList &faceMap) const |
Return new surface. More... | |
MeshedSurface | subsetMesh (const labelHashSet &include) const |
Return new surface. More... | |
void | transfer (MeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
void | transfer (UnsortedMeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (const fileName &, const word &ext) |
Read from file. Chooses reader based on explicit extension. More... | |
void | writeStats (Ostream &os) const |
void | write (const Time &, const word &surfName="") const |
Write to database. More... | |
void | operator= (const MeshedSurface< Face > &) |
operator MeshedSurfaceProxy< Face > () const | |
Conversion operator to MeshedSurfaceProxy. More... | |
template<class Face> | |
MeshedSurface (const MeshedSurface< Face > &surf) | |
template<> | |
bool | isTri () |
Specialisation for holding triangulated information. More... | |
template<> | |
label | triangulate () |
Specialisation for holding triangulated information. More... | |
template<> | |
label | triangulate (List< label > &faceMap) |
Specialisation for holding triangulated information. More... | |
Public Member Functions inherited from PrimitivePatch<::Foam::List< Face >, pointField > | |
PrimitivePatch (const ::Foam::List< Face > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (::Foam::List< Face > &&faces, Field< PointType > &&points) | |
Move constructor from components. More... | |
PrimitivePatch (::Foam::List< Face > &faces, Field< PointType > &points, const bool reuse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< ::Foam::List< Face >, pointField > &) | |
Copy constructor. More... | |
PrimitivePatch (PrimitivePatch< ::Foam::List< Face >, pointField > &&) | |
Move constructor. More... | |
autoPtr< PrimitivePatch< ::Foam::List< Face >, pointField > > | clone () const |
Construct and return a clone. More... | |
~PrimitivePatch () | |
Destructor. More... | |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< FaceType > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. More... | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceAreas () const |
Return face areas for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | operator= (const PrimitivePatch< ::Foam::List< Face >, pointField > &) |
Assignment operator. More... | |
void | operator= (PrimitivePatch< ::Foam::List< Face >, pointField > &&) |
Move assignment operator. More... | |
Public Member Functions inherited from List< Face > | |
List () | |
Null constructor. More... | |
List (const label) | |
Construct with given size. More... | |
List (const label, const Face &) | |
Construct with given size and value for all elements. More... | |
List (const label, const zero) | |
Construct with given size initialising all elements to zero. More... | |
List (const List< Face > &) | |
Copy constructor. More... | |
List (const List< T2 > &) | |
Copy constructor from list containing another type. More... | |
List (List< Face > &&) | |
Move constructor. More... | |
List (List< Face > &, bool reuse) | |
Construct as copy or re-use as specified. More... | |
List (const UList< Face > &, const labelUList &mapAddressing) | |
Construct as subset. More... | |
List (InputIterator first, InputIterator last) | |
Construct given start and end iterators. More... | |
List (const FixedList< Face, Size > &) | |
Construct as copy of FixedList<T, Size> More... | |
List (const PtrList< Face > &) | |
Construct as copy of PtrList<T> More... | |
List (const SLList< Face > &) | |
Construct as copy of SLList<T> More... | |
List (const UIndirectList< Face > &) | |
Construct as copy of UIndirectList<T> More... | |
List (const BiIndirectList< Face > &) | |
Construct as copy of BiIndirectList<T> More... | |
List (std::initializer_list< Face >) | |
Construct from an initialiser list. More... | |
List (Istream &) | |
Construct from Istream. More... | |
label | size () const |
Return the number of elements in the UList. More... | |
autoPtr< List< Face > > | clone () const |
Clone. More... | |
~List () | |
Destructor. More... | |
void | resize (const label) |
Alias for setSize(const label) More... | |
void | resize (const label, const Face &) |
Alias for setSize(const label, const T&) More... | |
void | setSize (const label) |
Reset size of List. More... | |
void | setSize (const label, const Face &) |
Reset size of List and value for new elements. More... | |
void | clear () |
Clear the list, i.e. set size to zero. More... | |
void | append (const Face &) |
Append an element at the end of the list. More... | |
void | append (const UList< Face > &) |
Append a List at the end of this list. More... | |
void | append (const UIndirectList< Face > &) |
Append a UIndirectList at the end of this list. More... | |
void | transfer (List< Face > &) |
Transfer the contents of the argument List into this list. More... | |
void | transfer (DynamicList< Face, SizeInc, SizeMult, SizeDiv > &) |
Transfer the contents of the argument List into this list. More... | |
void | transfer (SortableList< Face > &) |
Transfer the contents of the argument List into this list. More... | |
Face & | newElmt (const label) |
Return subscript-checked element of UList. More... | |
void | shallowCopy (const UList< Face > &)=delete |
Disallow implicit shallowCopy. More... | |
void | operator= (const UList< Face > &) |
Assignment to UList operator. Takes linear time. More... | |
void | operator= (const List< Face > &) |
Assignment operator. Takes linear time. More... | |
void | operator= (List< Face > &&) |
Move assignment operator. More... | |
void | operator= (const SLList< Face > &) |
Assignment to SLList operator. Takes linear time. More... | |
void | operator= (const UIndirectList< Face > &) |
Assignment to UIndirectList operator. Takes linear time. More... | |
void | operator= (const BiIndirectList< Face > &) |
Assignment to BiIndirectList operator. Takes linear time. More... | |
void | operator= (std::initializer_list< Face >) |
Assignment to an initialiser list. More... | |
void | operator= (const Face &) |
Assignment of all entries to the given value. More... | |
void | operator= (const zero) |
Assignment of all entries to zero. More... | |
Public Member Functions inherited from UList< T > | |
UList () | |
Null constructor. More... | |
UList (T *__restrict__ v, label size) | |
Construct from components. More... | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. More... | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. More... | |
std::streamsize | byteSize () const |
Return the binary size in number of characters of the UList. More... | |
const T * | cdata () const |
Return a const pointer to the first data element,. More... | |
T * | data () |
Return a pointer to the first data element,. More... | |
T & | first () |
Return the first element of the list. More... | |
const T & | first () const |
Return first element of the list. More... | |
T & | last () |
Return the last element of the list. More... | |
const T & | last () const |
Return the last element of the list. More... | |
void | checkStart (const label start) const |
Check start is within valid range (0 ... size-1) More... | |
void | checkSize (const label size) const |
Check size is within valid range (0 ... size) More... | |
void | checkIndex (const label i) const |
Check index i is within valid range (0 ... size-1) More... | |
void | shallowCopy (const UList< T > &) |
Copy the pointer held by the given UList. More... | |
void | deepCopy (const UList< T > &) |
Copy elements of the given UList. More... | |
T & | operator[] (const label) |
Return element of UList. More... | |
const T & | operator[] (const label) const |
Return element of constant UList. More... | |
operator const Foam::List< T > & () const | |
Allow cast to a const List<T>&. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
void | operator= (const zero) |
Assignment of all entries to zero. More... | |
iterator | begin () |
Return an iterator to begin traversing the UList. More... | |
iterator | end () |
Return an iterator to end traversing the UList. More... | |
const_iterator | cbegin () const |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | cend () const |
Return const_iterator to end traversing the constant UList. More... | |
const_iterator | begin () const |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | end () const |
Return const_iterator to end traversing the constant UList. More... | |
reverse_iterator | rbegin () |
Return reverse_iterator to begin reverse traversing the UList. More... | |
reverse_iterator | rend () |
Return reverse_iterator to end reverse traversing the UList. More... | |
const_reverse_iterator | crbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. More... | |
const_reverse_iterator | crend () const |
Return const_reverse_iterator to end reverse traversing the UList. More... | |
const_reverse_iterator | rbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. More... | |
const_reverse_iterator | rend () const |
Return const_reverse_iterator to end reverse traversing the UList. More... | |
label | size () const |
Return the number of elements in the UList. More... | |
label | max_size () const |
Return size of the largest possible UList. More... | |
bool | empty () const |
Return true if the UList is empty (ie, size() is zero) More... | |
void | swap (UList< T > &) |
Swap two ULists of the same type in constant time. More... | |
bool | operator== (const UList< T > &) const |
Equality operation on ULists of the same type. More... | |
bool | operator!= (const UList< T > &) const |
The opposite of the equality operation. Takes linear time. More... | |
bool | operator< (const UList< T > &) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator> (const UList< T > &) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator<= (const UList< T > &) const |
Return true if !(a > b). Takes linear time. More... | |
bool | operator>= (const UList< T > &) const |
Return true if !(a < b). Takes linear time. More... | |
template<> | |
const bool & | operator[] (const label i) const |
Public Member Functions inherited from surfaceFormatsCore | |
surfaceFormatsCore () | |
Construct null. More... | |
virtual | ~surfaceFormatsCore () |
Destructor. More... | |
Static Public Member Functions | |
static bool | canReadType (const word &ext, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canRead (const fileName &, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can we write this file format? More... | |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static autoPtr< UnsortedMeshedSurface > | New (const fileName &, const word &ext) |
Select constructed from filename (explicit extension) More... | |
static autoPtr< UnsortedMeshedSurface > | New (const fileName &) |
Select constructed from filename (implicit extension) More... | |
static void | write (const fileName &, const UnsortedMeshedSurface< Face > &) |
Write to file. More... | |
Static Public Member Functions inherited from MeshedSurface< Face > | |
static bool | isTri () |
Face storage only handles triangulated faces. More... | |
static bool | canRead (const fileName &, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canReadType (const word &ext, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can we write this file format? More... | |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static autoPtr< MeshedSurface > | New (const fileName &, const word &ext) |
Select constructed from filename (explicit extension) More... | |
static autoPtr< MeshedSurface > | New (const fileName &) |
Select constructed from filename (implicit extension) More... | |
static void | write (const fileName &, const MeshedSurface< Face > &) |
Write to file. More... | |
Static Public Member Functions inherited from List< Face > | |
static const List< Face > & | null () |
Return a null List. More... | |
Static Public Member Functions inherited from UList< T > | |
static const UList< T > & | null () |
Return a null UList. More... | |
Static Public Member Functions inherited from surfaceFormatsCore | |
static bool | checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName) |
static fileName | localMeshFileName (const word &surfName="") |
Return the local file name (within time directory) More... | |
static fileName | findMeshInstance (const Time &, const word &surfName="") |
Find instance with surfName. More... | |
static fileName | findMeshFile (const Time &, const word &surfName="") |
Find mesh file with surfName. More... | |
Protected Member Functions | |
List< label > & | storedZoneIds () |
Return non-const access to the zone Ids. More... | |
List< surfZoneIdentifier > & | storedZoneToc () |
Return non-const access to the zone table-of-contents. More... | |
virtual void | remapFaces (const labelUList &faceMap) |
Set new zones from faceMap. More... | |
Protected Member Functions inherited from MeshedSurface< Face > | |
void | transcribe (MeshedSurface< face > &) |
Transfer points/zones and transcribe face -> triFace. More... | |
void | checkZones () |
Basic sanity check on zones. More... | |
pointField & | storedPoints () |
Non-const access to global points. More... | |
List< Face > & | storedFaces () |
Non-const access to the faces. More... | |
surfZoneList & | storedZones () |
Non-const access to the zones. More... | |
void | sortFacesAndStore (List< Face > &&unsortedFaces, List< label > &&zoneIds, const bool sorted) |
Sort faces by zones and store sorted faces. More... | |
template<> | |
void | transcribe (MeshedSurface< face > &surf) |
template<> | |
void | transcribe (MeshedSurface< face > &surf) |
Protected Member Functions inherited from List< Face > | |
void | size (const label) |
Override size to be inconsistent with allocated storage. More... | |
Friends | |
template<class Face2 > | |
class | MeshedSurface |
template<class Face2 > | |
class | UnsortedMeshedSurface |
class | surfMesh |
Additional Inherited Members | |
Static Public Attributes inherited from surfaceFormatsCore | |
static word | nativeExt |
The file extension corresponding to 'native' surface format. More... | |
Static Protected Member Functions inherited from surfaceFormatsCore | |
template<class Container > | |
static List< surfZone > | oneZone (const Container &container, const word &name="zone0") |
Return a list with a single entry,. More... | |
static string | getLineNoComment (IFstream &) |
Read non-comment line. More... | |
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated with each face.
This form of surface description is particularly useful for reading in surface meshes from third-party formats (eg, obj, stl, gts, etc.). It can also be particularly useful for situations in which the surface many be adjusted in an arbitrary manner without worrying about needed to adjust the zone information (eg, surface refinement).
Definition at line 74 of file MeshedSurface.H.
typedef Face FaceType |
Face type used.
Definition at line 137 of file UnsortedMeshedSurface.H.
Construct null.
Definition at line 146 of file UnsortedMeshedSurface.C.
Referenced by UnsortedMeshedSurface< Face >::subsetMesh(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | pointField && | pointLst, |
List< Face > && | faceLst, | ||
List< label > && | zoneIds, | ||
surfZoneIdentifierList && | zoneTofc | ||
) |
Construct by transferring components.
(points, faces, zone ids, zone info).
Definition at line 154 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | pointField && | pointLst, |
List< Face > && | faceLst, | ||
const labelUList & | zoneSizes = labelUList() , |
||
const UList< word > & | zoneNames = UList<word>() |
||
) |
Construct by transferring points, faces.
Use zone information, or set single default zone
Definition at line 169 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::setOneZone(), UnsortedMeshedSurface< Face >::setZones(), UList< T >::size(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | const UnsortedMeshedSurface< Face > & | surf | ) |
Copy constructor.
Definition at line 198 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | const MeshedSurface< Face > & | surf | ) |
Construct from a meshedSurface.
Definition at line 214 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::setZones(), MeshedSurface< Face >::surfZones(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | UnsortedMeshedSurface< Face > && | surf | ) |
Construct by transferring the contents from a UnsortedMeshedSurface.
Definition at line 230 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::transfer(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | MeshedSurface< Face > && | surf | ) |
Construct by transferring the contents from a meshedSurface.
Definition at line 242 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::transfer(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | const fileName & | name | ) |
Construct from file name (uses extension to determine type)
Definition at line 266 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::read(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
UnsortedMeshedSurface | ( | const fileName & | name, |
const word & | ext | ||
) |
Construct from file name (uses extension to determine type)
Definition at line 254 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::read().
UnsortedMeshedSurface | ( | const Time & | t, |
const word & | surfName = "" |
||
) |
Construct from objectRegistry and a named surface.
Definition at line 276 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::transfer().
|
virtual |
Destructor.
Definition at line 291 of file UnsortedMeshedSurface.C.
Return non-const access to the zone Ids.
Definition at line 117 of file UnsortedMeshedSurface.H.
|
inlineprotected |
Return non-const access to the zone table-of-contents.
Definition at line 123 of file UnsortedMeshedSurface.H.
References Foam::faceMap(), and UnsortedMeshedSurface< Face >::remapFaces().
|
protectedvirtual |
Set new zones from faceMap.
Reimplemented from MeshedSurface< Face >.
Definition at line 393 of file UnsortedMeshedSurface.C.
References forAll, Foam::notNull(), UnsortedMeshedSurface< Face >::setOneZone(), UList< T >::size(), and List< T >::transfer().
Referenced by UnsortedMeshedSurface< Face >::setZones(), and UnsortedMeshedSurface< Face >::storedZoneToc().
TypeName | ( | "UnsortedMeshedSurface< Face >" | ) |
Runtime type information.
Can we read this file format?
Definition at line 53 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::canWriteType().
Referenced by UnsortedMeshedSurface< Face >::writeTypes().
Can we read this file format?
Definition at line 87 of file UnsortedMeshedSurface.C.
References fileName::ext(), fileName::lessExt(), and UnsortedMeshedSurface< Face >::write().
Referenced by UnsortedMeshedSurface< Face >::canWriteType().
Can we write this file format?
Definition at line 70 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::canRead().
Referenced by UnsortedMeshedSurface< Face >::canReadType().
|
static |
Definition at line 38 of file UnsortedMeshedSurface.C.
|
static |
Definition at line 45 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::canReadType().
declareRunTimeSelectionTable | ( | autoPtr | , |
UnsortedMeshedSurface< Face > | , | ||
fileExtension | , | ||
(const fileName &name) | , | ||
(name) | |||
) |
|
static |
Select constructed from filename (explicit extension)
Definition at line 32 of file UnsortedMeshedSurfaceNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, HashTable< T, Key, Hash >::found(), InfoInFunction, Foam::name(), Foam::compressible::New(), and Foam::nl.
Referenced by UnsortedMeshedSurface< Face >::read().
|
static |
Select constructed from filename (implicit extension)
Definition at line 74 of file UnsortedMeshedSurfaceNew.C.
References fileName::ext(), fileName::lessExt(), and Foam::compressible::New().
declareMemberFunctionSelectionTable | ( | void | , |
UnsortedMeshedSurface< Face > | , | ||
write | , | ||
fileExtension | , | ||
(const fileName &name, const UnsortedMeshedSurface< Face > &surf) | , | ||
(name, surf) | |||
) |
|
static |
Write to file.
Definition at line 103 of file UnsortedMeshedSurface.C.
References Foam::endl(), Foam::exit(), fileName::ext(), Foam::FatalError, FatalErrorInFunction, HashTable< T, Key, Hash >::found(), InfoInFunction, Foam::name(), Foam::nl, and Foam::vtkWriteOps::write().
Referenced by UnsortedMeshedSurface< Face >::canRead(), UnsortedMeshedSurface< Face >::read(), and UnsortedMeshedSurface< Face >::write().
|
inline |
The surface size is the number of faces.
Definition at line 260 of file UnsortedMeshedSurface.H.
References setSize(), and MeshedSurface< Face >::size().
Referenced by UnsortedMeshedSurface< Face >::setOneZone(), UnsortedMeshedSurface< Face >::setZones(), GTSsurfaceFormat< Face >::write(), and AC3DsurfaceFormat< Face >::write().
void setSize | ( | const label | s | ) |
Reset size of face and zone list.
Definition at line 426 of file UnsortedMeshedSurface.C.
References List< T >::setSize(), and MeshedSurface< Face >::storedFaces().
Return const access to the zone ids.
Definition at line 269 of file UnsortedMeshedSurface.H.
Referenced by UnsortedMeshedSurface< Face >::reset(), GTSsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeBinary(), and UnsortedMeshedSurface< Face >::zoneToc().
|
inline |
Return const access to the zone table-of-contents.
Definition at line 275 of file UnsortedMeshedSurface.H.
References UnsortedMeshedSurface< Face >::clear(), UnsortedMeshedSurface< Face >::read(), UnsortedMeshedSurface< Face >::reset(), UnsortedMeshedSurface< Face >::setOneZone(), UnsortedMeshedSurface< Face >::setZones(), UnsortedMeshedSurface< Face >::sortedZones(), UnsortedMeshedSurface< Face >::subsetMesh(), UnsortedMeshedSurface< Face >::transfer(), and UnsortedMeshedSurface< Face >::zoneIds().
Referenced by GTSsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), and STLsurfaceFormat< Face >::writeAscii().
Foam::surfZoneList sortedZones | ( | labelList & | faceMap | ) | const |
Sort faces according to zoneIds.
Returns a surfZoneList and sets faceMap to index within faces() (i.e. map from original,unsorted to sorted)
Definition at line 445 of file UnsortedMeshedSurface.C.
References HashTableCore::end(), HashTable< T, label, Hash< label > >::find(), HashTable< T, Key, Hash >::find(), forAll, forAllIter, HashTable< T, label, Hash< label > >::insert(), HashTable< T, Key, Hash >::insert(), lookup(), Foam::name(), List< T >::setSize(), List< T >::size(), HashTable< T, Key, Hash >::size(), and UnsortedMeshedSurface< Face >::subsetMesh().
Referenced by UnsortedMeshedSurface< Face >::clear(), MeshedSurface< Foam::face >::MeshedSurface(), UnsortedMeshedSurface< Face >::operator=(), MeshedSurface< Foam::face >::transfer(), AC3DsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and UnsortedMeshedSurface< Face >::zoneToc().
void setOneZone | ( | ) |
Set zones to 0 and set a single zone.
Definition at line 298 of file UnsortedMeshedSurface.C.
References List< T >::setSize(), UnsortedMeshedSurface< Face >::setZones(), and UnsortedMeshedSurface< Face >::size().
Referenced by UnsortedMeshedSurface< Face >::remapFaces(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), and UnsortedMeshedSurface< Face >::zoneToc().
void setZones | ( | const surfZoneList & | zoneLst | ) |
Set zone ids and zones.
Definition at line 321 of file UnsortedMeshedSurface.C.
References forAll, List< T >::setSize(), List< T >::size(), surfZone::size(), UnsortedMeshedSurface< Face >::size(), and surfZone::start().
Referenced by UnsortedMeshedSurface< Face >::setOneZone(), UnsortedMeshedSurface< Face >::setZones(), UnsortedMeshedSurface< Face >::transfer(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), and UnsortedMeshedSurface< Face >::zoneToc().
void setZones | ( | const labelUList & | sizes, |
const UList< word > & | names | ||
) |
Set zone ids and zones.
Definition at line 342 of file UnsortedMeshedSurface.C.
References forAll, List< T >::setSize(), UnsortedMeshedSurface< Face >::setZones(), UnsortedMeshedSurface< Face >::size(), and UList< T >::size().
void setZones | ( | const labelUList & | sizes | ) |
Set zone ids and zones with default names.
Definition at line 366 of file UnsortedMeshedSurface.C.
References forAll, Foam::name(), UnsortedMeshedSurface< Face >::remapFaces(), List< T >::setSize(), UnsortedMeshedSurface< Face >::size(), and UList< T >::size().
|
virtual |
Clear all storage.
Reimplemented from MeshedSurface< Face >.
Definition at line 435 of file UnsortedMeshedSurface.C.
References List< T >::clear(), MeshedSurface< Face >::clear(), and UnsortedMeshedSurface< Face >::sortedZones().
Referenced by UnsortedMeshedSurface< Face >::operator=(), OFSsurfaceFormat< Face >::read(), UnsortedMeshedSurface< Face >::read(), UnsortedMeshedSurface< Face >::transfer(), MeshedSurface< Foam::face >::transfer(), and UnsortedMeshedSurface< Face >::zoneToc().
Foam::UnsortedMeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include, |
labelList & | pointMap, | ||
labelList & | faceMap | ||
) | const |
Return new surface.
Returns return pointMap, faceMap from subsetMeshMap
Definition at line 531 of file UnsortedMeshedSurface.C.
References List< T >::clear(), f(), forAll, PrimitivePatch<::Foam::List< Face >, pointField >::localFaces(), PrimitivePatch<::Foam::List< Face >, pointField >::localPoints(), List< T >::size(), PatchTools::subsetMap(), and UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().
Referenced by UnsortedMeshedSurface< Face >::sortedZones(), UnsortedMeshedSurface< Face >::subsetMesh(), AC3DsurfaceFormat< Face >::write(), and UnsortedMeshedSurface< Face >::zoneToc().
Foam::UnsortedMeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include | ) | const |
Return new surface.
Definition at line 585 of file UnsortedMeshedSurface.C.
References Foam::faceMap(), UnsortedMeshedSurface< Face >::reset(), and UnsortedMeshedSurface< Face >::subsetMesh().
|
virtual |
Transfer components (points, faces, zone ids).
Definition at line 596 of file UnsortedMeshedSurface.C.
References Foam::notNull(), MeshedSurface< Face >::reset(), List< T >::transfer(), and UnsortedMeshedSurface< Face >::zoneIds().
Referenced by UnsortedMeshedSurface< Face >::subsetMesh(), and UnsortedMeshedSurface< Face >::zoneToc().
Transfer components (points, faces, zone ids).
Definition at line 618 of file UnsortedMeshedSurface.C.
References Foam::notNull(), MeshedSurface< Face >::reset(), List< T >::transfer(), UnsortedMeshedSurface< Face >::transfer(), and UnsortedMeshedSurface< Face >::zoneIds().
void transfer | ( | UnsortedMeshedSurface< Face > & | surf | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 640 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::clear(), MeshedSurface< Face >::reset(), MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), and List< T >::transfer().
Referenced by OFSsurfaceFormat< Face >::read(), UnsortedMeshedSurface< Face >::read(), UnsortedMeshedSurface< Face >::reset(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), and UnsortedMeshedSurface< Face >::zoneToc().
void transfer | ( | MeshedSurface< Face > & | surf | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 660 of file UnsortedMeshedSurface.C.
References MeshedSurface< Face >::clear(), MeshedSurface< Face >::reset(), UnsortedMeshedSurface< Face >::setZones(), MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), and MeshedSurface< Face >::surfZones().
Read from file. Chooses reader based on explicit extension.
Definition at line 696 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::clear(), UnsortedMeshedSurface< Face >::New(), UnsortedMeshedSurface< Face >::transfer(), and UnsortedMeshedSurface< Face >::write().
Referenced by UnsortedMeshedSurface< Face >::read(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), and UnsortedMeshedSurface< Face >::zoneToc().
Read from file. Chooses reader based on detected extension.
Reimplemented from MeshedSurface< Face >.
Reimplemented in GTSsurfaceFormat< Face >.
Definition at line 678 of file UnsortedMeshedSurface.C.
References fileName::ext(), fileName::lessExt(), and UnsortedMeshedSurface< Face >::read().
|
inlinevirtual |
Generic write routine. Chooses writer based on extension.
Reimplemented from MeshedSurface< Face >.
Reimplemented in GTSsurfaceFormat< Face >.
Definition at line 356 of file UnsortedMeshedSurface.H.
References UnsortedMeshedSurface< Face >::operator=(), and UnsortedMeshedSurface< Face >::write().
Write to database.
Definition at line 711 of file UnsortedMeshedSurface.C.
References MeshedSurfaceProxy< Face >::write().
void operator= | ( | const UnsortedMeshedSurface< Face > & | surf | ) |
Definition at line 724 of file UnsortedMeshedSurface.C.
References UnsortedMeshedSurface< Face >::clear(), Foam::faceMap(), MeshedSurface< Face >::faces(), PrimitivePatch<::Foam::List< Face >, pointField >::points(), UnsortedMeshedSurface< Face >::sortedZones(), MeshedSurface< Face >::storedFaces(), and MeshedSurface< Face >::storedPoints().
Referenced by UnsortedMeshedSurface< Face >::write().
operator MeshedSurfaceProxy< Face > | ( | ) | const |
Conversion operator to MeshedSurfaceProxy.
|
friend |
Definition at line 80 of file UnsortedMeshedSurface.H.
|
friend |
Definition at line 81 of file UnsortedMeshedSurface.H.
|
friend |
Definition at line 82 of file UnsortedMeshedSurface.H.