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 surfaceMeshGeometryModification
28 Modifies geometry of surface meshes according to the anisotropic sources
32 surfaceMeshGeometryModification.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef surfaceMeshGeometryModification_H
37 #define surfaceMeshGeometryModification_H
39 #include "coordinateModification.H"
42 #include "coordinateModifier.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class surfaceMeshGeometryModification Declaration
54 \*---------------------------------------------------------------------------*/
56 class surfaceMeshGeometryModification
59 //- reference to triSurf
62 //- length of box sides
63 const dictionary& meshDict_;
65 //- contruct coordinate modification
66 coordinateModifier* coordinateModifierPtr_;
68 //- is mofdification active
69 bool modificationActive_;
72 // Private member functions
73 //- check existence of geometry modifiers
74 void checkModification();
76 //- disallow bitwise copy construct
77 surfaceMeshGeometryModification(const surfaceMeshGeometryModification&);
79 //- disallow bitwise assignment
80 void operator=(const surfaceMeshGeometryModification&);
86 //- Construct from triSurf and dictionary
87 surfaceMeshGeometryModification(const triSurf&, const dictionary&);
90 ~surfaceMeshGeometryModification();
94 //- is geometry modification active
95 bool activeModification() const;
97 //- modify coordinates
98 const triSurf* modifyGeometry() const;
100 //- revert geometry modification
101 const triSurf* revertGeometryModification() const;
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 } // End namespace Foam
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 // ************************************************************************* //