A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMesh, which actually refers to the cell faces of a volume mesh. More...
#include <surfMesh/MeshedSurface.H>
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMesh, which actually refers to the cell faces of a volume mesh.
A MeshedSurface can have zero or more surface zones (roughly equivalent to faceZones for a polyMesh). If surface zones are defined, they must be contiguous and cover all of the faces.
The MeshedSurface is intended for surfaces from a variety of sources.
Definition at line 82 of file MeshedSurface.H.
Inheritance diagram for MeshedSurface< Face >:
Collaboration diagram for MeshedSurface< Face >:Public Member Functions | |
| ClassName ("MeshedSurface") | |
| Runtime type information. | |
| MeshedSurface () | |
| Construct null. | |
| MeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< surfZoneList > &) | |
| Construct by transferring components (points, faces, zones). | |
| MeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const UList< label > &zoneSizes=UList< label >(), const UList< word > &zoneNames=UList< word >()) | |
| Construct by transferring components (points, faces). | |
| MeshedSurface (const MeshedSurface &) | |
| Construct as copy. | |
| MeshedSurface (const UnsortedMeshedSurface< Face > &) | |
| Construct from a UnsortedMeshedSurface. | |
| MeshedSurface (const polyBoundaryMesh &, const bool globalPoints=false) | |
| Construct from a boundary mesh with local points/faces. | |
| MeshedSurface (const surfMesh &) | |
| Construct from a surfMesh. | |
| MeshedSurface (const Xfer< UnsortedMeshedSurface< Face > > &) | |
| Construct by transferring the contents from a UnsortedMeshedSurface. | |
| MeshedSurface (const Xfer< MeshedSurface< Face > > &) | |
| Construct by transferring the contents from a MeshedSurface. | |
| MeshedSurface (const fileName &) | |
| Construct from file name (uses extension to determine type) | |
| MeshedSurface (const fileName &, const word &ext) | |
| Construct from file name (uses extension to determine type) | |
| MeshedSurface (const Time &, const word &surfName="") | |
| Construct from database. | |
| declareRunTimeSelectionTable (autoPtr, MeshedSurface, fileExtension,(const fileName &name),(name)) | |
| virtual | ~MeshedSurface () |
| 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. | |
| const List< Face > & | faces () const |
| Return const access to the faces. | |
| const List< surfZone > & | surfZones () const |
| Const access to the surface zones. | |
| virtual void | addZones (const UList< surfZone > &, const bool cullEmpty=false) |
| Add surface zones. | |
| virtual void | addZones (const UList< label > &sizes, const UList< word > &names, const bool cullEmpty=false) |
| Add surface zones. | |
| virtual void | addZones (const UList< label > &sizes, const bool cullEmpty=false) |
| Add surface zones. | |
| virtual void | removeZones () |
| Remove surface zones. | |
| virtual void | clear () |
| Clear all storage. | |
| virtual void | movePoints (const pointField &) |
| Move points. | |
| virtual void | scalePoints (const scalar &) |
| Scale points. A non-positive factor is ignored. | |
| virtual void | reset (const Xfer< pointField > &points, const Xfer< List< Face > > &faces, const Xfer< surfZoneList > &zones) |
| Reset primitive data (points, faces and zones) | |
| virtual void | reset (const Xfer< List< point > > &points, const Xfer< List< Face > > &faces, const Xfer< surfZoneList > &zones) |
| Reset primitive data (points, faces and zones) | |
| virtual void | cleanup (const bool verbose) |
| Remove invalid faces. | |
| 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. | |
| virtual label | triangulate (List< label > &faceMap) |
| Triangulate in-place, returning the number of triangles added. | |
| MeshedSurface | subsetMesh (const labelHashSet &include, labelList &pointMap, labelList &faceMap) const |
| Return new surface. | |
| MeshedSurface | subsetMesh (const labelHashSet &include) const |
| Return new surface. | |
| void | transfer (MeshedSurface< Face > &) |
| Transfer the contents of the argument and annull the argument. | |
| void | transfer (UnsortedMeshedSurface< Face > &) |
| Transfer the contents of the argument and annull the argument. | |
| Xfer< MeshedSurface< Face > > | xfer () |
| Transfer contents to the Xfer container. | |
| bool | read (const fileName &, const word &ext) |
| Read from file. Chooses reader based on explicit extension. | |
| virtual bool | read (const fileName &) |
| Read from file. Chooses reader based on detected extension. | |
| void | writeStats (Ostream &os) const |
| virtual void | write (const fileName &name) const |
| Generic write routine. Chooses writer based on extension. | |
| void | write (const Time &, const word &surfName="") const |
| Write to database. | |
| void | operator= (const MeshedSurface< Face > &) |
| operator MeshedSurfaceProxy< Face > () const | |
| Conversion operator to MeshedSurfaceProxy. | |
| template<> | |
| bool | isTri () |
| template<> | |
| label | triangulate () |
| template<> | |
| label | triangulate (List< label > &faceMap) |
Public Member Functions inherited from PrimitivePatch< Face,::Foam::List, pointField, point > | |
| PrimitivePatch (const ::Foam::List< Face > &faces, const Field< point > &points) | |
| Construct from components. | |
| PrimitivePatch (::Foam::List< Face > &faces, Field< point > &points, const bool reUse) | |
| Construct from components, reuse storage. | |
| PrimitivePatch (const PrimitivePatch< Face,::Foam::List, pointField, point > &) | |
| Construct as copy. | |
| virtual | ~PrimitivePatch () |
| void | clearOut () |
| void | clearGeom () |
| void | clearTopology () |
| void | clearPatchMeshAddr () |
| const Field< point > & | points () const |
| Return reference to global points. | |
| label | nPoints () const |
| Return number of points supporting patch faces. | |
| label | nEdges () const |
| Return number of edges in patch. | |
| const edgeList & | edges () const |
| Return list of edges, address into LOCAL point list. | |
| label | nInternalEdges () const |
| Number of internal edges. | |
| bool | isInternalEdge (const label edgeI) const |
| Is internal edge? | |
| const labelList & | boundaryPoints () const |
| Return list of boundary points,. | |
| const labelListList & | faceFaces () const |
| Return face-face addressing. | |
| const labelListList & | edgeFaces () const |
| Return edge-face addressing. | |
| const labelListList & | faceEdges () const |
| Return face-edge addressing. | |
| const labelListList & | pointEdges () const |
| Return point-edge addressing. | |
| const labelListList & | pointFaces () const |
| Return point-face addressing. | |
| const List< Face > & | localFaces () const |
| Return patch faces addressing into local point list. | |
| const labelList & | meshPoints () const |
| Return labelList of mesh points in patch. They are constructed. | |
| const Map< label > & | meshPointMap () const |
| Mesh point map. Given the global point index find its. | |
| const Field< point > & | localPoints () const |
| Return pointField of points in patch. | |
| const labelList & | localPointOrder () const |
| Return orders the local points for most efficient search. | |
| label | whichPoint (const label gp) const |
| Given a global point index, return the local point index. | |
| label | whichEdge (const edge &) const |
| Given an edge in local point labels, return its. | |
| labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
| Return labels of patch edges in the global edge list using. | |
| labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
| Return labels of patch edges in the global edge list using. | |
| const Field< point > & | faceCentres () const |
| Return face centres for patch. | |
| const Field< point > & | faceNormals () const |
| Return face normals for patch. | |
| const Field< point > & | pointNormals () const |
| Return point normals for patch. | |
| List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
| Project vertices of patch onto another patch. | |
| List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
| Project vertices of patch onto another patch. | |
| const labelListList & | edgeLoops () const |
| Return list of closed loops of boundary vertices. | |
| surfaceTopo | surfaceType () const |
| Calculate surface type formed by patch. | |
| bool | checkTopology (const bool report=false, labelHashSet *setPtr=NULL) const |
| Check surface formed by patch for manifoldness (see above). | |
| bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
| Checks primitivePatch for faces sharing point but not edge. | |
| virtual void | movePoints (const Field< point > &) |
| Correct patch after moving points. | |
| void | operator= (const PrimitivePatch< Face,::Foam::List, pointField, point > &) |
| Assignment. | |
Public Member Functions inherited from List< Face > | |
| List () | |
| Null constructor. | |
| List (const label) | |
| Construct with given size. | |
| List (const label, const Face &) | |
| Construct with given size and value for all elements. | |
| List (const List< Face > &) | |
| Copy constructor. | |
| List (const Xfer< List< Face > > &) | |
| Construct by transferring the parameter contents. | |
| List (List< Face > &, bool reUse) | |
| Construct as copy or re-use as specified. | |
| List (const UList< Face > &, const unallocLabelList &mapAddressing) | |
| Construct as subset. | |
| List (InputIterator first, InputIterator last) | |
| Construct given start and end iterators. | |
| List (const FixedList< Face, Size > &) | |
| Construct as copy of FixedList<T, Size> | |
| List (const PtrList< Face > &) | |
| Construct as copy of PtrList<T> | |
| List (const SLList< Face > &) | |
| Construct as copy of SLList<T> | |
| List (const IndirectList< Face > &) | |
| Construct as copy of IndirectList<T> | |
| List (const UIndirectList< Face > &) | |
| Construct as copy of UIndirectList<T> | |
| List (const BiIndirectList< Face > &) | |
| Construct as copy of BiIndirectList<T> | |
| List (Istream &) | |
| Construct from Istream. | |
| autoPtr< List< Face > > | clone () const |
| Clone. | |
| ~List () | |
| void | resize (const label) |
| Reset size of List. | |
| void | resize (const label, const Face &) |
| Reset size of List and value for new elements. | |
| void | setSize (const label) |
| Reset size of List. | |
| void | setSize (const label, const Face &) |
| Reset size of List and value for new elements. | |
| void | append (const UList< Face > &) |
| Append a List at the end of this list. | |
| void | append (const UIndirectList< Face > &) |
| Append a UIndirectList at the end of this list. | |
| void | transfer (List< Face > &) |
| Transfer the contents of the argument List into this list. | |
| void | transfer (DynamicList< Face, SizeInc, SizeMult, SizeDiv > &) |
| Transfer the contents of the argument List into this list. | |
| void | transfer (SortableList< Face > &) |
| Transfer the contents of the argument List into this list. | |
| Face & | newElmt (const label) |
| Return subscript-checked element of UList. | |
| void | operator= (const UList< Face > &) |
| Assignment from UList operator. Takes linear time. | |
| void | operator= (const List< Face > &) |
| Assignment operator. Takes linear time. | |
| void | operator= (const SLList< Face > &) |
| Assignment from SLList operator. Takes linear time. | |
| void | operator= (const IndirectList< Face > &) |
| Assignment from IndirectList operator. Takes linear time. | |
| void | operator= (const UIndirectList< Face > &) |
| Assignment from UIndirectList operator. Takes linear time. | |
| void | operator= (const BiIndirectList< Face > &) |
| Assignment from BiIndirectList operator. Takes linear time. | |
| void | operator= (const Face &) |
| Assignment of all entries to the given value. | |
Public Member Functions inherited from UList< Face > | |
| UList () | |
| Null constructor. | |
| UList (Face *__restrict__ v, label size) | |
| Construct from components. | |
| label | fcIndex (const label i) const |
| Return the forward circular index, i.e. the next index. | |
| label | rcIndex (const label i) const |
| Return the reverse circular index, i.e. the previous index. | |
| label | byteSize () const |
| Return the binary size in number of characters of the UList. | |
| const Face * | cdata () const |
| Return a const pointer to the first data element,. | |
| Face * | data () |
| Return a pointer to the first data element,. | |
| void | checkStart (const label start) const |
| Check start is within valid range (0 ... size-1). | |
| void | checkSize (const label size) const |
| Check size is within valid range (0 ... size). | |
| void | checkIndex (const label i) const |
| Check index i is within valid range (0 ... size-1). | |
| void | writeEntry (Ostream &) const |
| Write the UList as a dictionary entry. | |
| void | writeEntry (const word &keyword, Ostream &) const |
| Write the UList as a dictionary entry with keyword. | |
| void | assign (const UList< Face > &) |
| Assign elements to those from UList. | |
| Face & | operator[] (const label) |
| Return element of UList. | |
| const Face & | operator[] (const label) const |
| Return element of constant UList. | |
| operator const Foam::List< Face > & () const | |
| Allow cast to a const List<T>&. | |
| iterator | begin () |
| Return an iterator to begin traversing the UList. | |
| const_iterator | begin () const |
| Return const_iterator to begin traversing the constant UList. | |
| iterator | end () |
| Return an iterator to end traversing the UList. | |
| const_iterator | end () const |
| Return const_iterator to end traversing the constant UList. | |
| const_iterator | cbegin () const |
| Return const_iterator to begin traversing the constant UList. | |
| const_iterator | cend () const |
| Return const_iterator to end traversing the constant UList. | |
| reverse_iterator | rbegin () |
| Return reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | rbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| reverse_iterator | rend () |
| Return reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | rend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| const_reverse_iterator | crbegin () const |
| Return const_reverse_iterator to begin reverse traversing the UList. | |
| const_reverse_iterator | crend () const |
| Return const_reverse_iterator to end reverse traversing the UList. | |
| label | max_size () const |
| Return size of the largest possible UList. | |
| bool | empty () const |
| Return true if the UList is empty (ie, size() is zero). | |
| void | swap (UList< Face > &) |
| Swap two ULists of the same type in constant time. | |
| bool | operator== (const UList< Face > &) const |
| Equality operation on ULists of the same type. | |
| bool | operator!= (const UList< Face > &) const |
| The opposite of the equality operation. Takes linear time. | |
| bool | operator< (const UList< Face > &) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator> (const UList< Face > &) const |
| Compare two ULists lexicographically. Takes linear time. | |
| bool | operator<= (const UList< Face > &) const |
| Return true if !(a > b). Takes linear time. | |
| bool | operator>= (const UList< Face > &) const |
| Return true if !(a < b). Takes linear time. | |
Public Member Functions inherited from surfaceFormatsCore | |
| surfaceFormatsCore () | |
| Construct null. | |
| virtual | ~surfaceFormatsCore () |
Static Public Member Functions | |
| static bool | isTri () |
| Face storage only handles triangulated 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? | |
| static bool | canWriteType (const word &ext, const bool verbose=false) |
| Can we write this file format? | |
| static wordHashSet | readTypes () |
| static wordHashSet | writeTypes () |
| static autoPtr< MeshedSurface > | New (const fileName &, const word &ext) |
| Select constructed from filename (explicit extension) | |
| static autoPtr< MeshedSurface > | New (const fileName &) |
| Select constructed from filename (implicit extension) | |
| static void | write (const fileName &, const MeshedSurface< Face > &) |
| Write to file. | |
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) | |
| static fileName | findMeshInstance (const Time &, const word &surfName="") |
| Find instance with surfName. | |
| static fileName | findMeshFile (const Time &, const word &surfName="") |
| Find mesh file with surfName. | |
Protected Member Functions | |
| void | transcribe (MeshedSurface< face > &) |
| Transfer points/zones and transcribe face -> triFace. | |
| void | checkZones () |
| basic sanity check on zones | |
| pointField & | storedPoints () |
| Non-const access to global points. | |
| List< Face > & | storedFaces () |
| Non-const access to the faces. | |
| surfZoneList & | storedZones () |
| Non-const access to the zones. | |
| void | sortFacesAndStore (const Xfer< List< Face > > &unsortedFaces, const Xfer< List< label > > &zoneIds, const bool sorted) |
| sort faces by zones and store sorted faces | |
| virtual void | remapFaces (const UList< label > &faceMap) |
| Set new zones from faceMap. | |
| template<> | |
| void | transcribe (MeshedSurface< face > &surf) |
| template<> | |
| void | transcribe (MeshedSurface< face > &surf) |
Friends | |
| class | MeshedSurface |
| class | UnsortedMeshedSurface |
| class | surfMesh |
Additional Inherited Members | |
Public Types inherited from PrimitivePatch< Face,::Foam::List, pointField, point > | |
| enum | surfaceTopo |
| Enumeration defining the surface type. Used in check routines. More... | |
| typedef Face | FaceType |
| typedef ::Foam::List< Face > | FaceListType |
| typedef pointField | PointFieldType |
Public Types inherited from List< Face > | |
| typedef SubList< Face > | subList |
| Declare type of subList. | |
Public Types inherited from UList< Face > | |
| typedef Face | value_type |
| Type of values the UList contains. | |
| typedef Face & | reference |
| Type that can be used for storing into. | |
| typedef const Face & | const_reference |
| Type that can be used for storing into. | |
| typedef label | difference_type |
| The type that can represent the difference between any two. | |
| typedef label | size_type |
| The type that can represent the size of a UList. | |
| typedef Face * | iterator |
| Random access iterator for traversing UList. | |
| typedef const Face * | const_iterator |
| Random access iterator for traversing UList. | |
| typedef Face * | reverse_iterator |
| Reverse iterator for reverse traversal of UList. | |
| typedef const Face * | const_reverse_iterator |
| Reverse iterator for reverse traversal of constant UList. | |
Static Public Attributes inherited from surfaceFormatsCore | |
| static word | nativeExt |
| The file extension corresponding to 'native' surface format. | |
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,. | |
| static string | getLineNoComment (IFstream &) |
| Read non-comment line. | |
| MeshedSurface | ( | ) |
Construct null.
| MeshedSurface | ( | const Xfer< pointField > & | pointLst, |
| const Xfer< List< Face > > & | faceLst, | ||
| const Xfer< surfZoneList > & | zoneLst | ||
| ) |
Construct by transferring components (points, faces, zones).
Definition at line 172 of file MeshedSurface.C.
| MeshedSurface | ( | const Xfer< pointField > & | pointLst, |
| const Xfer< List< Face > > & | faceLst, | ||
| const UList< label > & | zoneSizes = UList<label>(), |
||
| const UList< word > & | zoneNames = UList<word>() |
||
| ) |
Construct by transferring components (points, faces).
Use zone information if available
Definition at line 187 of file MeshedSurface.C.
References UList< T >::size().
| MeshedSurface | ( | const MeshedSurface< Face > & | ) |
Construct as copy.
| MeshedSurface | ( | const UnsortedMeshedSurface< Face > & | surf | ) |
Construct from a UnsortedMeshedSurface.
Definition at line 225 of file MeshedSurface.C.
References MeshedSurface< Face >::faces(), forAll, List< T >::size(), UnsortedMeshedSurface< Face >::sortedZones(), and List< T >::transfer().
| MeshedSurface | ( | const polyBoundaryMesh & | bMesh, |
| const bool | globalPoints = false |
||
| ) |
Construct from a boundary mesh with local points/faces.
Definition at line 266 of file MeshedSurface.C.
References polyMesh::faces(), forAll, mesh, polyBoundaryMesh::mesh(), patchIdentifier::name(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), p, polyMesh::points(), PtrList< T >::size(), Foam::xferCopy(), and Foam::xferMove().
| MeshedSurface | ( | const surfMesh & | mesh | ) |
Construct from a surfMesh.
Definition at line 248 of file MeshedSurface.C.
References surfMesh::faces(), surfMesh::points(), surfMesh::surfZones(), MeshedSurface< Face >::transcribe(), and Foam::xferCopy().
| MeshedSurface | ( | const Xfer< UnsortedMeshedSurface< Face > > & | surf | ) |
Construct by transferring the contents from a UnsortedMeshedSurface.
Definition at line 398 of file MeshedSurface.C.
| MeshedSurface | ( | const Xfer< MeshedSurface< Face > > & | surf | ) |
Construct by transferring the contents from a MeshedSurface.
Definition at line 410 of file MeshedSurface.C.
| MeshedSurface | ( | const fileName & | name | ) |
Construct from file name (uses extension to determine type)
Definition at line 353 of file MeshedSurface.C.
References MeshedSurface< Face >::read().
| MeshedSurface | ( | const fileName & | name, |
| const word & | ext | ||
| ) |
Construct from file name (uses extension to determine type)
Definition at line 341 of file MeshedSurface.C.
| MeshedSurface | ( | const Time & | t, |
| const word & | surfName = "" |
||
| ) |
Construct from database.
Definition at line 363 of file MeshedSurface.C.
References mesh, IOobject::MUST_READ, IOobject::NO_WRITE, surfMesh::storedFaces(), surfMesh::storedPoints(), surfMesh::storedZones(), Time::timeName(), and Foam::xferMove().
|
virtual |
Definition at line 424 of file MeshedSurface.C.
|
protected |
Transfer points/zones and transcribe face -> triFace.
Referenced by MeshedSurface< Face >::MeshedSurface(), and OFSsurfaceFormat< Face >::read().
|
protected |
basic sanity check on zones
Definition at line 31 of file MeshedSurfaceZones.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, List< T >::size(), and WarningIn.
|
inlineprotected |
Non-const access to global points.
Definition at line 128 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::transcribe(), surfMesh::transfer(), UnsortedMeshedSurface< Face >::transfer(), and MeshedSurface< Face >::transfer().
|
inlineprotected |
Non-const access to the faces.
Definition at line 134 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::transcribe(), surfMesh::transfer(), UnsortedMeshedSurface< Face >::transfer(), and MeshedSurface< Face >::transfer().
|
inlineprotected |
Non-const access to the zones.
Definition at line 140 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::transcribe(), surfMesh::transfer(), and MeshedSurface< Face >::transfer().
|
protected |
sort faces by zones and store sorted faces
Definition at line 72 of file MeshedSurfaceZones.C.
References List< T >::clear(), forAll, List< T >::size(), and Foam::sortedOrder().
|
protectedvirtual |
Set new zones from faceMap.
Reimplemented in UnsortedMeshedSurface< Face >, and cuttingPlane.
Definition at line 435 of file MeshedSurface.C.
References forAll, List< T >::size(), surfZone::size(), UList< T >::size(), and surfZone::start().
| ClassName | ( | "MeshedSurface< Face >" | ) |
Runtime type information.
|
inlinestatic |
Face storage only handles triangulated faces.
Definition at line 41 of file MeshedSurface.C.
|
static |
Can we read this file format?
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 99 of file MeshedSurface.C.
References fileName::ext(), and fileName::lessExt().
|
static |
Can we read this file format?
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 65 of file MeshedSurface.C.
|
static |
Can we write this file format?
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 82 of file MeshedSurface.C.
|
static |
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 48 of file MeshedSurface.C.
|
static |
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 55 of file MeshedSurface.C.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| MeshedSurface< Face > | , | ||
| fileExtension | , | ||
| (const fileName &name) | , | ||
| (name) | |||
| ) |
|
static |
Select constructed from filename (explicit extension)
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 34 of file MeshedSurfaceNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, HashTable< T, Key, Hash >::found(), Foam::Info, name(), and Foam::nl.
|
static |
Select constructed from filename (implicit extension)
Reimplemented in UnsortedMeshedSurface< Face >, FTRsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, STLsurfaceFormat< Face >, TRIsurfaceFormat< Face >, NASsurfaceFormat< Face >, OFFsurfaceFormat< Face >, AC3DsurfaceFormat< Face >, OFSsurfaceFormat< Face >, GTSsurfaceFormat< Face >, and OBJsurfaceFormat< Face >.
Definition at line 78 of file MeshedSurfaceNew.C.
References fileName::ext(), and fileName::lessExt().
| declareMemberFunctionSelectionTable | ( | void | , |
| UnsortedMeshedSurface< Face > | , | ||
| write | , | ||
| fileExtension | , | ||
| (const fileName &name, const MeshedSurface< Face > &surf) | , | ||
| (name, surf) | |||
| ) |
|
static |
Write to file.
Reimplemented in GTSsurfaceFormat< Face >.
Definition at line 115 of file MeshedSurface.C.
References Foam::endl(), Foam::exit(), fileName::ext(), Foam::FatalError, FatalErrorIn, HashTable< T, Key, Hash >::found(), Foam::Info, name(), and Foam::nl.
Referenced by MeshedSurface< face >::write().
|
inline |
The surface size is the number of faces.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 286 of file MeshedSurface.H.
Referenced by UnsortedMeshedSurface< Face >::size(), and GTSsurfaceFormat< Face >::write().
|
inline |
Return const access to the faces.
Reimplemented in sampledPatch, sampledTriSurfaceMesh, sampledThresholdCellFaces, and sampledPlane.
Definition at line 292 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::MeshedSurface(), UnsortedMeshedSurface< Face >::operator=(), MeshedSurface< Face >::operator=(), GTSsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
Const access to the surface zones.
If zones are defined, they must be contiguous and cover the entire surface.
Definition at line 300 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::operator=(), UnsortedMeshedSurface< Face >::transfer(), UnsortedMeshedSurface< Face >::UnsortedMeshedSurface(), and GTSsurfaceFormat< Face >::write().
Add surface zones.
Definition at line 111 of file MeshedSurfaceZones.C.
References forAll, List< T >::setSize(), and List< T >::size().
|
virtual |
Add surface zones.
Definition at line 134 of file MeshedSurfaceZones.C.
References forAll, List< T >::setSize(), and UList< T >::size().
|
virtual |
Add surface zones.
Definition at line 166 of file MeshedSurfaceZones.C.
References forAll, Foam::name(), List< T >::setSize(), and UList< T >::size().
|
virtual |
Remove surface zones.
Definition at line 196 of file MeshedSurfaceZones.C.
|
virtual |
Clear all storage.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 484 of file MeshedSurface.C.
Referenced by OFSsurfaceFormat< Face >::read(), MeshedSurface< Face >::transcribe(), and UnsortedMeshedSurface< Face >::transfer().
|
virtual |
Move points.
Definition at line 495 of file MeshedSurface.C.
|
virtual |
Scale points. A non-positive factor is ignored.
Definition at line 509 of file MeshedSurface.C.
|
virtual |
Reset primitive data (points, faces and zones)
Note, optimized to avoid overwriting data (with Xfer::null)
Definition at line 527 of file MeshedSurface.C.
Referenced by OFSsurfaceFormat< Face >::read().
|
virtual |
Reset primitive data (points, faces and zones)
Note, optimized to avoid overwriting data (with Xfer::null)
Definition at line 556 of file MeshedSurface.C.
|
virtual |
Remove invalid faces.
Definition at line 585 of file MeshedSurface.C.
References Foam::checkTopology().
|
virtual |
Definition at line 597 of file MeshedSurface.C.
References Foam::endl(), f(), forAll, Foam::Info, Foam::mergePoints(), Foam::Pout, List< T >::setSize(), List< T >::size(), and List< T >::transfer().
|
virtual |
Definition at line 679 of file MeshedSurface.C.
References Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, Foam::nl, points, List< T >::setSize(), List< T >::size(), and WarningIn.
|
virtual |
Triangulate in-place, returning the number of triangles added.
Definition at line 837 of file MeshedSurface.C.
Referenced by MeshedSurface< Face >::transcribe().
|
virtual |
Triangulate in-place, returning the number of triangles added.
and setting a map of original face Ids. The faceMap is zero-sized when no triangulation was done.
Definition at line 848 of file MeshedSurface.C.
References List< T >::clear(), f(), UList< T >::fcIndex(), forAll, points, List< T >::setSize(), List< T >::size(), List< T >::transfer(), face::triangles(), and triFace().
| Foam::MeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include, |
| labelList & | pointMap, | ||
| labelList & | faceMap | ||
| ) | const |
Return new surface.
Returns return pointMap, faceMap from subsetMeshMap
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 954 of file MeshedSurface.C.
References f(), forAll, List< T >::size(), surfZone::size(), surfZone::start(), PatchTools::subsetMap(), and Foam::xferMove().
| Foam::MeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include | ) | const |
Return new surface.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1042 of file MeshedSurface.C.
| void transfer | ( | MeshedSurface< Face > & | surf | ) |
Transfer the contents of the argument and annull the argument.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1054 of file MeshedSurface.C.
References MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), MeshedSurface< Face >::storedZones(), and Foam::xferMove().
| void transfer | ( | UnsortedMeshedSurface< Face > & | surf | ) |
Transfer the contents of the argument and annull the argument.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1069 of file MeshedSurface.C.
References clear(), List< T >::clear(), UnsortedMeshedSurface< Face >::clear(), forAll, List< T >::size(), UnsortedMeshedSurface< Face >::sortedZones(), MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), and Foam::xferMove().
| Foam::Xfer< Foam::MeshedSurface< Face > > xfer | ( | ) |
Transfer contents to the Xfer container.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1112 of file MeshedSurface.C.
References Foam::xferMove().
Read from file. Chooses reader based on explicit extension.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1138 of file MeshedSurface.C.
References clear().
Referenced by MeshedSurface< Face >::MeshedSurface().
|
virtual |
Read from file. Chooses reader based on detected extension.
Reimplemented in UnsortedMeshedSurface< Face >, STLsurfaceFormat< Face >, OFSsurfaceFormat< Face >, FTRsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, TRIsurfaceFormat< Face >, AC3DsurfaceFormat< Face >, OFFsurfaceFormat< Face >, NASsurfaceFormat< Face >, GTSsurfaceFormat< Face >, and OBJsurfaceFormat< Face >.
Definition at line 1120 of file MeshedSurface.C.
References fileName::ext(), and fileName::lessExt().
| void writeStats | ( | Ostream & | os | ) | const |
Definition at line 33 of file MeshedSurfaceIO.C.
References Foam::endl(), forAll, Foam::nl, and points.
|
inlinevirtual |
Generic write routine. Chooses writer based on extension.
Reimplemented in UnsortedMeshedSurface< Face >, STLsurfaceFormat< Face >, OFSsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, TRIsurfaceFormat< Face >, AC3DsurfaceFormat< Face >, OFFsurfaceFormat< Face >, GTSsurfaceFormat< Face >, OBJsurfaceFormat< Face >, SMESHsurfaceFormat< Face >, WRLsurfaceFormat< Face >, and X3DsurfaceFormat< Face >.
Definition at line 421 of file MeshedSurface.H.
Write to database.
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 1153 of file MeshedSurface.C.
References MeshedSurfaceProxy< Face >::write().
| void operator= | ( | const MeshedSurface< Face > & | ) |
Definition at line 1164 of file MeshedSurface.C.
References clear(), MeshedSurface< Face >::faces(), PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and MeshedSurface< Face >::surfZones().
| operator MeshedSurfaceProxy< Face > | ( | ) | const |
Conversion operator to MeshedSurfaceProxy.
Reimplemented in UnsortedMeshedSurface< Face >.
|
inline |
Definition at line 444 of file MeshedSurface.H.
|
inline |
Definition at line 451 of file MeshedSurface.H.
|
inline |
Definition at line 458 of file MeshedSurface.H.
References List< T >::clear().
|
protected |
Definition at line 35 of file MeshedSurfaceCore.C.
References MeshedSurface< Face >::clear(), forAll, List< T >::size(), MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), MeshedSurface< Face >::storedZones(), MeshedSurface< Face >::triangulate(), and triFace().
|
protected |
Definition at line 60 of file MeshedSurfaceCore.C.
|
friend |
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 88 of file MeshedSurface.H.
|
friend |
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 89 of file MeshedSurface.H.
|
friend |
Reimplemented in UnsortedMeshedSurface< Face >.
Definition at line 90 of file MeshedSurface.H.