|
|
|
MeshedSurface< Face > Class Template ReferenceA 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...
Inheritance diagram for MeshedSurface< Face >:
![]()
Collaboration diagram for MeshedSurface< Face >:
![]()
Detailed Descriptiontemplate<class Face>
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.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MeshedSurface | ( | ) |
Construct null.
| MeshedSurface | ( | const Xfer< pointField > & | pointLst, | |
| const Xfer< List< Face > > & | faceLst, | |||
| const Xfer< surfZoneList > & | zoneLst | |||
| ) | [inline] |
Construct by transferring components (points, faces, zones).
Definition at line 164 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>() | |||
| ) | [inline] |
Construct by transferring components (points, faces).
Use zone information if available
Definition at line 179 of file MeshedSurface.C.
| MeshedSurface | ( | const MeshedSurface< Face > & | ) |
Construct as copy.
| MeshedSurface | ( | const UnsortedMeshedSurface< Face > & | surf | ) | [inline] |
| MeshedSurface | ( | const polyBoundaryMesh & | bMesh, | |
| const bool | globalPoints = false | |||
| ) | [inline] |
Construct from a boundary mesh with local points/faces.
Definition at line 258 of file MeshedSurface.C.
| MeshedSurface | ( | const surfMesh & | mesh | ) | [inline] |
| MeshedSurface | ( | const Xfer< UnsortedMeshedSurface< Face > > & | surf | ) | [inline] |
Construct by transferring the contents from a UnsortedMeshedSurface.
Definition at line 390 of file MeshedSurface.C.
| MeshedSurface | ( | const Xfer< MeshedSurface< Face > > & | surf | ) | [inline] |
Construct by transferring the contents from a MeshedSurface.
Definition at line 402 of file MeshedSurface.C.
| MeshedSurface | ( | const fileName & | name | ) | [inline] |
Construct from file name (uses extension to determine type).
Definition at line 345 of file MeshedSurface.C.
References MeshedSurface< Face >::read().

| MeshedSurface | ( | const fileName & | name, | |
| const word & | ext | |||
| ) | [inline] |
Construct from file name (uses extension to determine type).
Definition at line 333 of file MeshedSurface.C.
| MeshedSurface | ( | const Time & | t, | |
| const word & | surfName = "" | |||
| ) | [inline] |
| ~MeshedSurface | ( | ) | [inline, virtual] |
Definition at line 416 of file MeshedSurface.C.
| void transcribe | ( | MeshedSurface< face > & | ) | [protected] |
| void checkZones | ( | ) | [inline, protected] |
basic sanity check on zones
Definition at line 23 of file MeshedSurfaceZones.C.
References Foam::endl(), FatalErrorIn, forAll, and WarningIn.

| pointField& storedPoints | ( | ) | [inline, protected] |
Non-const access to global points.
Definition at line 125 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::transcribe().

| List<Face>& storedFaces | ( | ) | [inline, protected] |
Non-const access to the faces.
Definition at line 131 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::transcribe().

| surfZoneList& storedZones | ( | ) | [inline, protected] |
Non-const access to the zones.
Definition at line 137 of file MeshedSurface.H.
Referenced by MeshedSurface< Face >::cleanup(), MeshedSurface< Face >::remapFaces(), MeshedSurface< Face >::reset(), and MeshedSurface< Face >::transcribe().

Set new zones from faceMap.
Reimplemented in cuttingPlane, UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 427 of file MeshedSurface.C.
References forAll, surfZone::size(), UList< T >::size(), surfZone::start(), and MeshedSurface< Face >::storedZones().

