triSurfaceImportSurfaceAsSubset.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation; either version 3 of the License, or (at your
14  option) any later version.
15 
16  cfMesh is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  triSurfaceImportSurfaceAsSubset
26 
27 Description
28  Creates a subset in the master surface consisting of facets which are
29  near the other surface
30 
31 SourceFiles
32  triSurfaceImportSurfaceAsSubset.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef triSurfaceImportSurfaceAsSubset_H
37 #define triSurfaceImportSurfaceAsSubset_H
38 
39 #include "triSurf.H"
40 #include "boolList.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class meshOctree;
48 
49 /*---------------------------------------------------------------------------*\
50  Class triSurfaceImportSurfaceAsSubset Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55  // Private data
56  //- reference to triSurf
57  triSurf& surf_;
58 
59  //- pointer to meshOctree, needed for searching on the master surface
61 
62  // Private member functions
63  void createOctree(const triSurf&, meshOctree&);
64 
65  //- Disallow default bitwise copy construct
67 
68  //- Disallow default bitwise assignment
70 
71 public:
72 
73  // Constructors
74 
75  //- Construct from triSurf
77 
78  // Destructor
79 
81 
82 
83  // Member Functions
84 
85  //- finds the nearest faces in the surface to the import surf
86  //- and creates a subset
88  (
89  const triSurf& importSurf,
90  const word& subsetName,
91  const scalar angleTol = 5.*M_PI/180.
92  );
93 };
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace Foam
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 #endif
102 
103 // ************************************************************************* //
Foam::triSurfaceImportSurfaceAsSubset
Definition: triSurfaceImportSurfaceAsSubset.H:52
triSurf.H
boolList.H
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::triSurfaceImportSurfaceAsSubset::operator=
void operator=(const triSurfaceImportSurfaceAsSubset &)
Disallow default bitwise assignment.
Foam::triSurfaceImportSurfaceAsSubset::octreePtr_
meshOctree * octreePtr_
pointer to meshOctree, needed for searching on the master surface
Definition: triSurfaceImportSurfaceAsSubset.H:59
Foam::triSurfaceImportSurfaceAsSubset::addSurfaceAsSubset
void addSurfaceAsSubset(const triSurf &importSurf, const word &subsetName, const scalar angleTol=5.*M_PI/180.)
Definition: triSurfaceImportSurfaceAsSubset.C:64
Foam::triSurfaceImportSurfaceAsSubset::surf_
triSurf & surf_
reference to triSurf
Definition: triSurfaceImportSurfaceAsSubset.H:56
Foam::triSurfaceImportSurfaceAsSubset::~triSurfaceImportSurfaceAsSubset
~triSurfaceImportSurfaceAsSubset()
Definition: triSurfaceImportSurfaceAsSubset.C:56
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::triSurfaceImportSurfaceAsSubset::triSurfaceImportSurfaceAsSubset
triSurfaceImportSurfaceAsSubset(const triSurfaceImportSurfaceAsSubset &)
Disallow default bitwise copy construct.
Foam::meshOctree
Definition: meshOctree.H:55
Foam::surface
Definition: surface.H:55
meshOctree
Octree for mesh generation.
Foam::triSurf
Definition: triSurf.H:59
Foam::triSurfaceImportSurfaceAsSubset::createOctree
void createOctree(const triSurf &, meshOctree &)
Definition: triSurfaceImportSurfaceAsSubset.C:41