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 | |
triSurf & | surf_ |
reference to triSurf More... | |
meshOctree * | octreePtr_ |
pointer to meshOctree, needed for searching on the master surface More... | |
Definition at line 52 of file triSurfaceImportSurfaceAsSubset.H.
|
private |
Disallow default bitwise copy construct.
triSurfaceImportSurfaceAsSubset | ( | triSurf & | surface | ) |
Construct from triSurf.
Definition at line 50 of file triSurfaceImportSurfaceAsSubset.C.
Definition at line 56 of file triSurfaceImportSurfaceAsSubset.C.
References Foam::deleteDemandDrivenData(), and triSurfaceImportSurfaceAsSubset::octreePtr_.
|
private |
Definition at line 41 of file triSurfaceImportSurfaceAsSubset.C.
|
private |
Disallow default bitwise assignment.
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().
|
private |
reference to triSurf
Definition at line 56 of file triSurfaceImportSurfaceAsSubset.H.
|
private |
pointer to meshOctree, needed for searching on the master surface
Definition at line 59 of file triSurfaceImportSurfaceAsSubset.H.
Referenced by triSurfaceImportSurfaceAsSubset::~triSurfaceImportSurfaceAsSubset().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.