Public Member Functions | Protected Member Functions | Protected Attributes
triSurfFacets Class Reference
Inheritance diagram for triSurfFacets:
Inheritance graph
[legend]
Collaboration diagram for triSurfFacets:
Collaboration graph
[legend]

Public Member Functions

 triSurfFacets ()
 Null constructor. More...
 
 triSurfFacets (const LongList< labelledTri > &triangles)
 Construct from components without the boundary. More...
 
 triSurfFacets (const LongList< labelledTri > &triangles, const geometricSurfacePatchList &patches)
 Construct from components. More...
 
 ~triSurfFacets ()
 
label size () const
 return the number of triangles More...
 
const LongList< labelledTri > & facets () const
 access to facets More...
 
const geometricSurfacePatchListpatches () const
 access to patches More...
 
wordList patchNames () const
 return list of patches in the boundary More...
 
labelList findPatches (const word &patchName) const
 return a list of patch indices corresponding to the given More...
 
void appendTriangle (const labelledTri &tria)
 append a triangle to the end of the list More...
 
label addFacetSubset (const word &)
 point subsets More...
 
void removeFacetSubset (const label)
 
word facetSubsetName (const label) const
 
label facetSubsetIndex (const word &) const
 
void addFacetToSubset (const label, const label)
 
void removeFacetFromSubset (const label, const label)
 
void facetInSubsets (const label, DynList< label > &) const
 
void facetSubsetIndices (DynList< label > &) const
 
template<class ListType >
void facetsInSubset (const label, ListType &) const
 
template<class ListType >
void updateFacetsSubsets (const ListType &)
 
const labelledTrioperator[] (const label) const
 access to a triangle More...
 

Protected Member Functions

void operator= (const triSurfFacets &)
 
 triSurfFacets (const triSurfFacets &)
 

Protected Attributes

LongList< labelledTritriangles_
 list of triangles More...
 
geometricSurfacePatchList patches_
 list of boundary patches and their properties More...
 
Map< meshSubsetfacetSubsets_
 map of point subsets More...
 

Detailed Description

Definition at line 52 of file triSurfFacets.H.

Constructor & Destructor Documentation

◆ triSurfFacets() [1/4]

triSurfFacets ( const triSurfFacets )
protected

◆ triSurfFacets() [2/4]

Null constructor.

Definition at line 39 of file triSurfFacets.C.

◆ triSurfFacets() [3/4]

triSurfFacets ( const LongList< labelledTri > &  triangles)

Construct from components without the boundary.

Definition at line 46 of file triSurfFacets.C.

References forAll, triSurfFacets::patches_, and triSurfFacets::triangles_.

◆ triSurfFacets() [4/4]

triSurfFacets ( const LongList< labelledTri > &  triangles,
const geometricSurfacePatchList patches 
)

Construct from components.

Definition at line 59 of file triSurfFacets.C.

◆ ~triSurfFacets()

Definition at line 71 of file triSurfFacets.C.

Member Function Documentation

◆ operator=()

void operator= ( const triSurfFacets )
protected

◆ size()

label size ( ) const
inline

◆ facets()

const LongList< labelledTri > & facets ( ) const
inline

◆ patches()

const geometricSurfacePatchList & patches ( ) const
inline

◆ patchNames()

wordList patchNames ( ) const

return list of patches in the boundary

Definition at line 76 of file triSurfFacets.C.

References forAll, triSurfFacets::patches_, and List::size().

Referenced by triSurfFacets::findPatches().

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

◆ findPatches()

labelList findPatches ( const word patchName) const

return a list of patch indices corresponding to the given

name, expanding regular expressions

Definition at line 88 of file triSurfFacets.C.

References Foam::endl(), Foam::findStrings(), triSurfFacets::patchNames(), and WarningIn.

Referenced by meshOctreeAddressing::findUsedBoxes().

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

◆ appendTriangle()

void appendTriangle ( const labelledTri tria)
inline

append a triangle to the end of the list

Definition at line 54 of file triSurfFacetsI.H.

References triSurfFacets::triangles_.

Referenced by Foam::triSurfaceChecks::checkOverlaps(), partTriMesh::createBufferLayers(), and edgeExtractor::surfaceWithPatches().

Here is the caller graph for this function:

◆ addFacetSubset()

label addFacetSubset ( const word subsetName)

◆ removeFacetSubset()

void removeFacetSubset ( const label  subsetID)

◆ facetSubsetName()

word facetSubsetName ( const label  subsetID) const

◆ facetSubsetIndex()

label facetSubsetIndex ( const word subsetName) const

◆ addFacetToSubset()

void addFacetToSubset ( const label  setI,
const label  triI 
)
inline

◆ removeFacetFromSubset()

void removeFacetFromSubset ( const label  setI,
const label  triI 
)
inline

Definition at line 73 of file triSurfFacetsI.H.

◆ facetInSubsets()

void facetInSubsets ( const label  triI,
DynList< label > &  facetSubsets 
) const
inline

Definition at line 86 of file triSurfFacetsI.H.

References DynList< T, staticSize >::append(), DynList< T, staticSize >::clear(), and forAllConstIter().

Here is the call graph for this function:

◆ facetSubsetIndices()

void facetSubsetIndices ( DynList< label > &  indices) const
inline

◆ facetsInSubset()

void facetsInSubset ( const label  setI,
ListType &  facetsLabels 
) const
inline

◆ updateFacetsSubsets()

void updateFacetsSubsets ( const ListType &  newFacetsLabels)
inline

◆ operator[]()

const labelledTri & operator[] ( const label  triI) const
inline

access to a triangle

Definition at line 146 of file triSurfFacetsI.H.

References triSurfFacets::triangles_.

Field Documentation

◆ triangles_

LongList<labelledTri> triangles_
protected

◆ patches_

geometricSurfacePatchList patches_
protected

◆ facetSubsets_

Map<meshSubset> facetSubsets_
protected

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