Salome HOME
Porting HEXABLOCK module on WIN32 platform.
[modules/hexablock.git] / src / HEXABLOCK / HexKas_functions.hxx
1 //
2 // CC++ : Representation Cascade d'un point
3 //
4 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef _KAS_FUNCTIONS_HXX
24 #define _KAS_FUNCTIONS_HXX
25
26 class gp_Pnt;
27
28 #include "Hex_defines.hxx"
29 #include "HexGlobale.hxx"
30
31 BEGIN_NAMESPACE_HEXA
32
33 int HEXABLOCKENGINE_EXPORT geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
34                                                double  bray,  double  bhaut,
35                                                double* sorig, double* snorm, double* sbase,
36                                                double  sray,  double  shaut);
37 int HEXABLOCKENGINE_EXPORT geom_asso_cylcyl (Edge* edge);
38
39 bool HEXABLOCKENGINE_EXPORT same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
40 void HEXABLOCKENGINE_EXPORT save_brep   (cpchar nom, string brep, int& nro);
41 void HEXABLOCKENGINE_EXPORT clean_brep  (string& brep);
42
43 void HEXABLOCKENGINE_EXPORT geom_make_brep  (TopoDS_Shape& shape, string& brep);
44 int  HEXABLOCKENGINE_EXPORT geom_brep2point (rcstring brep, double& px, double& py, double& pz);
45 int  HEXABLOCKENGINE_EXPORT geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
46
47 TopoDS_Shape HEXABLOCKENGINE_EXPORT geom_brep2shape (rcstring brep);
48
49 END_NAMESPACE_HEXA
50 #endif