Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
triSurface Class Reference

Triangulated surface description with patch information. More...

Inheritance diagram for triSurface:
Inheritance graph
[legend]
Collaboration diagram for triSurface:
Collaboration graph
[legend]

Public Types

typedef bool BoundaryMesh
 
typedef labelledTri face_type
 
typedef point point_type
 
- Public Types inherited from PrimitivePatch<::Foam::List< labelledTri >, pointField >
enum  surfaceTopo
 
typedef std::remove_reference< ::Foam::List< labelledTri > >::type::value_type face_type
 
typedef std::remove_reference< pointField >::type::value_type point_type
 
typedef ::Foam::List< labelledTriFaceListType
 
typedef pointField PointFieldType
 
typedef face_type FaceType
 
- Public Types inherited from List< labelledTri >
typedef SubList< TsubList
 

Public Member Functions

 ClassName ("triSurface")
 
 triSurface ()
 
 triSurface (const triSurface &surf)
 
 triSurface (triSurface &&surf)
 
 triSurface (const List< labelledTri > &triangles, const geometricSurfacePatchList &patches, const pointField &pts)
 
 triSurface (List< labelledTri > &triangles, const geometricSurfacePatchList &patches, pointField &pts, const bool reuse)
 
 triSurface (const List< labelledTri > &triangles, const pointField &pts)
 
 triSurface (const triFaceList &triangles, const pointField &pts)
 
 triSurface (const fileName &name, const scalar scaleFactor=-1)
 
 triSurface (const fileName &name, const word &fileType, const scalar scaleFactor=-1)
 
 triSurface (Istream &is)
 
 triSurface (const Time &d)
 
 triSurface (const IOobject &io, const dictionary &dict, const bool isGlobal=true)
 
virtual ~triSurface ()
 
void clearOut ()
 
void clearTopology ()
 
void clearPatchMeshAddr ()
 
void swap (triSurface &surf)
 
const geometricSurfacePatchListpatches () const noexcept
 
geometricSurfacePatchListpatches () noexcept
 
const List< labelledTri > & surfFaces () const noexcept
 
const labelListListsortedEdgeFaces () const
 
const labelListedgeOwner () const
 
const vectorFieldSf () const
 
const scalarFieldmagSf () const
 
const vectorFieldCf () const
 
List< surfZonesortedZones (labelList &faceMap) const
 
void triFaceFaces (List< face > &plainFaceList) const
 
virtual void movePoints (const pointField &pts)
 
virtual void swapPoints (pointField &pts)
 
virtual void scalePoints (const scalar scaleFactor)
 
void checkTriangles (const bool verbose)
 
void checkEdges (const bool verbose)
 
void cleanup (const bool verbose)
 
void compactPoints (labelList &pointMap=const_cast< labelList & >(labelList::null()))
 
void markZone (const boolList &borderEdge, const label facei, const label currentZone, labelList &faceZone) const
 
label markZones (const boolList &borderEdge, labelList &faceZone) const
 
template<class BoolListType >
void subsetMeshMap (const BoolListType &include, labelList &pointMap, labelList &faceMap) const
 
triSurface subsetMesh (const UList< bool > &include, labelList &pointMap, labelList &faceMap) const
 
triSurface subsetMesh (const bitSet &include, labelList &pointMap, labelList &faceMap) const
 
triSurface subsetMesh (const UList< bool > &include) const
 
triSurface subsetMesh (const bitSet &include) const
 
triSurface subsetMesh (const wordRes &includeNames, const wordRes &excludeNames=wordRes()) const
 
void swapFaces (List< labelledTri > &faceLst)
 
void transfer (triSurface &surf)
 
void transfer (MeshedSurface< labelledTri > &surf)
 
void write (Ostream &os) const
 
void write (const fileName &, const bool sortByRegion=false) const
 
void write (const fileName &filename, const word &fileType, const bool sortByRegion=false) const
 
void write (const Time &d) const
 
void writeStats (Ostream &os) const
 
void operator= (const triSurface &surf)
 
void operator= (triSurface &&surf)
 
void operator= (MeshedSurface< labelledTri > &&surf)
 
- Public Member Functions inherited from PrimitivePatch<::Foam::List< labelledTri >, pointField >
 PrimitivePatch (const ::Foam::List< labelledTri > &faces, const pointField &points)
 
 PrimitivePatch (::Foam::List< labelledTri > &&faces, const pointField &points)
 
 PrimitivePatch (::Foam::List< labelledTri > &faces, pointField &points, const bool reuse)
 
 PrimitivePatch (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &pp)
 
virtual ~PrimitivePatch ()
 
void clearOut ()
 
void clearGeom ()
 
void clearTopology ()
 
void clearPatchMeshAddr ()
 
void swap (PrimitivePatch &)=delete
 
const Field< point_type > & points () const noexcept
 
label nFaces () const noexcept
 
label nPoints () const
 
label nEdges () const
 
const edgeListedges () const
 
const edgeList::subList internalEdges () const
 
const edgeList::subList boundaryEdges () const
 
label nInternalEdges () const
 
label nBoundaryEdges () const
 
bool isInternalEdge (const label edgei) const
 
const labelListboundaryPoints () const
 
const labelListListfaceFaces () const
 
const labelListListedgeFaces () const
 
const labelListListfaceEdges () const
 
const labelListListpointEdges () const
 
const labelListListpointFaces () const
 
const List< face_type > & localFaces () const
 
labelList boundaryFaces () const
 
labelList uniqBoundaryFaces () const
 
const labelListmeshPoints () const
 
const Map< label > & meshPointMap () const
 
const Field< point_type > & localPoints () const
 
const labelListlocalPointOrder () const
 
label whichPoint (const label gp) const
 
edge meshEdge (const label edgei) const
 
edge meshEdge (const edge &e) const
 
label meshEdge (const label edgei, const edgeList &allEdges, const labelListList &pointEdges) const
 
label findEdge (const edge &e) const
 
labelList meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
 
labelList meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const
 
labelList meshEdges (const labelUList &edgeLabels, const edgeList &allEdges, const labelListList &pointEdges) const
 
const Field< point_type > & faceCentres () const
 
const Field< point_type > & faceAreas () const
 
const Field< scalar > & magFaceAreas () const
 
const Field< point_type > & faceNormals () const
 
const Field< point_type > & pointNormals () const
 
bool hasFaceAreas () const
 
bool hasFaceCentres () const
 
bool hasFaceNormals () const
 
bool hasPointNormals () const
 
bool hasBoundaryPoints () const
 
bool hasFaceFaces () const
 
bool hasEdgeFaces () const
 
bool hasFaceEdges () const
 
bool hasPointEdges () const
 
bool hasPointFaces () const
 
bool hasMeshPointMap () const
 
