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

Public Member Functions

 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 calculatePointFacets () const
 calculate point-facets addressing More...
 
void calculateEdges () const
 calculate edges, facet-edges and edge-facets addressing More...
 
void calculateFacetEdges () const
 calculate facet-edges addresing More...
 
void calculateEdgeFacets () const
 calculate edge-facets addressing More...
 
void calculatePointEdges () const
 calculate point-edges addressing More...
 
void calculateFacetFacetsEdges () const
 calculate facet-faceys addressing More...
 
void calculatePointNormals () const
 calculate point normals More...
 
void calculateFacetNormals () const
 calculate normals of facets More...
 
void calculateFacetCentres () const
 calculate centres of facets More...
 
void operator= (const triSurfAddressing &)
 
 triSurfAddressing (const triSurfAddressing &)
 

Private Attributes

const pointFieldpoints_
 const reference to the points More...
 
const LongList< labelledTri > & facets_
 const reference to the facets More...
 
VRWGraphpointFacetsPtr_
 facets connected to a point More...
 
edgeLongListedgesPtr_
 edges in the triangulation More...
 
VRWGraphfacetEdgesPtr_
 labels of edges in the triangles More...
 
VRWGraphedgeFacetsPtr_
 labels of triangles connected to an edge More...
 
VRWGraphpointEdgesPtr_
 labels of edges connected to a point More...
 
VRWGraphfacetFacetsEdgesPtr_
 facets connected tp a facet via edges More...
 
vectorFieldpointNormalsPtr_
 point normals More...
 
vectorFieldfacetNormalsPtr_
 face normals More...
 
vectorFieldfacetCentresPtr_
 face centres More...
 

Detailed Description

Definition at line 52 of file triSurfAddressing.H.

Constructor & Destructor Documentation

◆ triSurfAddressing() [1/2]

triSurfAddressing ( const triSurfAddressing )
private

◆ triSurfAddressing() [2/2]

triSurfAddressing ( const pointField points,
const LongList< labelledTri > &  triangles 
)

Construct from surface triangles.

Definition at line 312 of file triSurfAddressing.C.

◆ ~triSurfAddressing()

Definition at line 332 of file triSurfAddressing.C.

References triSurfAddressing::clearAddressing(), and triSurfAddressing::clearGeometry().

Here is the call graph for this function:

Member Function Documentation

◆ calculatePointFacets()

void calculatePointFacets ( ) const
private

calculate point-facets addressing

Definition at line 41 of file triSurfAddressing.C.

References triSurfAddressing::facets_, triSurfAddressing::pointFacetsPtr_, and VRWGraphSMPModifier::reverseAddressing().

Referenced by triSurfAddressing::pointFacets().

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

◆ calculateEdges()

void calculateEdges ( ) const
private

calculate edges, facet-edges and edge-facets addressing

this enables other threads to see the number of edges generated by each thread

find the starting position of the edges generated by this thread in the global list of edges

store edges into the global list

Definition at line 48 of file triSurfAddressing.C.

References LongList< T, Offset >::append(), triSurfAddressing::edgesPtr_, triSurfAddressing::facets_, forAll, forAllRow, LongList< T, Offset >::operator, triSurfAddressing::pointFacets(), LongList< T, Offset >::setSize(), LongList< T, Offset >::size(), and VRWGraph::size().

Referenced by triSurfAddressing::edges().

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

◆ calculateFacetEdges()

void calculateFacetEdges ( ) const
private

calculate facet-edges addresing

Definition at line 144 of file triSurfAddressing.C.

References Foam::abort(), Foam::e, triSurfAddressing::edges(), triSurfAddressing::facetEdgesPtr_, triSurfAddressing::facets_, Foam::FatalError, FatalErrorIn, forAll, forAllRow, triSurfAddressing::pointFacets(), triSurfAddressing::points_, LongList< T, Offset >::size(), and edge::start().

Referenced by triSurfAddressing::facetEdges().

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

◆ calculateEdgeFacets()

void calculateEdgeFacets ( ) const
private

calculate edge-facets addressing

Definition at line 203 of file triSurfAddressing.C.

References triSurfAddressing::edgeFacetsPtr_, triSurfAddressing::edges(), triSurfAddressing::facetEdges(), VRWGraphSMPModifier::reverseAddressing(), and LongList< T, Offset >::size().

Referenced by triSurfAddressing::edgeFacets().

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

◆ calculatePointEdges()

void calculatePointEdges ( ) const
private

calculate point-edges addressing

Definition at line 213 of file triSurfAddressing.C.

References triSurfAddressing::edges(), triSurfAddressing::pointEdgesPtr_, triSurfAddressing::points_, and VRWGraph::reverseAddressing().

Referenced by triSurfAddressing::pointEdges().

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

◆ calculateFacetFacetsEdges()

void calculateFacetFacetsEdges ( ) const
private

calculate facet-faceys addressing

Definition at line 222 of file triSurfAddressing.C.

References triSurfAddressing::edgeFacets(), triSurfAddressing::facetEdges(), triSurfAddressing::facetFacetsEdgesPtr_, triSurfAddressing::facets_, forAll, forAllConstIter(), forAllRow, HashSet< Key, Hash >::insert(), VRWGraph::setRowSize(), VRWGraph::setSize(), and HashTable::size().

Referenced by triSurfAddressing::facetFacets().

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

◆ calculatePointNormals()

void calculatePointNormals ( ) const
private

calculate point normals

Definition at line 251 of file triSurfAddressing.C.

References triSurfAddressing::facetNormals(), forAllRow, Foam::mag(), triSurfAddressing::pointFacets(), triSurfAddressing::pointNormalsPtr_, VRWGraph::size(), and Vector< scalar >::zero.

Referenced by triSurfAddressing::pointNormals().

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

◆ calculateFacetNormals()

void calculateFacetNormals ( ) const
private

calculate normals of facets

Definition at line 283 of file triSurfAddressing.C.

References triSurfAddressing::facetNormalsPtr_, triSurfAddressing::facets_, forAll, Foam::mag(), and triSurfAddressing::points_.

Referenced by triSurfAddressing::facetNormals().

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

◆ calculateFacetCentres()

void calculateFacetCentres ( ) const
private

calculate centres of facets

Definition at line 298 of file triSurfAddressing.C.

References triSurfAddressing::facetCentresPtr_, triSurfAddressing::facets_, forAll, and triSurfAddressing::points_.

Referenced by triSurfAddressing::facetCentres().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const triSurfAddressing )
private

◆ pointFacets()

const VRWGraph & pointFacets ( ) const
inline

◆ edges()

const edgeLongList & edges ( ) const
inline

◆ facetEdges()

const VRWGraph & facetEdges ( ) const
inline

◆ edgeFacets()

const VRWGraph & edgeFacets ( ) const
inline

◆ pointEdges()

const VRWGraph & pointEdges ( ) const
inline

◆ facetFacets()

const VRWGraph & facetFacets ( ) const
inline

return facet-facets addressing

Definition at line 133 of file triSurfAddressingI.H.

References Foam::abort(), triSurfAddressing::calculateFacetFacetsEdges(), triSurfAddressing::facetFacetsEdgesPtr_, Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

◆ pointNormals()

const vectorField & pointNormals ( ) const
inline

return point normals

Definition at line 151 of file triSurfAddressingI.H.

References Foam::abort(), triSurfAddressing::calculatePointNormals(), Foam::FatalError, FatalErrorIn, and triSurfAddressing::pointNormalsPtr_.

Here is the call graph for this function:

◆ facetNormals()

const vectorField & facetNormals ( ) const
inline

◆ facetCentres()

const vectorField & facetCentres ( ) const
inline

return centres of facets

Definition at line 189 of file triSurfAddressingI.H.

References Foam::abort(), triSurfAddressing::calculateFacetCentres(), triSurfAddressing::facetCentresPtr_, Foam::FatalError, and FatalErrorIn.

Referenced by triSurfaceImportSurfaceAsSubset::addSurfaceAsSubset().

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

◆ clearAddressing()

void clearAddressing ( )

◆ clearGeometry()

void clearGeometry ( )

Field Documentation

◆ points_

const pointField& points_
private

◆ facets_

const LongList<labelledTri>& facets_
private

◆ pointFacetsPtr_

VRWGraph* pointFacetsPtr_
mutableprivate

◆ edgesPtr_

edgeLongList* edgesPtr_
mutableprivate

edges in the triangulation

Definition at line 66 of file triSurfAddressing.H.

Referenced by triSurfAddressing::calculateEdges(), triSurfAddressing::clearAddressing(), and triSurfAddressing::edges().

◆ facetEdgesPtr_

VRWGraph* facetEdgesPtr_
mutableprivate

labels of edges in the triangles

Definition at line 69 of file triSurfAddressing.H.

Referenced by triSurfAddressing::calculateFacetEdges(), triSurfAddressing::clearAddressing(), and triSurfAddressing::facetEdges().

◆ edgeFacetsPtr_

VRWGraph* edgeFacetsPtr_
mutableprivate

labels of triangles connected to an edge

Definition at line 72 of file triSurfAddressing.H.

Referenced by triSurfAddressing::calculateEdgeFacets(), triSurfAddressing::clearAddressing(), and triSurfAddressing::edgeFacets().

◆ pointEdgesPtr_

VRWGraph* pointEdgesPtr_
mutableprivate

labels of edges connected to a point

Definition at line 75 of file triSurfAddressing.H.

Referenced by triSurfAddressing::calculatePointEdges(), triSurfAddressing::clearAddressing(), and triSurfAddressing::pointEdges().

◆ facetFacetsEdgesPtr_

VRWGraph* facetFacetsEdgesPtr_
mutableprivate

facets connected tp a facet via edges

Definition at line 78 of file triSurfAddressing.H.

Referenced by triSurfAddressing::calculateFacetFacetsEdges(), triSurfAddressing::clearAddressing(), and triSurfAddressing::facetFacets().

◆ pointNormalsPtr_

vectorField* pointNormalsPtr_
mutableprivate

◆ facetNormalsPtr_

vectorField* facetNormalsPtr_
mutableprivate

◆ facetCentresPtr_

vectorField* facetCentresPtr_
mutableprivate

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