Commit Graph

1821 Commits

Author SHA1 Message Date
dmv
8ef6ac2097 0020378: EDF 1042 SMESH : Gui of SMESH hypothesis not multi-study 2009-09-11 11:37:47 +00:00
eap
53254ff3ed untabify 2009-09-10 16:11:08 +00:00
eap
0244669837 untabify 2009-09-10 15:29:29 +00:00
ptv
4ce8e26285 0020105: EDF 862 SMESH : Creation of the skin elements (2D) of a 3D Mesh 2009-09-10 12:57:35 +00:00
eap
9c4c09606e untabify 2009-09-10 12:51:28 +00:00
ptv
a44eb77228 0020105: EDF 862 SMESH : Creation of the skin elements (2D) of a 3D Mesh 2009-09-10 12:40:55 +00:00
eap
c062549cea echo ---------------------------------------------
-echo Coniguring production
+echo Configuring production
 echo ---------------------------------------------
 echo
 AC_ENABLE_DEBUG(yes)
2009-09-10 11:11:30 +00:00
eap
525249fdfb unatbify 2009-09-10 11:06:18 +00:00
eap
99e3564a09 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
+#include <limits>
2009-09-10 08:10:41 +00:00
eap
e4bbd9cf6a - CORBA::Long SMESH_MeshEditor_i::FindNodeClosestTo(CORBA::Double x,
-                                                    CORBA::Double y,
-                                                    CORBA::Double z);
+  CORBA::Long FindNodeClosestTo(CORBA::Double x,
+                                CORBA::Double y,
+                                CORBA::Double z);
2009-09-10 08:07:28 +00:00
eap
7e8c1c603d untabify 2009-09-10 07:19:24 +00:00
ptv
35c05cab65 0020105: EDF 862 SMESH : Creation of the skin elements (2D) of a 3D Mesh 2009-09-10 06:59:27 +00:00
eap
8772f598d6 untabify 2009-09-10 06:50:30 +00:00
eap
c15f8d1936 - some memory leaks 2009-09-10 06:02:38 +00:00
eap
38fb650b9e 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates

     def FindNodeClosestTo(self, x, y, z):
-        preview = self.mesh.GetMeshEditPreviewer()
-        return preview.MoveClosestNodeToPoint(x, y, z, -1)
+        #preview = self.mesh.GetMeshEditPreviewer()
+        #return preview.MoveClosestNodeToPoint(x, y, z, -1)
+        return self.editor.FindNodeClosestTo(x, y, z)

+    ## Finds the elements where a point lays IN or ON
+    #  @param x  the X coordinate of a point
+    #  @param y  the Y coordinate of a point
+    #  @param z  the Z coordinate of a point
+    #  @param elementType type of elements to find (SMESH.ALL type
+    #         means elements of any type excluding nodes and 0D elements)
+    #  @return list of IDs of found elements
+    #  @ingroup l2_modif_throughp
+    def FindElementsByPoint(self, x, y, z, elementType = SMESH.ALL):
+        return self.editor.FindElementsByPoint(x, y, z, elementType)
+
2009-09-10 05:54:04 +00:00
eap
7756cec8c7 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
+    /*!
+     * Return ID of node closest to a given point
+     */
+    long FindNodeClosestTo(in double x, in double y, in double z);
+

0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates

+    /*!
+     * 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
+     */
+    long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type);
+
2009-09-10 05:52:11 +00:00
eap
7512099966 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates

optimize for performance
2009-09-10 05:49:16 +00:00
eap
58a4d3cca6 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
+    /*!
+     * Return ID of node closest to a given point
+     */
+    long FindNodeClosestTo(in double x, in double y, in double z);
+

0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates

+    /*!
+     * 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
+     */
+    long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type);
+
2009-09-10 05:40:45 +00:00
eap
0f2c407672 0020464: EDF 1100 SMESH: Performance issue of the function MoveNode
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;
 };

0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates

+//=======================================================================
+/*!
+ * \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;
+};
2009-09-10 05:29:55 +00:00
eap
ba741219df 0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates
+  bool IsOut(double X, double Y, double Z, double tol);
+  // Classify a point
2009-09-10 05:19:01 +00:00
eap
ec71bd93d2 untabify 2009-09-09 06:17:26 +00:00
asl
1f8dc8762c PAL20378 2009-09-04 08:21:40 +00:00
ouv
5ff23c3748 To avoid memory leaks 2009-09-03 08:50:15 +00:00
ouv
bcbdd40a30 To avoid memory leaks 2009-09-03 08:18:11 +00:00
ouv
2c26db46be Removed as obsolete 2009-09-02 10:53:52 +00:00
ptv
2fa6f3c92b remove compilation error on Windows 2009-09-01 06:56:48 +00:00
ptv
8a7fc527d7 remove compilation error on Windows 2009-09-01 03:53:08 +00:00
eap
db647c3bf2 unused variables 2009-08-27 14:09:43 +00:00
eap
30aaa793b9 fix GetSubMesh()
if ( it.More() )
+    {
       index = _myMeshDS->AddCompoundSubmesh( aSubShape, it.Value().ShapeType() );
+      if ( index > _nbSubShapes ) _nbSubShapes = index; // not to create sm for this group again
+    }
   }
2009-08-27 13:58:53 +00:00
eap
7dba98132c fix SetEventListener() for the case of groups 2009-08-27 13:56:40 +00:00
eap
526c49467f 0020108: EDF 852 SMESH : Add examples in projection algorithm doc
Add Projection 1D sample
2009-08-27 13:55:31 +00:00
eap
a04b947563 0020108: EDF 852 SMESH : Add examples in projection algorithm doc
minor changes
2009-08-27 12:41:45 +00:00
eap
e9f50eef1a 0020108: EDF 852 SMESH : Add examples in projection algorithm doc
+<br><b>See Also</b> a sample TUI Script of a
+\ref tui_projection "Projection Algorithms".
+
2009-08-27 12:41:22 +00:00
eap
a483ff55f4 0020108: EDF 852 SMESH : Add examples in projection algorithm doc
+\anchor tui_projection
+<h3>Projection algorithms</h3>
+
+\code
+ ...
2009-08-27 11:56:45 +00:00
eap
037d3f1a0c untabify 2009-08-27 10:45:29 +00:00
eap
e069a4fc65 fix MakeMeshOnFxy1(): set medium nodes to the Fxy1 face instead of volume 2009-08-27 10:43:10 +00:00
ptv
20a656158d 0020095: EDF 896 SMESH : Advanced Mesh info on a group
correct Mesh Info statistic for sub-mesh objects
2009-08-27 10:27:17 +00:00
skl
72b7497557 Remove not needed "cout". 2009-08-27 08:10:02 +00:00
skl
3add66f219 Integration improvements 0020310 and 0020431. 2009-08-27 07:26:22 +00:00
jfa
874fdebf62 Bug 0020403: Clear mesh data doen't 'free' the memory. 2009-08-27 06:22:59 +00:00
dmv
df30a6d6f6 IPAL21303 ex15_cyl2geometry: mesh computation failed 2009-08-25 13:14:23 +00:00
maintenance team
412cf7721a Update of SMESH gui documentation 2009-08-25 12:33:17 +00:00
dmv
0913edc2fc IPAL21340 Compute leads to Unknown Exception if No available data in selection. 2009-08-25 08:31:07 +00:00
ptv
7d36523b6a 0019296: EDF 681 SMESH
Add Evaluate into pop-up menu
2009-08-25 07:41:51 +00:00
ptv
40b2818f18 0019296: EDF 681 SMESH - Pre-evaluation of the number of elements before mesh
Replace hard coded values of element types by new enumeration (added in advanced mesh info Improvement)
2009-08-25 05:18:16 +00:00
dmv
96777f9e35 Editing hypothesis bug... 2009-08-24 11:31:32 +00:00
eap
53d936f2cd untabify 2009-08-24 08:45:30 +00:00
eap
7da5ad9632 untabify 2009-08-24 07:27:17 +00:00
vsr
d7f0a306f9 Fix crash in Filter_i::GetIDs() after Filter_i::SetMesh() function call 2009-08-21 09:22:45 +00:00
vsr
6b1e25a667 Issue 20406: Time compilation when recompiling 2009-08-21 08:26:46 +00:00