]> SALOME platform Git repositories - modules/smesh.git/log
Salome HOME
modules/smesh.git
12 years ago0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF
eap [Mon, 2 Jul 2012 13:26:36 +0000 (13:26 +0000)]
0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF

 struct SMESH_TNodeXYZ : public gp_XYZ
 {
+  double               _xyz[3];

12 years ago0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF
eap [Mon, 2 Jul 2012 13:25:53 +0000 (13:25 +0000)]
0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF

Enable IsQuadraticSubMesh() work with compounds

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Mon, 2 Jul 2012 08:08:57 +0000 (08:08 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+ reorient_faces_point.png \
+ reorient_faces_face.png

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:58:07 +0000 (13:58 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:56:49 +0000 (13:56 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+ reorient_faces_point.png \
+ reorient_faces_face.png

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:56:13 +0000 (13:56 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+    def Reorient2D(self, the2DObject, theDirection, theFaceOrPoint ):

12 years agoremove commented code
eap [Fri, 29 Jun 2012 13:55:31 +0000 (13:55 +0000)]
remove commented code

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:54:55 +0000 (13:54 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+ SMESHGUI_ReorientFacesDlg.h \

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:53:54 +0000 (13:53 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+    long Reorient2D(in SMESH_IDSource the2Dgroup,
+                    in DirStruct      theDirection,
+                    in long           theFace,
+                    in PointStruct    thePoint) raises (SALOME::SALOME_Exception);

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:47:33 +0000 (13:47 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

+  // Return height of the tree, full or from this level to topest leaf
+  int                    getHeight(const bool full=true) const;

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:47:05 +0000 (13:47 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

namespace SMESHUtils
{
+  template <class TVECTOR>
+  void CompactVector(TVECTOR& vec)
}

12 years ago0021542: EDF 1699 SMESH: Reorient a group of faces
eap [Fri, 29 Jun 2012 13:46:17 +0000 (13:46 +0000)]
0021542: EDF 1699 SMESH: Reorient a group of faces

  a general treatment of sub-meshes passed as arguments not to move
  their creation at script end

+  void _pyGen::PlaceSubmeshAfterItsCreation( Handle(_pyCommand) theCmdUsingSubmesh ) const;
+  static bool _pySubMesh::CanBeArgOfMethod(const _AString& theMethodName);

12 years ago+ CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
eap [Fri, 29 Jun 2012 13:43:18 +0000 (13:43 +0000)]
+  CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
+                         const SMESH::DirStruct&   theDirection,
+                         CORBA::Long               theFace,
+                         const SMESH::PointStruct& thePoint) throw (SALOME::SALOME_Exception);

12 years ago struct SMESH_ElementSearcher
eap [Fri, 29 Jun 2012 13:41:37 +0000 (13:41 +0000)]
 struct SMESH_ElementSearcher
 {
+  virtual const SMDS_MeshElement* FindClosestTo( const gp_Pnt&       point,
+                                                 SMDSAbs_ElementType type) = 0;
 }
+  int Reorient2D (TIDSortedElemSet &       theFaces,
+                  const gp_Dir&            theDirection,
+                  const SMDS_MeshElement * theFace);

+  static double GetDistance( const SMDS_MeshFace* face, const gp_Pnt& point );

+  void ElementBndBoxTree::getElementsInSphere ( const gp_XYZ&     center,
+                                                const double      radius,
+                                                TIDSortedElemSet& foundElems)

12 years ago struct SMESH_ElementSearcher
eap [Fri, 29 Jun 2012 13:40:11 +0000 (13:40 +0000)]
 struct SMESH_ElementSearcher
 {
+  virtual const SMDS_MeshElement* FindClosestTo( const gp_Pnt&       point,
+                                                 SMDSAbs_ElementType type) = 0;
 }
+  int Reorient2D (TIDSortedElemSet &       theFaces,
+                  const gp_Dir&            theDirection,
+                  const SMDS_MeshElement * theFace);

+  static double GetDistance( const SMDS_MeshFace* face, const gp_Pnt& point );

12 years ago0021669: EDF 2262 SMESH: "Mesh information" takes a long time on small mesh with...
vsr [Wed, 20 Jun 2012 14:54:14 +0000 (14:54 +0000)]
0021669: EDF 2262 SMESH: "Mesh information" takes a long time on small mesh with joint elements

12 years agoAvoid synchronization with geom groups when closing a study
eap [Wed, 20 Jun 2012 12:25:16 +0000 (12:25 +0000)]
Avoid synchronization with geom groups when closing a study

+  void setCurrentStudy( SALOMEDS::Study_ptr theStudy,
+                        bool                theStudyIsBeingClosed=false);

12 years agoIPAL22856 2D quadrangle mesher of reduced type works wrong
eap [Fri, 8 Jun 2012 10:45:42 +0000 (10:45 +0000)]
IPAL22856 2D quadrangle mesher of reduced type works wrong
     change algorithm as requested by IPAL22856 - care of symmetry

12 years agoIPAL22856 2D quadrangle mesher of reduced type works wrong
eap [Fri, 8 Jun 2012 07:27:26 +0000 (07:27 +0000)]
IPAL22856 2D quadrangle mesher of reduced type works wrong
          refactoring ComputeReduced(), but algorithm still remains the same

12 years ago- SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0);
eap [Fri, 8 Jun 2012 07:06:43 +0000 (07:06 +0000)]
-  SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0);
+  SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0, double u=0., double v=0.);

12 years agoFix for compilation with gcc 4.7
gdd [Thu, 7 Jun 2012 11:26:44 +0000 (11:26 +0000)]
Fix for compilation with gcc 4.7

12 years agoMerge from V6_5_BR 05/06/2012
vsr [Tue, 5 Jun 2012 12:18:07 +0000 (12:18 +0000)]
Merge from V6_5_BR 05/06/2012

12 years agoPorting documentation on the Doxygen-1.8.0 V6_5_0a1
rnv [Thu, 12 Apr 2012 07:15:03 +0000 (07:15 +0000)]
Porting documentation on the Doxygen-1.8.0

12 years ago0021540: [CEA] Internal test fails : prisms
eap [Wed, 11 Apr 2012 14:34:04 +0000 (14:34 +0000)]
0021540: [CEA] Internal test fails : prisms

   Fix FindMatchingNodesOnFaces() for spheres ( DeuxSpheres.py )

12 years ago0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
eap [Wed, 11 Apr 2012 13:10:03 +0000 (13:10 +0000)]
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds

   Fix for the case of no vertex association

12 years ago0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
eap [Wed, 11 Apr 2012 13:08:52 +0000 (13:08 +0000)]
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds

+  static std::string GeomObjectToEntry(GEOM::GEOM_Object_ptr&  theGeomObject);

12 years ago0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes
eap [Wed, 11 Apr 2012 08:35:01 +0000 (08:35 +0000)]
0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes

 correct isClosedChainOfSides()

12 years ago0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
eap [Wed, 11 Apr 2012 08:23:17 +0000 (08:23 +0000)]
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds

keep entries of shapes to be able to return a correct GEOM_Object in
case if it is published several times with different names

12 years ago0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
eap [Wed, 11 Apr 2012 08:20:17 +0000 (08:20 +0000)]
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds

+  static GEOM::GEOM_Object_ptr EntryOrShapeToGeomObject (const std::string&  theEntry,
+                                                         const TopoDS_Shape& theShape);

+  static void SaveToStream( const std::string& studyEntry, std::ostream & stream);

12 years ago0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
eap [Wed, 11 Apr 2012 08:19:09 +0000 (08:19 +0000)]
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds

     In GetGroupSubMeshesContaining() preview a case where the main
     shape is a group

12 years agosome decorations
eap [Tue, 10 Apr 2012 10:10:11 +0000 (10:10 +0000)]
some decorations

12 years ago0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
eap [Tue, 10 Apr 2012 10:09:32 +0000 (10:09 +0000)]
0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm

   not create excess edges on the seam edge

12 years ago0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
eap [Tue, 10 Apr 2012 10:06:23 +0000 (10:06 +0000)]
0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm

   fix merging nodes in case 1D-2D projection of the colsed face (care
   of nodes on the seam edge)

12 years ago0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes
eap [Mon, 9 Apr 2012 15:40:23 +0000 (15:40 +0000)]
0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes

+   bool isClosedChainOfSides(...)

12 years agoPorting SMESH Plugins on Win32 platform.
rnv [Wed, 28 Mar 2012 14:37:07 +0000 (14:37 +0000)]
Porting  SMESH Plugins on Win32 platform.

12 years agoFix misspell
gdd [Wed, 28 Mar 2012 09:12:26 +0000 (09:12 +0000)]
Fix misspell

12 years ago0021308: EDF 1923 SMESH: Remove hard-coded dependency of the external mesh plugins...
rnv [Tue, 27 Mar 2012 12:52:59 +0000 (12:52 +0000)]
0021308: EDF 1923 SMESH: Remove hard-coded dependency of the external mesh plugins from the SMESH module: Update documentation.

12 years agoAvoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog.
rnv [Tue, 27 Mar 2012 09:52:22 +0000 (09:52 +0000)]
Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog.

12 years ago0021515: EDF 2169 SMESH: groups not in OB
vsr [Fri, 23 Mar 2012 14:42:48 +0000 (14:42 +0000)]
0021515: EDF 2169 SMESH: groups not in OB

12 years agoPR: reorganise smesh plugins and correct MeshCut when there are groups
prascle [Fri, 23 Mar 2012 13:13:21 +0000 (13:13 +0000)]
PR: reorganise smesh plugins and correct MeshCut when there are groups

12 years agofix raising exception in algoCreator.__call__()
eap [Fri, 23 Mar 2012 11:55:39 +0000 (11:55 +0000)]
fix raising exception in algoCreator.__call__()

12 years ago0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
eap [Fri, 23 Mar 2012 09:52:28 +0000 (09:52 +0000)]
0021517: Bad filter dumped when hdf study from previous version of Salome is loaded

  set "Compare" to FT_EqualTo instead of FT_Undefined

12 years ago0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
eap [Fri, 23 Mar 2012 09:11:25 +0000 (09:11 +0000)]
0021517: Bad filter dumped when hdf study from previous version of Salome is loaded

   clear re-setting filters to group

12 years agoAdd functions to know that SALOME module version is development one
vsr [Thu, 22 Mar 2012 15:44:43 +0000 (15:44 +0000)]
Add functions to know that SALOME module version is development one

12 years ago0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
eap [Thu, 22 Mar 2012 14:10:37 +0000 (14:10 +0000)]
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

   In GetSourceSubMeshes(), fix getting a main sub-mesh of a not loaded mesh

12 years ago0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
eap [Thu, 22 Mar 2012 14:09:13 +0000 (14:09 +0000)]
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

   loadDependentMeshes() before algo->Compute()

12 years agoprecise error messages
eap [Thu, 22 Mar 2012 12:42:58 +0000 (12:42 +0000)]
precise error messages

12 years ago0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole
eap [Thu, 22 Mar 2012 11:54:46 +0000 (11:54 +0000)]
0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole

1)   re-fix after optimization (attempt #2)
2)   fix protection from not thread safe shapes

12 years ago0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole
eap [Thu, 22 Mar 2012 08:58:34 +0000 (08:58 +0000)]
0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole

   re-fix after optimization

12 years ago0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
eap [Wed, 21 Mar 2012 15:55:38 +0000 (15:55 +0000)]
0021517: Bad filter dumped when hdf study from previous version of Salome is loaded

+  void fixFunctorType(...)

12 years agoIn Extrusion dialog, the distance was troncated to the lower integer. With a distance...
gdd [Wed, 21 Mar 2012 15:41:10 +0000 (15:41 +0000)]
In Extrusion dialog, the distance was troncated to the lower integer. With a distance <1, the extrusion vector size was zero.

12 years ago0021526: EDF 1855 SMESH: Regression in the Radial Quadrangle hypothesis
eap [Wed, 21 Mar 2012 10:22:32 +0000 (10:22 +0000)]
0021526: EDF 1855 SMESH: Regression in the Radial Quadrangle hypothesis

  fix algoCreator.__call__()

12 years ago0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
eap [Wed, 21 Mar 2012 09:03:12 +0000 (09:03 +0000)]
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

  performance optimization using tbb

12 years ago0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
eap [Wed, 21 Mar 2012 09:02:23 +0000 (09:02 +0000)]
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

+if WITH_TBB
+  libStdMeshers_la_CPPFLAGS += $(TBB_INCLUDES)
+  libStdMeshers_la_LDFLAGS  += $(TBB_LIBS)
+endif

12 years ago0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
eap [Wed, 21 Mar 2012 09:02:04 +0000 (09:02 +0000)]
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

   in SMESH_TNodeXYZ use thread safe getting node coords

12 years agountabify
eap [Wed, 21 Mar 2012 09:01:05 +0000 (09:01 +0000)]
untabify

12 years ago0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
eap [Wed, 21 Mar 2012 09:00:38 +0000 (09:00 +0000)]
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

+  void   GetXYZ(double xyx[3]) const; // thread safe getting coords

12 years ago0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
eap [Wed, 21 Mar 2012 08:26:09 +0000 (08:26 +0000)]
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

+CHECK_TBB

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Mon, 19 Mar 2012 16:40:29 +0000 (16:40 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
-  if ( !varName.isEmpty() )
+  if ( varName.isEmpty() )

12 years ago0021522: EDF 573 SMESH: Regression in RotationSweep
eap [Mon, 19 Mar 2012 14:55:51 +0000 (14:55 +0000)]
0021522: EDF 573 SMESH: Regression in RotationSweep

-        MaxAngle,Parameters = ParseAngles(MaxAngle)
+        MaxAngle,Parameters,hasVars = ParseAngles(MaxAngle)

12 years ago0021521: EDF 317 SMESH: Regression in Wire_Discretisation LengthNearVertex hypotesis
eap [Mon, 19 Mar 2012 14:50:26 +0000 (14:50 +0000)]
0021521: EDF 317 SMESH: Regression in Wire_Discretisation LengthNearVertex hypotesis

+from smesh import GetName, TreatHypoStatus

12 years ago0021520: EDF 522 SMESH: Regression in MirrorMakeMesh
eap [Mon, 19 Mar 2012 14:31:57 +0000 (14:31 +0000)]
0021520: EDF 522 SMESH: Regression in MirrorMakeMesh

-        mesh.SetParameters(Mirror.parameters)
+        self.mesh.SetParameters(Mirror.parameters)

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Mon, 19 Mar 2012 12:32:35 +0000 (12:32 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
   adjust _pyHypothesisReader() for HexoticPLUGIN_ROOT_DIR but not HEXOTICPLUGIN_ROOT_DIR

12 years ago0020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement
eap [Fri, 16 Mar 2012 16:38:19 +0000 (16:38 +0000)]
0020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement
     In MakeBoundaryMesh(), try to set new elements to a shape

12 years agoUpdate messages en/fr while loading a mesh data
gdd [Thu, 15 Mar 2012 16:50:26 +0000 (16:50 +0000)]
Update messages en/fr while loading a mesh data

12 years ago0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file contai...
vsr [Thu, 15 Mar 2012 16:10:52 +0000 (16:10 +0000)]
0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Show message in the status bar on mesh loading operation

12 years ago0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file contai...
vsr [Thu, 15 Mar 2012 15:43:52 +0000 (15:43 +0000)]
0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Change message format

12 years ago0020463: EDF 1099 SMESH: performance regression from V4 to V5
eap [Thu, 15 Mar 2012 12:14:52 +0000 (12:14 +0000)]
0020463: EDF 1099 SMESH: performance regression from V4 to V5

make ParseParameters() also return a flag signaling that there are
variables among parameters and in AddNode() call mesh.SetParameters()
only if it's true

12 years agovoid UpdateParameters(const char* theParameters)
eap [Thu, 15 Mar 2012 12:11:16 +0000 (12:11 +0000)]
void UpdateParameters(const char* theParameters)
{
+  if ( strlen(theParameters) == 0 ) return;

12 years agoFormat of preferences messages has been changed ('/' is used as separator instead...
vsr [Thu, 15 Mar 2012 09:24:23 +0000 (09:24 +0000)]
Format of preferences messages has been changed ('/' is used as separator instead of ':')

12 years ago0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file contai...
eap [Thu, 15 Mar 2012 08:54:09 +0000 (08:54 +0000)]
0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh

   Register tmp files in Engines::Container to be removed by killSalome.py

12 years ago0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
eap [Wed, 14 Mar 2012 15:20:31 +0000 (15:20 +0000)]
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

  Fix reading nodes from a new HDF file (attempt #2)

12 years ago0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
eap [Wed, 14 Mar 2012 15:03:06 +0000 (15:03 +0000)]
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

  Fix reading nodes from a new HDF file

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 14 Mar 2012 14:01:51 +0000 (14:01 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Remove obsolete doc files

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 14 Mar 2012 13:39:57 +0000 (13:39 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  More docs

12 years agoPrevent recording nodes as elements
eap [Wed, 14 Mar 2012 12:32:53 +0000 (12:32 +0000)]
Prevent recording nodes as elements

12 years agoIPAL22870: Incorrect numbering of volume elements
ouv [Wed, 14 Mar 2012 08:59:47 +0000 (08:59 +0000)]
IPAL22870: Incorrect numbering of volume elements

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Sun, 11 Mar 2012 14:25:37 +0000 (14:25 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

    remove resources of plugins

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Sun, 11 Mar 2012 14:24:45 +0000 (14:24 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   set SMESH_MeshersList and SalomeAppConfig envirinment variables for
   plugins found by *_ROOT_DIR variables

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Sun, 11 Mar 2012 10:31:27 +0000 (10:31 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   rename classes to start from "StdMeshersDC_"

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Sun, 11 Mar 2012 10:30:52 +0000 (10:30 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   print errors occured while loading plugins

12 years ago0021509: EDF 2157: Error in the dump
eap [Sun, 11 Mar 2012 10:12:30 +0000 (10:12 +0000)]
0021509: EDF 2157: Error in the dump
  1) fix _pyCommand::GetArg()
  2) AddMeshAccessorMethod() to "group.AddFrom( mesh )" command

12 years ago0021308: EDF 1923 SMESH: Remove hard-coded dependency of the external mesh plugins...
vsr [Sun, 11 Mar 2012 09:15:35 +0000 (09:15 +0000)]
0021308: EDF 1923 SMESH: Remove hard-coded dependency of the external mesh plugins from the SMESH module

12 years agotypo
eap [Sun, 11 Mar 2012 08:53:51 +0000 (08:53 +0000)]
typo

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Sun, 11 Mar 2012 08:53:28 +0000 (08:53 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   protect from exceptions at importing plugins

12 years agoerror in the script
eap [Sun, 11 Mar 2012 08:52:28 +0000 (08:52 +0000)]
error in the script
-mesh.TriToQuadObject(GroupTriToQuad, None , 1.57)
+mesh.TriToQuadObject(GroupTriToQuad, smesh.FT_AspectRatio , 1.57)

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:15:56 +0000 (15:15 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

    Describe methods wrapping algorithms and hypotheses into python

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:14:02 +0000 (15:14 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

+    void SetVarParameter (in string parameter, in string method);
+    string GetVarParameter (in string methodName);

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:13:29 +0000 (15:13 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  Now it's necessary to call myMesh->SetParameters() just before
  calling a method using parameters that can be defined via notebook variables

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:11:06 +0000 (15:11 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

Add elements used in SMESH_2smeshpy

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:10:28 +0000 (15:10 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Call  h->SetVarParameter() instead of h->SetParameters()

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:07:13 +0000 (15:07 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Use TVar structure to dump arguments that can be defined via notebook variables

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:06:37 +0000 (15:06 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  Bind methods creating algorithms (defined by plugins) to the class Mesh

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:05:01 +0000 (15:05 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

+ StdMeshersDC.py \

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:04:45 +0000 (15:04 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Move definition of algorithms to ./StdMeshersDC.py

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:03:32 +0000 (15:03 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Use TVar structure to dump arguments that can be defined via
   notebook variables

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 15:02:16 +0000 (15:02 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

   Remove explicit treatment of NETGEN commands

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 14:59:11 +0000 (14:59 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

 void SMESH_Mesh_i::SetParameters(const char* theParameters)
 {
-  SMESH_Gen_i::GetSMESHGen()->UpdateParameters(SMESH::SMESH_Mesh::_narrow(_this()),
-                                               CORBA::string_dup(theParameters));
+  SMESH_Gen_i::GetSMESHGen()->UpdateParameters(theParameters);

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 14:58:06 +0000 (14:58 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  Map names of variables set via SetVarParameter() to the method name setting them

+  void SetVarParameter (const char* parameter, const char* method);
+  char* GetVarParameter (const char* methodName);

+  std::map< std::string, std::string > myMethod2VarParams; // variable parameters
+
+ public:
+  // Methods for backward compatibility of notebook variables
+  virtual void setOldParameters (const char* theParameters);
+  virtual std::string getMethodOfParameter(const int paramIndex, int nbVars) const { return ""; }
+  virtual int getParamIndex(const TCollection_AsciiString& method, int nbVars) const { return -1; }
 };

 // ======================================================

12 years ago0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
eap [Wed, 7 Mar 2012 14:52:53 +0000 (14:52 +0000)]
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

  Store names of variables set via UpdateParameters() in myLastParameters field

-  void UpdateParameters(CORBA::Object_ptr theObject, const char* theParameters);
+  void UpdateParameters(/*CORBA::Object_ptr theObject,*/ const char* theParameters);

+  const std::vector< std::string >& GetLastParameters() const { return myLastParameters; }
+  std::vector< std::string >                               myLastParameters;