Public Member Functions | Private Member Functions | Friends
triSurf Class Reference
Inheritance diagram for triSurf:
Inheritance graph
[legend]
Collaboration diagram for triSurf:
Collaboration graph
[legend]

Public Member Functions

 triSurf ()
 Default construct. More...
 
 triSurf (const LongList< labelledTri > &triangles, const geometricSurfacePatchList &patches, const edgeLongList &featureEdges_, const pointField &points)
 Construct from parts. More...
 
 triSurf (const fileName &fName)
 Read from file. More...
 
 ~triSurf ()
 
void readSurface (const fileName &)
 read and write the surface More...
 
void writeSurface (const fileName &) const
 
- Public Member Functions inherited from triSurfPoints
 triSurfPoints ()
 Null constructor. More...
 
 triSurfPoints (const pointField &points)
 Construct from vertices. More...
 
 ~triSurfPoints ()
 
label nPoints () const
 return the number of points More...
 
const pointFieldpoints () const
 access to points More...
 
void appendVertex (const point &p)
 append a vertex to the end of the list More...
 
label addPointSubset (const word &)
 point subsets More...
 
void removePointSubset (const label)
 
word pointSubsetName (const label) const
 
label pointSubsetIndex (const word &) const
 
void addPointToSubset (const label, const label)
 
void removePointFromSubset (const label, const label)
 
void pointInSubsets (const label, DynList< label > &) const
 
void pointSubsetIndices (DynList< label > &) const
 
template<class ListType >
void pointsInSubset (const label, ListType &) const
 
template<class ListType >
void updatePointSubsets (const ListType &)
 
- Public Member Functions inherited from triSurfFacets
 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...
 
- Public Member Functions inherited from triSurfFeatureEdges
 triSurfFeatureEdges ()
 Null constructor. More...
 
 triSurfFeatureEdges (const edgeLongList &triangles)
 Construct from feature edges. More...
 
 ~triSurfFeatureEdges ()
 
label nFeatureEdges () const
 return the number of feature edges More...
 
const edgeLongListfeatureEdges () const
 access to feature edges More...
 
void appendFeatureEdge (const edge &e)
 append an edge to the end of the list More...
 
label addEdgeSubset (const word &)
 point subsets More...
 
void removeEdgeSubset (const label)
 
word edgeSubsetName (const label) const
 
label edgeSubsetIndex (const word &) const
 
void addEdgeToSubset (const label, const label)
 
void removeEdgeFromSubset (const label, const label)
 
void edgeInSubsets (const label, DynList< label > &) const
 
void edgeSubsetIndices (DynList< label > &) const
 
template<class ListType >
void edgesInSubset (const label, ListType &) const
 
template<class ListType >
void updateEdgeSubsets (const ListType &)
 
- Public Member Functions inherited from triSurfAddressing
 triSurfAddressing (const pointField &points, const LongList< labelledTri > &triangles)
 Construct from surface triangles. More...
 
 ~triSurfAddressing ()
 
const VRWGraphpointFacets () const
 return point-facets addressing More...
 
const LongList< edge > & edges () const
 return edges More...
 
const VRWGraphfacetEdges () const
 return facet-edges addressing More...
 
const VRWGraphedgeFacets () const
 return edge-facets addressing More...
 
const VRWGraphpointEdges () const
 return point-edges addressing More...
 
const VRWGraphfacetFacets () const
 return facet-facets addressing More...
 
const pointFieldpointNormals () const
 return point normals More...
 
const vectorFieldfacetNormals () const
 return normals of facets More...
 
const vectorFieldfacetCentres () const
 return centres of facets More...
 
void clearAddressing ()
 delete all data More...
 
void clearGeometry ()
 delete geometry data More...
 

Private Member Functions

void readFromFTR (const fileName &)
 
void writeToFTR (const fileName &) const
 
void readFromFMS (const fileName &)
 
void writeToFMS (const fileName &) const
 
LongList< labelledTri > & accessToFacets ()
 
geometricSurfacePatchListaccessToPatches ()
 
void topologyCheck ()
 
void operator= (const triSurf &)
 Disallow default bitwise assignment. More...
 

Friends

class triSurfModifer
 

Additional Inherited Members

- Protected Member Functions inherited from triSurfPoints
void operator= (const triSurfPoints &)
 
 triSurfPoints (const triSurfPoints &)
 
- Protected Member Functions inherited from triSurfFacets
void operator= (const triSurfFacets &)
 
 triSurfFacets (const triSurfFacets &)
 
- Protected Member Functions inherited from triSurfFeatureEdges
void operator= (const triSurfFeatureEdges &)
 
 triSurfFeatureEdges (const triSurfFeatureEdges &)
 
