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 triSurfaceDetectFeatureEdges
28 Divides the surface mesh into regions bounded by feature edges
31 triSurfaceDetectFeatureEdges.C
32 triSurfaceDetectFeatureEdgesFunctions.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef triSurfaceDetectFeatureEdges_H
37 #define triSurfaceDetectFeatureEdges_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class triSurfaceDetectFeatureEdges Declaration
49 \*---------------------------------------------------------------------------*/
51 class triSurfaceDetectFeatureEdges
54 //- reference to triSurf
57 //- detected feature edges
58 List<direction> featureEdges_;
61 scalar angleTolerance_;
63 // Private member functions
64 //- detect feature edges by check angle between the normals
65 //- of the two neighbouring facets
66 void detectFeatureEdgesAngleCriterion();
68 //- Disallow default bitwise copy construct
69 triSurfaceDetectFeatureEdges(const triSurfaceDetectFeatureEdges&);
71 //- Disallow default bitwise assignment
72 void operator=(const triSurfaceDetectFeatureEdges&);
78 //- Construct from triSurface and tolerance
79 triSurfaceDetectFeatureEdges
82 const scalar angleDeviation = 45.0
87 ~triSurfaceDetectFeatureEdges();
92 //- store regions in a graph
93 void detectFeatureEdges();
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 } // End namespace Foam
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 // ************************************************************************* //