| ClassName | ( | "MeshedSurface< Face >" | ) |
Runtime type information.
| bool isTri | ( | ) | [inline, static] |
| bool canRead | ( | const fileName & | name, | |
| const bool | verbose = false | |||
| ) | [inline, static] |
Can we read this file format?
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 91 of file MeshedSurface.C.
| bool canReadType | ( | const word & | ext, | |
| const bool | verbose = false | |||
| ) | [inline, static] |
Can we read this file format?
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 57 of file MeshedSurface.C.
| bool canWriteType | ( | const word & | ext, | |
| const bool | verbose = false | |||
| ) | [inline, static] |
Can we write this file format?
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 74 of file MeshedSurface.C.
| Foam::wordHashSet readTypes | ( | ) | [inline, static] |
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 40 of file MeshedSurface.C.
| Foam::wordHashSet writeTypes | ( | ) | [inline, static] |
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 47 of file MeshedSurface.C.
| declareRunTimeSelectionTable | ( | autoPtr | , | |
| MeshedSurface< Face > | , | |||
| fileExtension | , | |||
| (const fileName &name) | , | |||
| (name) | ||||
| ) |
| Foam::autoPtr< Foam::MeshedSurface< Face > > New | ( | const fileName & | name, | |
| const word & | ext | |||
| ) | [inline, static] |
Select constructed from filename (explicit extension).
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 26 of file MeshedSurfaceNew.C.
References Foam::endl(), FatalErrorIn, Foam::Info, and Foam::nl.

| Foam::autoPtr< Foam::MeshedSurface< Face > > New | ( | const fileName & | name | ) | [inline, static] |
Select constructed from filename (implicit extension).
Reimplemented in AC3DsurfaceFormat< Face >, FTRsurfaceFormat< Face >, GTSsurfaceFormat< Face >, NASsurfaceFormat< Face >, OBJsurfaceFormat< Face >, OFFsurfaceFormat< Face >, OFSsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, STLsurfaceFormat< Face >, TRIsurfaceFormat< Face >, UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 70 of file MeshedSurfaceNew.C.
| declareMemberFunctionSelectionTable | ( | void | , | |
| UnsortedMeshedSurface< Face > | , | |||
| write | , | |||
| fileExtension | , | |||
| (const fileName &name, const MeshedSurface< Face > &surf) | , | |||
| (name, surf) | ||||
| ) |
| void write | ( | const fileName & | name, | |
| const MeshedSurface< Face > & | surf | |||
| ) | [inline, static] |
Write to file.
Reimplemented in GTSsurfaceFormat< Face >.
Definition at line 107 of file MeshedSurface.C.
References fileName::ext(), and fileName::lessExt().

| label size | ( | ) | const [inline] |
The surface size is the number of faces.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 285 of file MeshedSurface.H.
| const List<Face>& faces | ( | ) | const [inline] |
Return const access to the faces.
Reimplemented in sampledPatch, sampledPlane, and sampledThresholdCellFaces.
Definition at line 291 of file MeshedSurface.H.
Const access to the surface zones.
If zones are defined, they must be contiguous and cover the entire surface.
Definition at line 301 of file MeshedSurface.H.
Referenced by UnsortedMeshedSurface< Face >::UnsortedMeshedSurface().

| void removeZones | ( | ) | [inline, virtual] |
| void clear | ( | ) | [inline, virtual] |
Clear all storage.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 476 of file MeshedSurface.C.
| void movePoints | ( | const pointField & | newPoints | ) | [inline, virtual] |
| void scalePoints | ( | const scalar & | scaleFactor | ) | [inline, virtual] |
| void reset | ( | const Xfer< pointField > & | points, | |
| const Xfer< List< Face > > & | faces, | |||
| const Xfer< surfZoneList > & | zones | |||
| ) | [inline, virtual] |
Reset primitive data (points, faces and zones).
Note, optimized to avoid overwriting data (with Xfer::null)
Definition at line 519 of file MeshedSurface.C.
| void reset | ( | const Xfer< List< point > > & | points, | |
| const Xfer< List< Face > > & | faces, | |||
| const Xfer< surfZoneList > & | zones | |||
| ) | [inline, virtual] |
Reset primitive data (points, faces and zones).
Note, optimized to avoid overwriting data (with Xfer::null)
Definition at line 548 of file MeshedSurface.C.
References MeshedSurface< Face >::storedZones().

| void cleanup | ( | const bool | verbose | ) | [inline, virtual] |
Remove invalid faces.
Definition at line 577 of file MeshedSurface.C.
References MeshedSurface< Face >::storedZones().

| bool stitchFaces | ( | const scalar | tol = SMALL, |
|
| const bool | verbose = false | |||
| ) | [inline, virtual] |
Definition at line 589 of file MeshedSurface.C.
| bool checkFaces | ( | const bool | verbose = false |
) | [inline, virtual] |
Definition at line 671 of file MeshedSurface.C.
| Foam::label triangulate | ( | ) | [inline, virtual] |
Triangulate in-place, returning the number of triangles added.
Definition at line 829 of file MeshedSurface.C.
Referenced by MeshedSurface< Face >::transcribe().

