4 // Copyright (C) 2009-2013 CEA/DEN, EDF R&D
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #include "HexElements.hxx"
24 #include "HexDocument.hxx"
25 #include "HexVector.hxx"
26 #include "HexVertex.hxx"
27 #include "HexHexa.hxx"
28 #include "HexEdge.hxx"
29 #include "HexGlobale.hxx"
30 #include "HexCylinder.hxx"
36 // ====================================================== makeCartesianGrid
37 int Elements::makeCartesianGrid (Vertex* orig, Vector* v1, Vector* v2,
38 Vector* v3, int px, int py, int pz, int mx, int my, int mz)
42 // ====================================================== makeCartesianNodes
43 int Elements::makeCartesianNodes (Vertex* orig, Vector* v1, Vector* v2,
44 Vector* v3, int px, int py, int pz, int mx, int my, int mz)
48 // ====================================================== makeBasicCylinder
49 int Elements::makeBasicCylinder (double dr, double da, double dl, int nr,
50 int na, int nl, bool fill)
54 // ====================================================== transfoVertices
55 void Elements::transfoVertices (Vertex* orig, Vector* base, Vector* haut)
58 // ====================================================== transfoVertices
59 void Elements::transfoVertices (Vertex* orig, Vector* iprim, Vector* jprim,
63 // ====================================================== makeSphericalGrid
64 int Elements::makeSphericalGrid (Vertex* c, double rayon, int nb, double k)
68 // ====================================================== makeSphericalGrid
69 // ==== Deja perimee en Hexa5
70 int Elements::makeSphericalGrid (Vertex* c, Vector* dv, int nb, double k)
74 // ====================================================== addStrate
75 int Elements::addStrate (Quad* i_quad[], Edge* i_edge[], Vertex* i_node[],
76 Vertex* center, double lambda)
80 // ====================================================== makeCylinder
81 int Elements::makeCylinder (Cylinder* cyl, Vector* vx, int nr, int na, int nl)
85 // ====================================================== makePipe
86 int Elements::makePipe (Cylinder* cyl, Vector* vx, int nr, int na, int nl)
91 // ---------------------------------------- prism Quads
93 // ====================================================== prismQuads
94 int Elements::prismQuads (Quads& tstart, Vector* dir, int nbiter)
98 // ====================================================== prismQuadsVec
99 int Elements::prismQuadsVec (Quads& tstart, Vector* dir, RealVector& tlen,
104 // ======================================================== revolutionQuads
105 int Elements::revolutionQuads (Quads& start, Vertex* center, Vector* axis,
110 // ====================================================== joinQuads
111 int Elements::joinQuads (Quads& orig, int nb, Vertex* v1, Vertex* v2,
112 Vertex* v3, Vertex* v4, Quad* cible)
116 // ====================================================== makeCylindricalGrid
117 // ==== Version avec vecteurs --> TODO DELETE ????
118 int Elements::makeCylindricalGrid (Vertex* orig, Vector* base, Vector* haut,
119 RealVector& tdr, RealVector& tda, RealVector& tdh,
124 // ====================================================== makeCylindricalGrid
125 int Elements::makeCylindricalGrid (Vertex* c, Vector* b, Vector* h,
126 double dr, double da, double dl, int nr, int na, int nl, bool fill)