Salome HOME
0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates
authoreap <eap@opencascade.com>
Thu, 10 Sep 2009 05:26:37 +0000 (05:26 +0000)
committereap <eap@opencascade.com>
Thu, 10 Sep 2009 05:26:37 +0000 (05:26 +0000)
commit87c44795ca6c075bf5c3f493a1d106421ac8e142
tree43483a81f01674c581608315a6ab16e16d9d9edf
parent83d5987296c94602683f0982b2c8c8a0f5ee8fd3
0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates
1) merge with V5_1_main
2)
 struct SMESH_NodeSearcher
 {
   virtual const SMDS_MeshNode* FindClosestTo( const gp_Pnt& pnt ) = 0;
+  virtual void MoveNode( const SMDS_MeshNode* node, const gp_Pnt& toPnt ) = 0;
 };

+//=======================================================================
+/*!
+ * \brief Return elements of given type where the given point is IN or ON.
+ *
+ * 'ALL' type means elements of any type excluding nodes and 0D elements
+ */
+//=======================================================================
+
+struct SMESH_ElementSearcher
+{
+  virtual void FindElementsByPoint(const gp_Pnt&                           point,
+                                   SMDSAbs_ElementType                     type,
+                                   std::vector< const SMDS_MeshElement* >& foundNodes)=0;
+};
src/SMESH/SMESH_MeshEditor.cxx
src/SMESH/SMESH_MeshEditor.hxx