- Protected Attributes inherited from triSurfPoints
pointField points_
 list of vertices More...
 
Map< meshSubsetpointSubsets_
 map of point subsets More...
 
- Protected Attributes inherited from triSurfFacets
LongList< labelledTritriangles_
 list of triangles More...
 
geometricSurfacePatchList patches_
 list of boundary patches and their properties More...
 
Map< meshSubsetfacetSubsets_
 map of point subsets More...
 
- Protected Attributes inherited from triSurfFeatureEdges
edgeLongList featureEdges_
 list of feature edges More...
 
Map< meshSubsetfeatureEdgeSubsets_
 map of edge subsets More...
 

Detailed Description

Definition at line 59 of file triSurf.H.

Constructor & Destructor Documentation

◆ triSurf() [1/3]

triSurf ( )

Default construct.

Definition at line 356 of file triSurf.C.

◆ triSurf() [2/3]

triSurf ( const LongList< labelledTri > &  triangles,
const geometricSurfacePatchList patches,
const edgeLongList featureEdges_,
const pointField points 
)

Construct from parts.

Definition at line 366 of file triSurf.C.

◆ triSurf() [3/3]

triSurf ( const fileName fName)

Read from file.

Definition at line 382 of file triSurf.C.

References triSurf::readSurface(), and triSurf::topologyCheck().

Here is the call graph for this function:

◆ ~triSurf()

~triSurf ( )

Definition at line 396 of file triSurf.C.

Member Function Documentation

◆ readFromFTR()

void readFromFTR ( const fileName fName)
private

Definition at line 44 of file triSurf.C.

References triSurfFacets::patches_, triSurfPoints::points_, and triSurfFacets::triangles_.

Referenced by triSurf::readSurface().

Here is the caller graph for this function:

◆ writeToFTR()

void writeToFTR ( const fileName fName) const
private

Definition at line 55 of file triSurf.C.

References Foam::nl, triSurfFacets::patches_, triSurfPoints::points_, and triSurfFacets::triangles_.

Referenced by triSurf::writeSurface().

Here is the caller graph for this function:

◆ readFromFMS()

void readFromFMS ( const fileName fName)
private

read the list of patches defined on the surface mesh

read points

read surface triangles

read feature edges

read point subsets

read facet subsets

read subsets on feature edges

Definition at line 70 of file triSurf.C.

References triSurfFacets::facetSubsets_, triSurfFeatureEdges::featureEdges_, triSurfFeatureEdges::featureEdgeSubsets_, forAll, triSurfFacets::patches_, triSurfPoints::points_, triSurfPoints::pointSubsets_, and triSurfFacets::triangles_.

Referenced by triSurf::readSurface().

Here is the caller graph for this function:

◆ writeToFMS()

void writeToFMS ( const fileName fName) const
private

write patches

write points

write triangles

write feature edges

write point subsets

write subsets of facets

write subets of feature edges

Definition at line 112 of file triSurf.C.

References triSurfFacets::facetSubsets_, triSurfFeatureEdges::featureEdges_, triSurfFeatureEdges::featureEdgeSubsets_, forAllConstIter(), Foam::nl, triSurfFacets::patches_, triSurfPoints::points_, triSurfPoints::pointSubsets_, List::setSize(), triSurfFacets::size(), and triSurfFacets::triangles_.

Referenced by triSurf::writeSurface().

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

◆ accessToFacets()

LongList< labelledTri > & accessToFacets ( )
inlineprivate

Definition at line 37 of file triSurfI.H.

References triSurfFacets::triangles_.

◆ accessToPatches()

geometricSurfacePatchList & accessToPatches ( )
inlineprivate

Definition at line 42 of file triSurfI.H.

References triSurfFacets::patches_.

◆ topologyCheck()

void topologyCheck ( )
private

◆ operator=()

void operator= ( const triSurf )
private

Disallow default bitwise assignment.

◆ readSurface()

void readSurface ( const fileName fName)

read and write the surface

copy the points

copy the triangles

copy patches

Definition at line 401 of file triSurf.C.

References fileName::ext(), forAll, triSurface::patches(), triSurfFacets::patches_, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), triSurfPoints::points_, triSurf::readFromFMS(), triSurf::readFromFTR(), List::size(), and triSurfFacets::triangles_.

Referenced by triSurf::triSurf().

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

◆ writeSurface()

void writeSurface ( const fileName fName) const

Friends And Related Function Documentation

◆ triSurfModifer

friend class triSurfModifer
friend

Definition at line 84 of file triSurf.H.


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