Salome HOME
updated copyright message
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_BLSURF.hxx
index 167b7617f72bc1ddf3a5237a6f8be9b69e1663ea..c09b6ea2aa62e22104a7744bd33b84d9cb136398 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2023  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
@@ -67,7 +67,6 @@ extern "C"{
 #include <BRepClass_FaceClassifier.hxx>
 #include <BRepAdaptor_Surface.hxx>
 #include <BRepTools.hxx>
-#include <BRepAdaptor_HSurface.hxx>
 
 #include "BLSURFPlugin_Hypothesis.hxx"
 
@@ -98,6 +97,11 @@ public:
   static void FillEntryToShape( const BLSURFPlugin_Hypothesis*          hyp,
                                 std::map< std::string, TopoDS_Shape > & s2eMap );
 
+  virtual void SetEventListener(SMESH_subMesh* subMesh) override;
+  virtual void SubmeshRestored(SMESH_subMesh* subMesh) override;
+
+
+
   // List of ids
   typedef std::vector<int> TListOfIDs;
 
@@ -132,6 +136,16 @@ public:
   typedef std::vector< TEdgePeriodicityIDs > TEdgesIDsPeriodicityVector;
   typedef std::vector< TVertexPeriodicityIDs > TVerticesIDsPeriodicityVector;
 
+  // Point projection on FACE
+  typedef struct {
+    gp_XY        uv;
+    gp_XYZ       xyz;
+    TopAbs_State state;
+  } projectionPoint;
+
+  static projectionPoint getProjectionPoint(TopoDS_Face&  theFace,
+                                            const gp_Pnt& thePoint,
+                                            const bool    theAllowStateON=false);
 
 
 protected:
@@ -162,7 +176,6 @@ private:
 private:
   PyObject *          main_mod;
   PyObject *          main_dict;
-  SMESH_MesherHelper* myHelper;
 
   volatile bool _compute_canceled;
 };