| Foam::label triangulate | ( | List< label > & | faceMap | ) | [inline, 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 840 of file MeshedSurface.C.
| Foam::MeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include, | |
| labelList & | pointMap, | |||
| labelList & | faceMap | |||
| ) | const [inline] |
Return new surface.
Returns return pointMap, faceMap from subsetMeshMap
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 946 of file MeshedSurface.C.
Referenced by MeshedSurface< Face >::transfer().

| Foam::MeshedSurface< Face > subsetMesh | ( | const labelHashSet & | include | ) | const [inline] |
Return new surface.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1034 of file MeshedSurface.C.
| void transfer | ( | MeshedSurface< Face > & | surf | ) | [inline] |
Transfer the contents of the argument and annull the argument.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1046 of file MeshedSurface.C.
References MeshedSurface< Face >::subsetMesh().

| void transfer | ( | UnsortedMeshedSurface< Face > & | surf | ) | [inline] |
Transfer the contents of the argument and annull the argument.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1061 of file MeshedSurface.C.
| Foam::Xfer< Foam::MeshedSurface< Face > > xfer | ( | ) | [inline] |
Transfer contents to the Xfer container.
Reimplemented from List< Face >.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1104 of file MeshedSurface.C.
Read from file. Chooses reader based on explicit extension.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1130 of file MeshedSurface.C.
Referenced by MeshedSurface< Face >::MeshedSurface().

| bool read | ( | const fileName & | name | ) | [inline, virtual] |
Read from file. Chooses reader based on detected extension.
Reimplemented in AC3DsurfaceFormat< Face >, FTRsurfaceFormat< Face >, GTSsurfaceFormat< Face >, NASsurfaceFormat< Face >, OBJsurfaceFormat< Face >, OFFsurfaceFormat< Face >, OFSsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, STLsurfaceFormat< Face >, TRIsurfaceFormat< Face >, UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1112 of file MeshedSurface.C.
References Foam::xferMove().

| void writeStats | ( | Ostream & | os | ) | const [inline] |
Definition at line 25 of file MeshedSurfaceIO.C.
References Foam::endl(), forAll, Foam::nl, and points.

| virtual void write | ( | const fileName & | name | ) | const [inline, virtual] |
Generic write routine. Chooses writer based on extension.
Reimplemented in AC3DsurfaceFormat< Face >, GTSsurfaceFormat< Face >, OBJsurfaceFormat< Face >, OFFsurfaceFormat< Face >, OFSsurfaceFormat< Face >, SMESHsurfaceFormat< Face >, STARCDsurfaceFormat< Face >, STLsurfaceFormat< Face >, TRIsurfaceFormat< Face >, WRLsurfaceFormat< Face >, X3DsurfaceFormat< Face >, UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 430 of file MeshedSurface.H.
Write to database.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 1145 of file MeshedSurface.C.
| void operator= | ( | const MeshedSurface< Face > & | ) |
| operator MeshedSurfaceProxy< Face > | ( | ) | const |
Conversion operator to MeshedSurfaceProxy.
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
| bool isTri | ( | ) | [inline] |
Definition at line 453 of file MeshedSurface.H.
| label triangulate | ( | ) | [inline] |
Definition at line 460 of file MeshedSurface.H.
References List< T >::clear().

Definition at line 467 of file MeshedSurface.H.
| void transcribe | ( | MeshedSurface< face > & | surf | ) | [inline] |
Definition at line 27 of file MeshedSurfaceCore.C.
References forAll, List< T >::size(), MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), MeshedSurface< Face >::storedZones(), MeshedSurface< Face >::triangulate(), and triFace().

| void transcribe | ( | MeshedSurface< face > & | surf | ) | [inline] |
Definition at line 52 of file MeshedSurfaceCore.C.
MeshedSurface [friend] |
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 83 of file MeshedSurface.H.
friend class UnsortedMeshedSurface [friend] |
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 84 of file MeshedSurface.H.
friend class surfMesh [friend] |
Reimplemented in UnsortedMeshedSurface< Face >, and UnsortedMeshedSurface< Face >.
Definition at line 85 of file MeshedSurface.H.