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/>.
28 A partTet is a primitive needed during mesh smoothing
33 \*---------------------------------------------------------------------------*/
39 #include "pointField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 class partTet Declaration
52 \*---------------------------------------------------------------------------*/
67 //- Construct from point labels
85 inline label a() const;
87 inline label b() const;
89 inline label c() const;
91 inline label d() const;
93 inline label size() const;
96 //- find position of the node in the partTet
97 inline label whichPosition(const label) const;
101 //- Return face normal
102 template<class PointField>
103 inline vector Sa(const PointField&) const;
105 template<class PointField>
106 inline vector Sb(const PointField&) const;
108 template<class PointField>
109 inline vector Sc(const PointField&) const;
111 template<class PointField>
112 inline vector Sd(const PointField&) const;
116 template<class PointField>
117 inline scalar mag(const PointField&) const;
119 //- Return circum-centre
120 template<class PointField>
121 inline point crcmCentre(const PointField&) const;
123 template<class PointField>
124 inline scalar crcmRadius(const PointField&) const;
126 //- Return centroid of the tetrahedron
127 template<class PointField>
128 inline point centroid(const PointField&) const;
131 edgeList edges() const;
135 inline label operator[](const label) const;
137 inline void operator=(const partTet&);
139 // IOstream operators
141 friend Ostream& operator<<(Ostream&, const partTet&);
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 #include "partTetI.H"
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 // ************************************************************************* //