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 triSurfacePatchManipulator
28 Generates patches in the surface mesh based
29 on the user-selected feature edges
32 triSurfacePatchManipulator.C
33 triSurfacePatchManipulatorFunctions.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef triSurfacePatchManipulator_H
38 #define triSurfacePatchManipulator_H
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class triSurfacePatchManipulator Declaration
50 \*---------------------------------------------------------------------------*/
52 class triSurfacePatchManipulator
55 //- const reference to triSurf
58 //- detected feature edges
59 List<direction> featureEdges_;
62 labelList facetInPatch_;
68 wordList newPatchNames_;
71 wordList newPatchTypes_;
73 // Private member functions
74 //- allocate and fill the feature edges list
75 void allocateFeatureEdges();
77 //- create patches bounded by a set of feature edges
80 //- Disallow default bitwise copy construct
81 triSurfacePatchManipulator(const triSurfacePatchManipulator&);
83 //- Disallow default bitwise assignment
84 void operator=(const triSurfacePatchManipulator&);
90 //- Construct from triSurface
91 triSurfacePatchManipulator(const triSurf& surface);
95 ~triSurfacePatchManipulator();
100 void detectedSurfaceRegions(VRWGraph&) const;
102 //- store regions into subsets with a given prefix
103 const triSurf* surfaceWithPatches
105 IOdictionary* meshDictPtr = NULL,
106 const word prefix = "patch_",
107 const bool forceOverwrite = false
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 // ************************************************************************* //