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 triSurfaceClassifyEdges
28 Divides the surface mesh into regions bounded by feature edges
31 triSurfaceClassifyEdges.C
32 triSurfaceClassifyEdgesFunctions.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef triSurfaceClassifyEdges_H
37 #define triSurfaceClassifyEdges_H
42 #include "direction.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 //- Forward declarations
52 /*---------------------------------------------------------------------------*\
53 Class triSurfaceClassifyEdges Declaration
54 \*---------------------------------------------------------------------------*/
56 class triSurfaceClassifyEdges
59 //- reference to meshOctree
60 const meshOctree& octree_;
62 //- flags for surface edges
63 List<direction> edgeTypes_;
65 //- orientation of facet's normal (0 - unknown, 1- outward, 2- inward)
66 List<direction> facetOrientation_;
68 // Private member functions
69 //- check the orientation of the patches in the triangulated surface
70 void checkOrientation();
72 //- classify edges based on the orientation of the surface facets
73 void classifyEdgesTypes();
75 //- Disallow default bitwise copy construct
76 triSurfaceClassifyEdges(const triSurfaceClassifyEdges&);
78 //- Disallow default bitwise assignment
79 void operator=(const triSurfaceClassifyEdges&);
96 //- Construct from octree
97 triSurfaceClassifyEdges(const meshOctree& octree);
101 ~triSurfaceClassifyEdges();
106 //- return the edge type according to the above enumerator
107 inline direction edgeType(const label edgeI) const
109 return edgeTypes_[edgeI];
112 //- return the list of edge classification
113 const List<direction>& edgeTypes() const;
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //