triSurfaceCopyParts.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  triSurfaceCopyParts
26 
27 Description
28  Copies user-selected surface parts into a new surface mesh
29 
30 SourceFiles
31  triSurfaceCopyParts.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef triSurfaceCopyParts_H
36 #define triSurfaceCopyParts_H
37 
38 #include "triSurf.H"
39 #include "boolList.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class triSurfaceCopyParts Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 {
52  // Private data
53  //- reference to triSurf
54  const triSurf& surf_;
55 
56  // Private member functions
57  //- mark facets which shall be copied
58  void markFacetsForCopying(const wordList&, boolList&) const;
59 
60  //- copies data to a new surface mesh
61  void copySurfaceMesh(const boolList&, triSurf&) const;
62 
63  //- Disallow default bitwise copy construct
65 
66  //- Disallow default bitwise assignment
67  void operator=(const triSurfaceCopyParts&);
68 
69 public:
70 
71  // Constructors
72 
73  //- Construct from octree
75 
76  // Destructor
77 
79 
80 
81  // Member Functions
82 
83  //- copies selected patches/subsets to an already created mesh
84  void copySurface(const wordList&, triSurf&) const;
85 
86  //- creates a new surface mesh and copies selected patches/subsets
87  triSurf* copySurface(const wordList&) const;
88 };
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 } // End namespace Foam
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 #endif
97 
98 // ************************************************************************* //
Foam::triSurfaceCopyParts::triSurfaceCopyParts
triSurfaceCopyParts(const triSurfaceCopyParts &)
Disallow default bitwise copy construct.
triSurf.H
boolList.H
Foam::triSurfaceCopyParts::surf_
const triSurf & surf_
reference to triSurf
Definition: triSurfaceCopyParts.H:53
Foam::triSurfaceCopyParts::markFacetsForCopying
void markFacetsForCopying(const wordList &, boolList &) const
mark facets which shall be copied
Definition: triSurfaceCopyParts.C:39
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::triSurfaceCopyParts::~triSurfaceCopyParts
~triSurfaceCopyParts()
Definition: triSurfaceCopyParts.C:280
Foam::triSurfaceCopyParts::operator=
void operator=(const triSurfaceCopyParts &)
Disallow default bitwise assignment.
Foam::surface
Definition: surface.H:55
Foam::triSurfaceCopyParts
Definition: triSurfaceCopyParts.H:49
Foam::triSurfaceCopyParts::copySurfaceMesh
void copySurfaceMesh(const boolList &, triSurf &) const
copies data to a new surface mesh
Definition: triSurfaceCopyParts.C:98
Foam::triSurfaceCopyParts::copySurface
void copySurface(const wordList &, triSurf &) const
copies selected patches/subsets to an already created mesh
Definition: triSurfaceCopyParts.C:285
Foam::triSurf
Definition: triSurf.H:59