List< objectHitprojectPoints (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const
 
Foam::List< Foam::objectHitprojectPoints (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< ::Foam::List< labelledTri >, pointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 
List< objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const
 
Foam::List< Foam::objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< ::Foam::List< labelledTri >, pointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 
const labelListListedgeLoops () const
 
surfaceTopo surfaceType () const
 
bool checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const
 
bool checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual void movePoints (const Field< point_type > &)
 
void operator= (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &rhs)
 
void operator= (PrimitivePatch< ::Foam::List< labelledTri >, pointField > &&rhs)
 
label whichEdge (const edge &e) const
 
- Public Member Functions inherited from PrimitivePatchBase
 ClassName ("PrimitivePatch")
 
 PrimitivePatchBase ()=default
 
- Public Member Functions inherited from List< labelledTri >
constexpr List () noexcept
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const List< T > &a)
 
 List (const UList< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const UList< T > &list, const FixedList< label, N > &indices)
 
 List (const FixedList< T, N > &list)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (const IndirectListBase< T, Addr > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (DynamicList< T, SizeMin > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
 List (Istream &is)
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const UList< T > &a)
 
 List (const List< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
constexpr List () noexcept
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 
 ~List ()
 
void clear ()
 
void resize (const label len)
 
void resize (const label len, const T &val)
 
void resize (const label newLen)
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 
void setSize (const label n, const T &val)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
void append (const IndirectListBase< T, Addr > &list)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
label appendUniq (const T &val)
 
void transfer (List< T > &list)
 
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
void transfer (List< T > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (const IndirectListBase< T, Addr > &list)
 
void operator= (const FixedList< T, N > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (List< T > &&list)
 
void operator= (DynamicList< T, SizeMin > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (List< T > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
void shallowCopy (const UList< T > &)=delete
 
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 

Static Public Member Functions

static fileName triSurfInstance (const Time &)
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static fileName relativeFilePath (const IOobject &io, const fileName &f, const bool isGlobal=true)
 
static fileName checkFile (const IOobject &io, const bool isGlobal=true)
 
static fileName checkFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true)
 
static fileName findFile (const IOobject &io, const bool isGlobal=true)
 
static fileName findFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true)
 
static autoPtr< triSurfaceNew (const fileName &name, const word &fileType)
 
static autoPtr< triSurfaceNew (const fileName &name)
 
- Static Public Member Functions inherited from List< labelledTri >
static const List< T > & null ()
 

Protected Member Functions

pointFieldstoredPoints ()
 
List< labelledTri > & storedFaces ()
 

Friends

Istreamoperator>> (Istream &is, triSurface &s)
 
Ostreamoperator<< (Ostream &os, const triSurface &s)
 

Detailed Description

Triangulated surface description with patch information.

Source files

Definition at line 72 of file triSurface.H.

Member Typedef Documentation

◆ BoundaryMesh

typedef bool BoundaryMesh

Definition at line 202 of file triSurface.H.

◆ face_type

Definition at line 205 of file triSurface.H.

◆ point_type

typedef point point_type

Definition at line 208 of file triSurface.H.

Constructor & Destructor Documentation

◆ triSurface() [1/12]

Definition at line 425 of file triSurface.C.

◆ triSurface() [2/12]

triSurface ( const triSurface surf)

Definition at line 434 of file triSurface.C.

◆ triSurface() [3/12]

triSurface ( triSurface &&  surf)

Definition at line 443 of file triSurface.C.

References triSurface::transfer().

Here is the call graph for this function:

◆ triSurface() [4/12]

triSurface ( const List< labelledTri > &  triangles,
const geometricSurfacePatchList patches,
const pointField pts 
)

Definition at line 452 of file triSurface.C.

◆ triSurface() [5/12]

triSurface ( List< labelledTri > &  triangles,
const geometricSurfacePatchList patches,
pointField pts,
const bool  reuse 
)

Definition at line 466 of file triSurface.C.

◆ triSurface() [6/12]

triSurface ( const List< labelledTri > &  triangles,
const pointField pts 
)

Definition at line 481 of file triSurface.C.

◆ triSurface() [7/12]

triSurface ( const triFaceList triangles,
const pointField pts 
)

Definition at line 496 of file triSurface.C.

◆ triSurface() [8/12]

triSurface ( const fileName name,
const scalar  scaleFactor = -1 
)
explicit

Definition at line 511 of file triSurface.C.

◆ triSurface() [9/12]

triSurface ( const fileName name,
const word fileType,
const scalar  scaleFactor = -1 
)

Definition at line 521 of file triSurface.C.

References Foam::name(), and Foam::read().

Here is the call graph for this function:

◆ triSurface() [10/12]

triSurface ( Istream is)
explicit

Definition at line 273 of file triSurfaceIO.C.

◆ triSurface() [11/12]

triSurface ( const Time d)
explicit

Definition at line 283 of file triSurfaceIO.C.

References Time::caseName(), Time::path(), and triSurface::triSurfInstance().

Here is the call graph for this function:

◆ triSurface() [12/12]

triSurface ( const IOobject io,
const dictionary dict,
const bool  isGlobal = true 
)
Parameters
isGlobalresolve as a global file

Definition at line 299 of file triSurfaceIO.C.

References dict, dictionary::getOrDefault(), word::null, and Foam::read().

Here is the call graph for this function:

◆ ~triSurface()

~triSurface ( )
virtual

Definition at line 537 of file triSurface.C.

Member Function Documentation

◆ storedPoints()

pointField& storedPoints ( )
inlineprotected

Definition at line 185 of file triSurface.H.

References PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().

Referenced by triSurface::swap(), and triSurface::transfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ storedFaces()

List<labelledTri>& storedFaces ( )
inlineprotected

Definition at line 191 of file triSurface.H.

Referenced by triSurface::swap(), and triSurface::transfer().

Here is the caller graph for this function:

◆ ClassName()

ClassName ( "triSurface"  )

◆ triSurfInstance()

Foam::fileName triSurfInstance ( const Time d)
static

Definition at line 66 of file triSurface.C.

References Time::caseName(), TimePaths::constant(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::isFile(), Time::path(), Foam::Pout, TimeState::timeOutputValue(), and TimePaths::times().

Referenced by triSurface::triSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readTypes()

Foam::wordHashSet readTypes ( )
static

Definition at line 33 of file triSurfaceIO.C.

References HashSet::insert().

Here is the call graph for this function:

◆ writeTypes()

Foam::wordHashSet writeTypes ( )
static

Definition at line 51 of file triSurfaceIO.C.

References HashSet::insert().

Here is the call graph for this function:

◆ canReadType()

bool canReadType ( const word fileType,
bool  verbose = false 
)
static

Definition at line 68 of file triSurfaceIO.C.

References surfaceFormatsCore::checkSupport().

Here is the call graph for this function:

◆ canWriteType()

bool canWriteType ( const word fileType,
bool  verbose = false 
)
static

Definition at line 80 of file triSurfaceIO.C.

References surfaceFormatsCore::checkSupport().

Here is the call graph for this function:

◆ canRead()

bool canRead ( const fileName name,
bool  verbose = false 
)
static

Definition at line 92 of file triSurfaceIO.C.

References word::ext(), word::lessExt(), and Foam::name().

Referenced by triSurfaceLoader::readDir().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ relativeFilePath()

Foam::fileName relativeFilePath ( const IOobject io,
const fileName f,
const bool  isGlobal = true 
)
static
Parameters
isGlobalresolve as a global file

Definition at line 104 of file triSurfaceIO.C.

References f(), and surfaceFormatsCore::relativeFilePath().

Referenced by triSurfaceMesh::triSurfaceMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFile() [1/2]

Foam::fileName checkFile ( const IOobject io,
const bool  isGlobal = true 
)
static
Parameters
isGlobalresolve as a global file

Definition at line 115 of file triSurfaceIO.C.

References surfaceFormatsCore::checkFile().

Referenced by distributedTriSurfaceMesh::distributedTriSurfaceMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFile() [2/2]

Foam::fileName checkFile ( const IOobject io,
const dictionary dict,
const bool  isGlobal = true 
)
static
Parameters
isGlobalresolve as a global file

Definition at line 125 of file triSurfaceIO.C.

References surfaceFormatsCore::checkFile(), and dict.

Here is the call graph for this function:

◆ findFile() [1/2]

Foam::fileName findFile ( const IOobject io,
const bool  isGlobal = true 
)
static
Parameters
isGlobalresolve as a global file

Definition at line 136 of file triSurfaceIO.C.

References surfaceFormatsCore::findFile().

Here is the call graph for this function:

◆ findFile() [2/2]

Foam::fileName findFile ( const IOobject io,
const dictionary dict,
const bool  isGlobal = true 
)
static
Parameters
isGlobalresolve as a global file

Definition at line 146 of file triSurfaceIO.C.

References dict, and surfaceFormatsCore::findFile().

Here is the call graph for this function:

◆ New() [1/2]

Foam::autoPtr< Foam::triSurface > New ( const fileName name,
const word fileType 
)
static

Definition at line 30 of file triSurfaceNew.C.

References Foam::exit(), word::ext(), fileName::ext(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), found, word::lessExt(), Foam::name(), Foam::New(), and Foam::nl.

Referenced by triSurface::New().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New() [2/2]

Foam::autoPtr< Foam::triSurface > New ( const fileName name)
static

Definition at line 134 of file triSurfaceNew.C.

References word::ext(), fileName::ext(), word::lessExt(), Foam::name(), and triSurface::New().

Here is the call graph for this function:

◆ clearOut()

void clearOut ( )

Definition at line 559 of file triSurface.C.

Referenced by triSurfaceMesh::clearOut(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), triSurface::swap(), and triSurface::transfer().

Here is the caller graph for this function:

◆ clearTopology()

void clearTopology ( )

Definition at line 545 of file triSurface.C.

◆ clearPatchMeshAddr()

void clearPatchMeshAddr ( )

Definition at line 553 of file triSurface.C.

◆ swap()

void swap ( triSurface surf)

Definition at line 567 of file triSurface.C.

References triSurface::clearOut(), triSurface::patches(), triSurface::storedFaces(), and triSurface::storedPoints().

Here is the call graph for this function:

◆ patches() [1/2]

const geometricSurfacePatchList& patches ( ) const
inlinenoexcept

◆ patches() [2/2]

geometricSurfacePatchList& patches ( )
inlinenoexcept

Definition at line 400 of file triSurface.H.

◆ surfFaces()

const List<labelledTri>& surfFaces ( ) const
inlinenoexcept

Definition at line 406 of file triSurface.H.

◆ sortedEdgeFaces()

const Foam::labelListList & sortedEdgeFaces ( ) const

Definition at line 583 of file triSurface.C.

◆ edgeOwner()

const Foam::labelList & edgeOwner ( ) const

Definition at line 594 of file triSurface.C.

◆ Sf()

const vectorField& Sf ( ) const
inline

Definition at line 425 of file triSurface.H.

References PrimitivePatch<::Foam::List< labelledTri >, pointField >::faceAreas().

Here is the call graph for this function:

◆ magSf()

const scalarField& magSf ( ) const
inline

Definition at line 431 of file triSurface.H.

References PrimitivePatch<::Foam::List< labelledTri >, pointField >::magFaceAreas().

Here is the call graph for this function:

◆ Cf()

const vectorField& Cf ( ) const
inline

Definition at line 437 of file triSurface.H.

References PrimitivePatch<::Foam::List< labelledTri >, pointField >::faceCentres().

Here is the call graph for this function:

◆ sortedZones()

Foam::List< Foam::surfZone > sortedZones ( labelList faceMap) const

Definition at line 702 of file triSurface.C.

References Foam::faceMap(), forAll, and patches.

Here is the call graph for this function:

◆ triFaceFaces()

void triFaceFaces ( List< face > &  plainFaceList) const

Definition at line 716 of file triSurface.C.

References forAll, and List::setSize().

Referenced by isoSurfaceCell::isoSurfaceCell(), and isoSurfacePoint::isoSurfacePoint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ movePoints()

void movePoints ( const pointField pts)
virtual

Reimplemented in triSurfaceMesh.

Definition at line 605 of file triSurface.C.

Referenced by triSurfaceMesh::movePoints().

Here is the caller graph for this function:

◆ swapPoints()

void swapPoints ( pointField pts)
virtual

Definition at line 618 of file triSurface.C.

Referenced by isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), and triSurfaceLoader::load().

Here is the caller graph for this function:

◆ scalePoints()

void scalePoints ( const scalar  scaleFactor)
virtual

Definition at line 631 of file triSurface.C.

References Foam::equal().

Here is the call graph for this function:

◆ checkTriangles()

void checkTriangles ( const bool  verbose)

Definition at line 175 of file triSurface.C.

References bitSet::all(), Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, forAll, n, points, Foam::printTriangle(), bitSet::unset(), Foam::Warning, and WarningInFunction.

Here is the call graph for this function:

◆ checkEdges()

void checkEdges ( const bool  verbose)

Definition at line 294 of file triSurface.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and WarningInFunction.

Here is the call graph for this function:

◆ cleanup()

void cleanup ( const bool  verbose)

Definition at line 648 of file triSurface.C.

◆ compactPoints()

void compactPoints ( labelList pointMap = const_cast<labelList&>(labelList::null()))

Definition at line 662 of file triSurface.C.

References DynamicList::append(), f(), Foam::notNull(), points, and List::transfer().

Here is the call graph for this function:

◆ markZone()

void markZone ( const boolList borderEdge,
const label  facei,
const label  currentZone,
labelList faceZone 
) const

Definition at line 730 of file triSurface.C.

References Foam::abort(), DynamicList::append(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ markZones()

Foam::label markZones ( const boolList borderEdge,
labelList faceZone 
) const

Definition at line 789 of file triSurface.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and List::setSize().

Referenced by booleanSurface::booleanSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subsetMeshMap()

void subsetMeshMap ( const BoolListType &  include,
labelList pointMap,
labelList faceMap 
) const
inline

Definition at line 509 of file triSurface.H.

References Foam::faceMap(), and PatchTools::subsetMap().

Here is the call graph for this function:

◆ subsetMesh() [1/5]

Foam::triSurface subsetMesh ( const UList< bool > &  include,
labelList pointMap,
labelList faceMap 
) const

Definition at line 872 of file triSurface.C.

References Foam::faceMap().

Referenced by booleanSurface::booleanSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subsetMesh() [2/5]

Foam::triSurface subsetMesh ( const bitSet include,
labelList pointMap,
labelList faceMap 
) const

Definition at line 885 of file triSurface.C.

References Foam::faceMap().

Here is the call graph for this function:

◆ subsetMesh() [3/5]

Foam::triSurface subsetMesh ( const UList< bool > &  include) const

Definition at line 897 of file triSurface.C.

References Foam::faceMap().

Here is the call graph for this function:

◆ subsetMesh() [4/5]

Foam::triSurface subsetMesh ( const bitSet include) const

Definition at line 905 of file triSurface.C.

References Foam::faceMap().

Here is the call graph for this function:

◆ subsetMesh() [5/5]

Foam::triSurface subsetMesh ( const wordRes includeNames,
const wordRes excludeNames = wordRes() 
) const

Definition at line 914 of file triSurface.C.

References Foam::stringListOps::findMatching(), forAll, bitSet::set(), and bitSet::test().

Here is the call graph for this function:

◆ swapFaces()

void swapFaces ( List< labelledTri > &  faceLst)

Definition at line 946 of file triSurface.C.

Referenced by triSurfaceLoader::load().

Here is the caller graph for this function:

◆ transfer() [1/2]

void transfer ( triSurface surf)

Definition at line 954 of file triSurface.C.

References triSurface::clearOut(), triSurface::patches(), triSurface::storedFaces(), and triSurface::storedPoints().

Referenced by triSurface::triSurface(), and triSurfaceMesh::triSurfaceMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transfer() [2/2]

void transfer ( MeshedSurface< labelledTri > &  surf)

Definition at line 966 of file triSurface.C.

References MeshedSurface::clear(), patches, s, MeshedSurface::surfZones(), MeshedSurface::swapFaces(), and MeshedSurface::swapPoints().

Here is the call graph for this function:

◆ write() [1/4]

void write ( Ostream os) const

Definition at line 329 of file triSurfaceIO.C.

References os().

Referenced by booleanSurface::booleanSurface(), isoSurfacePoint::isoSurfacePoint(), triSurfaceMesh::writeObject(), distributedTriSurfaceMesh::writeObject(), and boundaryMesh::writeTriSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/4]

void write ( const fileName name,
const bool  sortByRegion = false 
) const

Definition at line 320 of file triSurfaceIO.C.

References word::ext(), Foam::name(), and Foam::vtk::write().

Here is the call graph for this function:

◆ write() [3/4]

void write ( const fileName filename,
const word fileType,
const bool  sortByRegion = false 
) const

◆ write() [4/4]

void write ( const Time d) const

Definition at line 335 of file triSurfaceIO.C.

References Time::caseName(), os(), and Time::path().

Here is the call graph for this function:

◆ writeStats()

void writeStats ( Ostream os) const

Definition at line 346 of file triSurfaceIO.C.

References boundBox::add(), bitSet::count(), Foam::endl(), f(), HashSet::insert(), boundBox::invertedBox, Foam::nl, os(), points, and bitSet::set().

Referenced by booleanSurface::booleanSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/3]

void operator= ( const triSurface surf)

Definition at line 992 of file triSurface.C.

References triSurface::patches(), and PrimitivePatch< FaceList, PointField >::points().

Referenced by booleanSurface::booleanSurface(), distributedTriSurfaceMesh::distribute(), and intersectedSurface::intersectedSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [2/3]

void operator= ( triSurface &&  surf)

Definition at line 1002 of file triSurface.C.

◆ operator=() [3/3]

void operator= ( MeshedSurface< labelledTri > &&  surf)

Definition at line 1008 of file triSurface.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream is,
triSurface s 
)
friend

◆ operator<<

Ostream& operator<< ( Ostream os,
const triSurface s 
)
friend

The documentation for this class was generated from the following files: