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

Public Member Functions

 triSurfaceImportSurfaceAsSubset (triSurf &surface)
 Construct from triSurf. More...
 
 ~triSurfaceImportSurfaceAsSubset ()
 
void addSurfaceAsSubset (const triSurf &importSurf, const word &subsetName, const scalar angleTol=5.*M_PI/180.)
 

Private Member Functions

void createOctree (const triSurf &, meshOctree &)
 
 triSurfaceImportSurfaceAsSubset (const triSurfaceImportSurfaceAsSubset &)
 Disallow default bitwise copy construct. More...
 
void operator= (const triSurfaceImportSurfaceAsSubset &)
 Disallow default bitwise assignment. More...
 

Private Attributes

triSurfsurf_
 reference to triSurf More...
 
meshOctreeoctreePtr_
 pointer to meshOctree, needed for searching on the master surface More...
 

Detailed Description

Definition at line 52 of file triSurfaceImportSurfaceAsSubset.H.

Constructor & Destructor Documentation

◆ triSurfaceImportSurfaceAsSubset() [1/2]

Disallow default bitwise copy construct.

◆ triSurfaceImportSurfaceAsSubset() [2/2]

Construct from triSurf.

Definition at line 50 of file triSurfaceImportSurfaceAsSubset.C.

◆ ~triSurfaceImportSurfaceAsSubset()

Definition at line 56 of file triSurfaceImportSurfaceAsSubset.C.

References Foam::deleteDemandDrivenData(), and triSurfaceImportSurfaceAsSubset::octreePtr_.

Here is the call graph for this function:

Member Function Documentation

◆ createOctree()

void createOctree ( const triSurf ,
meshOctree  
)
private

Definition at line 41 of file triSurfaceImportSurfaceAsSubset.C.

◆ operator=()

void operator= ( const triSurfaceImportSurfaceAsSubset )
private

Disallow default bitwise assignment.

◆ addSurfaceAsSubset()

void addSurfaceAsSubset ( const triSurf importSurf,
const word subsetName,
const scalar  angleTol = 5.*M_PI/180. 
)

finds the nearest faces in the surface to the import surf and creates a subset

check which triangles in the surface fit best to the centres of the triangles in the import surface

find the longest edge distance

check if the triangle has been found

skip sliver triangles

skip sliver triangles

search for nearest facets in the import surface

find the bounding box and the ize of the triangle

bounding box of the surface triangle

find the nearest triangle in the surface which shall be imported

check if the triangle has been found

skip firther checkes f it has found the same triangle

skip sliver triangles

skip sliver triangles

create a facet subset in the surface mesh and add the facets into it

Definition at line 64 of file triSurfaceImportSurfaceAsSubset.C.

References meshOctreeCreator::createOctreeWithRefinedBoundary(), Foam::e, Foam::endl(), triSurfAddressing::facetCentres(), triSurfAddressing::facetNormals(), meshOctree::findTrianglesInBox(), forAll, Foam::magSqr(), boundBox::max(), Foam::max(), boundBox::min(), Foam::min(), Foam::help::nearestPointOnTheTriangle(), p, points, triSurfPoints::points(), s(), triSurfFacets::size(), and Foam::Warning.

Referenced by main().

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

Field Documentation

◆ surf_

triSurf& surf_
private

reference to triSurf

Definition at line 56 of file triSurfaceImportSurfaceAsSubset.H.

◆ octreePtr_

meshOctree* octreePtr_
private

pointer to meshOctree, needed for searching on the master surface

Definition at line 59 of file triSurfaceImportSurfaceAsSubset.H.

Referenced by triSurfaceImportSurfaceAsSubset::~triSurfaceImportSurfaceAsSubset().


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