Salome HOME
b71a7badb4c7642067e2bd699a1d47c6eb25f039
[modules/hexablock.git] / src / HEXABLOCK / HexKas_functions.hxx
1 //
2 // CC++ : Representation Cascade d'un point
3 //
4 // Copyright (C) 2009-2023  CEA, EDF
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, or (at your option) any later version.
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 "HexGlobale.hxx"
29
30 BEGIN_NAMESPACE_HEXA
31
32 int HexaExport geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
33                         double  bray,  double  bhaut,
34                         double* sorig, double* snorm, double* sbase,
35                         double  sray,  double  shaut);
36 int HexaExport geom_asso_cylcyl (Edge* edge);
37
38 bool HexaExport same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
39 void HexaExport save_brep   (cpchar nom, std::string brep, int& nro);
40 void HexaExport clean_brep  (std::string& brep);
41
42 void HexaExport geom_make_brep  (TopoDS_Shape& shape, std::string& brep);
43 int  HexaExport geom_brep2point (rcstring brep, double& px, double& py, double& pz);
44 int  HexaExport geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
45
46 TopoDS_Shape HexaExport geom_brep2shape (rcstring brep);
47
48 END_NAMESPACE_HEXA
49 #endif