//
// CC++ : Representation Cascade d'un point
//
-// Copyright (C) 2009-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#ifndef _KAS_FUNCTIONS_HXX
#define _KAS_FUNCTIONS_HXX
-#ifndef NO_CASCADE
+class gp_Pnt;
#include "HexGlobale.hxx"
-#include <gp_Pnt.hxx>
-#include <TopoDS_Shape.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepTools.hxx>
-
BEGIN_NAMESPACE_HEXA
-int geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
+int HexaExport geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
double bray, double bhaut,
double* sorig, double* snorm, double* sbase,
double sray, double shaut);
-int geom_asso_cylcyl (Edge* edge);
+int HexaExport geom_asso_cylcyl (Edge* edge);
+
+bool HexaExport same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
+void HexaExport save_brep (cpchar nom, std::string brep, int& nro);
+void HexaExport clean_brep (std::string& brep);
+
+void HexaExport geom_make_brep (TopoDS_Shape& shape, std::string& brep);
+int HexaExport geom_brep2point (rcstring brep, double& px, double& py, double& pz);
+int HexaExport geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
-bool same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
-void save_brep (cpchar nom, string brep, int& nro);
-void geom_make_brep (TopoDS_Shape& shape, string& brep);
+TopoDS_Shape HexaExport geom_brep2shape (rcstring brep);
END_NAMESPACE_HEXA
#endif
-#else // NO_CASCADE
-#endif // NO_CASCADE