Forward compatibility: flex
[foam-extend-3.2.git] / src / mesh / cfMesh / utilities / triSurfaceTools / triSurfaceImportSurfaceAsSubset / triSurfaceImportSurfaceAsSubset.H
blob3b3e70069d6df992f9ebe94cbdd5f965f472f362
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.
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
19     for more details.
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/>.
24 Class
25     triSurfaceImportSurfaceAsSubset
27 Description
28     Creates a subset in the master surface consisting of facets which are
29     near the other surface
31 SourceFiles
32     triSurfaceImportSurfaceAsSubset.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef triSurfaceImportSurfaceAsSubset_H
37 #define triSurfaceImportSurfaceAsSubset_H
39 #include "triSurf.H"
40 #include "boolList.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 class meshOctree;
49 /*---------------------------------------------------------------------------*\
50              Class triSurfaceImportSurfaceAsSubset Declaration
51 \*---------------------------------------------------------------------------*/
53 class triSurfaceImportSurfaceAsSubset
55     // Private data
56         //- reference to triSurf
57         triSurf& surf_;
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&);
71 public:
73     // Constructors
75         //- Construct from triSurf
76         triSurfaceImportSurfaceAsSubset(triSurf& surface);
78     // Destructor
80         ~triSurfaceImportSurfaceAsSubset();
83     // Member Functions
85         //- finds the nearest faces in the surface to the import surf
86         //- and creates a subset
87         void addSurfaceAsSubset
88         (
89             const triSurf& importSurf,
90             const word& subsetName,
91             const scalar angleTol = 5.*M_PI/180.
92         );
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 } // End namespace Foam
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 #endif
103 // ************************************************************************* //