1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | cfMesh: A library for mesh generation
5 \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6 \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of cfMesh.
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.
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
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/>.
25 triSurfaceImportSurfaceAsSubset
28 Creates a subset in the master surface consisting of facets which are
29 near the other surface
32 triSurfaceImportSurfaceAsSubset.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef triSurfaceImportSurfaceAsSubset_H
37 #define triSurfaceImportSurfaceAsSubset_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class triSurfaceImportSurfaceAsSubset Declaration
51 \*---------------------------------------------------------------------------*/
53 class triSurfaceImportSurfaceAsSubset
56 //- reference to triSurf
59 //- pointer to meshOctree, needed for searching on the master surface
60 meshOctree* octreePtr_;
62 // Private member functions
63 void createOctree(const triSurf&, meshOctree&);
65 //- Disallow default bitwise copy construct
66 triSurfaceImportSurfaceAsSubset(const triSurfaceImportSurfaceAsSubset&);
68 //- Disallow default bitwise assignment
69 void operator=(const triSurfaceImportSurfaceAsSubset&);
75 //- Construct from triSurf
76 triSurfaceImportSurfaceAsSubset(triSurf& surface);
80 ~triSurfaceImportSurfaceAsSubset();
85 //- finds the nearest faces in the surface to the import surf
86 //- and creates a subset
87 void addSurfaceAsSubset
89 const triSurf& importSurf,
90 const word& subsetName,
91 const scalar angleTol = 5.*M_PI/180.
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 } // End namespace Foam
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 // ************************************************************************* //