Commit Graph

332 Commits

Author SHA1 Message Date
eap
eb0c3c26e7 Salome Forum http://www.salome-platform.org/forum/forum_10/350978231
Move restoring SMESH_Mesh::_isModified from SMESH_Gen_i to SMESH_PreMeshInfo
2012-09-03 08:12:37 +00:00
eap
9e81eb1e25 Salome Forum http://www.salome-platform.org/forum/forum_10/350978231
Clear AddHypothesis(geom,hyp) command when RemoveHypothesis(geom,hyp)
encounters iff both geom and hyp are same
2012-09-03 08:00:12 +00:00
eap
b7aaf5fe0e comment out obsolete methods relating to treatment of notebook variables 2012-08-24 13:33:22 +00:00
eap
b32dca0dad 0021811: EDF BLSURFPLUGIN GHS3DPLUGIN: If dump is not historical, dump of hypothesis is incomplete
read and take into account methods (<accumulative-methods>) that don't
change a value of a meshing parameter but add one more value
2012-08-24 11:46:38 +00:00
eap
98b5f502a9 0021811: EDF BLSURFPLUGIN GHS3DPLUGIN: If dump is not historical, dump of hypothesis is incomplete
store methods that don't change a value of a meshing parameter but
add one more value

csll _pyHypothesis
{
...
+  std::set< _AString >          myAccumulativeMethods;
2012-08-24 11:45:41 +00:00
eap
7722c85978 021800: EDF 2346 : Bug in the dump of ExtrusionAlongpathX 2012-08-21 15:50:07 +00:00
gdd
779adc8fa5 Fix crash during preview 2012-08-10 14:01:12 +00:00
eap
5c3c22f91d make SplitVolumesIntoTetra() dump as a method of Mesh 2012-07-30 07:34:54 +00:00
eap
1d17e561d7 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes 2012-07-19 13:26:17 +00:00
eap
84f887e8f5 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+  CORBA::Long AddBall(CORBA::Long IDOfNodem, CORBA::Double diameter)

-  SMESH::long_array_var myLastCreatedElems;
-  SMESH::long_array_var myLastCreatedNodes;
+  ::SMESH_MeshEditor myEditor;
2012-07-19 13:23:51 +00:00
eap
4847e994d9 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);
2012-06-29 13:46:17 +00:00
eap
95a77fcb02 + CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
+                         const SMESH::DirStruct&   theDirection,
+                         CORBA::Long               theFace,
+                         const SMESH::PointStruct& thePoint) throw (SALOME::SALOME_Exception);
2012-06-29 13:43:18 +00:00
eap
16f4d26534 Avoid synchronization with geom groups when closing a study
+  void setCurrentStudy( SALOMEDS::Study_ptr theStudy,
+                        bool                theStudyIsBeingClosed=false);
2012-06-20 12:25:16 +00:00
vsr
d4a710ce52 Merge from V6_5_BR 05/06/2012 2012-06-05 12:18:07 +00:00
rnv
8d39a9f28e Porting SMESH Plugins on Win32 platform. 2012-03-28 14:37:07 +00:00
eap
ddec989c2f 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
clear re-setting filters to group
2012-03-23 09:11:25 +00:00
eap
93aaa60ce3 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
+  void fixFunctorType(...)
2012-03-21 15:55:38 +00:00
eap
834b58597d 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
2012-03-19 12:32:35 +00:00
vsr
d2f2237450 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Change message format
2012-03-15 15:43:52 +00:00
eap
8317c21cad void UpdateParameters(const char* theParameters)
{
+  if ( strlen(theParameters) == 0 ) return;
2012-03-15 12:11:16 +00:00
vsr
b0b26bc35f Format of preferences messages has been changed ('/' is used as separator instead of ':') 2012-03-15 09:24:23 +00:00
eap
b66badd782 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
2012-03-15 08:54:09 +00:00
eap
c668696b87 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file (attempt #2)
2012-03-14 15:20:31 +00:00
eap
c080bab83c 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file
2012-03-14 15:03:06 +00:00
eap
28bb38ba81 0021509: EDF 2157: Error in the dump
1) fix _pyCommand::GetArg()
  2) AddMeshAccessorMethod() to "group.AddFrom( mesh )" command
2012-03-11 10:12:30 +00:00
eap
93e79bb6c3 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
2012-03-07 15:03:32 +00:00
eap
130a2297e9 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Remove explicit treatment of NETGEN commands
2012-03-07 15:02:16 +00:00
eap
b38b77a5aa 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);
2012-03-07 14:59:11 +00:00
eap
b0d8fa70d6 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; }
 };

 // ======================================================
2012-03-07 14:58:06 +00:00
eap
f5efe8066b 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;
2012-03-07 14:52:53 +00:00
eap
27624ded2e 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Insert names of variables set via SMESH_Gen_i::UpdateParameters()
  into dump strings using TVar structure
2012-03-07 14:50:05 +00:00
eap
b32aba1501 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Create new _pyHypothesis'es by reading their data from resource files
  of plugins using _pyHypothesisReader
2012-03-07 14:44:20 +00:00
eap
8b1e8414fb 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
+class _pyHypothesisReader: public Standard_Transient
2012-03-07 14:42:06 +00:00
eap
4bbc91256d load mesh from study before Compute and PreCompute 2012-02-28 14:06:58 +00:00
rnv
a973225eef Fix compilation on win32 platform. 2012-02-28 14:00:22 +00:00
eap
7468bfdc0b 0021375: EDF 1671 SMESH: Dump study of current state
Do not erase commands of hyps not used to compute mesh
2012-02-28 07:47:56 +00:00
eap
4986d0a274 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Do not forget imported mesh on hypotheses modification
2012-02-24 11:49:16 +00:00
eap
154564a672 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
move actual mesh loading to SMESH_PreMeshInfo
2012-02-24 10:51:22 +00:00
eap
11bf8d1e4d 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  bool ToForgetMeshDataOnHypModif() const { return myToForgetMeshDataOnHypModif; }
2012-02-24 10:50:28 +00:00
eap
6bf9c4aeaf 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  virtual bool IsMeshInfoCorrect();
2012-02-24 10:49:36 +00:00
eap
9b54dd0f44 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
reimplement after making all member fields of SMESH_subMesh_i private
2012-02-24 10:49:18 +00:00
eap
f2e2182b74 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  CORBA::Boolean IsLoaded()
+  void Load()
+  virtual bool IsMeshInfoCorrect();

+  SMESH_PreMeshInfo* _preMeshInfo; // mesh info before full loading from study file
2012-02-24 10:47:20 +00:00
eap
53b7f3b9bb 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  virtual bool IsMeshInfoCorrect();

+  SMESH_PreMeshInfo* _preMeshInfo; // mesh info before full loading from study file
2012-02-24 10:46:31 +00:00
eap
feb9a2ff2e 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+	SMESH_PreMeshInfo.hxx \
2012-02-24 10:42:10 +00:00
eap
7c156331ce 0021375: EDF 1671 SMESH: Dump study of current state
Keep hyp parameters modifications done after mesh.Comput()
2012-02-20 06:59:35 +00:00
eap
d632c0f379 0021375: EDF 1671 SMESH: Dump study of current state
Fix non-historical treating of hypo methods setting different parameters via one method
    by passing parameter names like e.g. SetOption("size", "0.2") -
    mangle method name by appending a 1st textual arg
2012-02-17 15:59:58 +00:00
gdd
4ad6a5b19b Replace Descret by Discrete in variable and method names. 2012-02-17 14:30:02 +00:00
ana
e911ec9c1f 021374: EDF 1898 SMESH: Extrusion of a node to have an edge
and win32 compatibility ( replace isblank() -> isspace() )
2012-02-16 14:52:20 +00:00
eap
4f4088e813 0021374: EDF 1898 SMESH: Extrusion of a node to have an edge
Add accessor methods to all commands of the hypothesis
2012-02-15 11:16:59 +00:00
eap
64dc48191e 0021374]: EDF 1898 SMESH: Extrusion of a node to have an edge
Don't ExtrusionFlags
2012-02-13 17:52:48 +00:00
ana
a0e4f31fde Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue. 2012-02-13 16:18:53 +00:00
vsr
f39558c4e3 Fix compilation error on Windows 2012-02-13 07:53:42 +00:00
eap
b1f48b44b7 0021375: EDF 1671 SMESH: Dump study of current state
correctly treat a false algorithm created by _pyMesh::Flush()
2012-02-09 16:42:07 +00:00
eap
0dad6db093 0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion
fix threshold setting
2012-02-09 16:24:01 +00:00
eap
4620909a6d 0021375: EDF 1671 SMESH: Dump study of current state
ConvertScript(const TCollection_AsciiString&            theScript,
                 Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
                 Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
+                SALOMEDS::Study_ptr&                      theStudy,
+                const bool                                theHistoricalDump);
2012-02-09 13:17:49 +00:00
eap
2978b5432c 0021375: EDF 1671 SMESH: Dump study of current state
+  virtual void  SetOption(const char*, const char*);
+  virtual char* GetOption(const char*);
+  bool                                                     myIsHistoricalPythonDump;
2012-02-09 13:17:21 +00:00
eap
f6cd6404d7 0021375: EDF 1671 SMESH: Dump study of current state 2012-02-09 13:16:35 +00:00
prascle
fda2d7b99e PR: flat elements on 2D meshes 2012-02-02 17:06:56 +00:00
eap
98460fb0dc 0021338: EDF 1926 SMESH: New controls and filters
+  class SMESH_I_EXPORT EqualNodes_i: public virtual POA_SMESH::EqualNodes,
+  class SMESH_I_EXPORT EqualEdges_i: public virtual POA_SMESH::EqualEdges,
+  class SMESH_I_EXPORT EqualFaces_i: public virtual POA_SMESH::EqualFaces,
2012-01-26 15:58:58 +00:00
eap
da61389f82 0021338: EDF 1926 SMESH: New controls and filters
Correctly set mesh modified at transformations
2012-01-26 15:57:56 +00:00
eap
b4e2459e13 Fix RemoveOrphanNodes() to return valid nb of removed nodes 2012-01-26 11:06:16 +00:00
eap
1ef48564e5 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis
In ~TPreviewMesh(), nullify _myMeshDS after destruction
2012-01-24 13:01:34 +00:00
eap
fbae18cd7f Add "const char* name" argument to consrtucctor of SMESH_subMeshEventListener 2012-01-18 12:07:14 +00:00
ana
253807f5b3 Fix for the bug IPAL22851: Sub-shapes spelling 2012-01-13 15:11:09 +00:00
eap
3cdf7352b9 0021439: EDF 2004 GEOM, SMESH: Dump of study gives bad geom group and stops with NameError exception
1) In _pyMesh::Process(), move submesh creation from the script end
      to the place before its removal
   2) In _pyMesh::Flush(), add indentation to a generated command creating algorithm
2012-01-11 14:14:58 +00:00
eap
17b10b2960 cosmetic changes 2012-01-11 14:11:39 +00:00
eap
9a55aad5ba 0021439: EDF 2004 GEOM, SMESH: Dump of study gives bad geom group and stops with NameError exception
fix _pyGen::FindObject() to restore the lost wrapping of hyp creation
2012-01-11 09:50:28 +00:00
eap
ee7c5d0f83 fix the previous integration 2011-12-16 17:13:39 +00:00
eap
933c23d9cb not to dump GetMeshOrder() 2011-12-16 16:16:27 +00:00
eap
5638e6783f 0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OCTA12)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27

+ prepare to 0021439: Dump of study gives bad geom group and stops with NameError exception
2011-12-16 16:14:25 +00:00
eap
faf45035fc 0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OCTA12)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27
2011-12-16 09:34:33 +00:00
eap
209f475f91 0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OCTA12)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27

+  CORBA::Long NbBiQuadQuadrangles()
+  CORBA::Long NbTriQuadraticHexas()
+  CORBA::Long NbHexagonalPrisms()
2011-12-16 09:31:47 +00:00
eap
32a63e97ee 0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OCTA12)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27

In CopyMesh(), copy free nodes as well
2011-12-16 09:30:53 +00:00
eap
41b91cf1c6 0021347: [CEA 497] Visualisation into SMESH and VISU of hexagonal prism cells (MED_OCTA12)
0021380: EDF 1937 SMESH: Take into account QUAD9 and HEXA27

-#include "SMDS_VolumeTool.hxx"
2011-12-16 09:30:05 +00:00
vsr
493747e8ea Merge from V6_4_BR 05/12/2011 2011-12-05 11:03:04 +00:00
eap
edba852a43 + operator<<(const SMESH::string_array& theArg); 2011-10-28 12:51:17 +00:00
vsr
b6174726d9 Merge from V6_3_BR branch (Windows porting) 27/10/2011 2011-10-27 15:33:35 +00:00
eap
8801aa27ed in PublishGroup(), for the standalone groups, set full ot empty icon
depending on availability of elements of type of the group in the mesh
2011-10-24 13:12:22 +00:00
eap
5dda5df854 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
fix filter processing
2011-10-24 13:10:19 +00:00
eap
bbb7b25fa6 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
class _pyGen {
+  Handle(_pyObject) FindObject( const _pyID& theObjID ) const;
2011-10-24 13:09:27 +00:00
eap
dee52cd346 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
class _pyGen {
+  Handle(_pyObject) FindObject( const _pyID& theObjID ) const;
2011-10-24 11:57:06 +00:00
eap
fb68cb5a3d 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Pass the mesh of filter to predicate at setting a mesh and a
      predicate to avoid dump of predicate commands when a group is
      created from GUI
2011-10-24 11:56:13 +00:00
eap
fb7637f099 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
set a more human readable name to the filter
2011-10-12 18:06:28 +00:00
eap
fe3063e74b 0021275: EDF 1681 SMESH: Find the number of nodes of any group
remove 100000 limit
2011-10-04 14:01:58 +00:00
vsr
5d42bfdbec 0021275: EDF 1681 SMESH: Find the number of nodes of any group
0021359: [CEA] Mesh information
2011-10-04 13:14:47 +00:00
eap
044576569d 0021275: EDF 1681 SMESH: Find the number of nodes of any group
+    long GetNumberOfNodes();
+    long_array GetNodeIDs();
+    boolean IsNodeInfoAvailable();
2011-10-04 07:17:02 +00:00
eap
e7f669eb81 021346: EDF 1938 SMESH: "Use existing elements" functionality
In Load(), call hyp->UpdateAsMeshesRestored() before submesh->ComputeStateEngine(SUBMESH_RESTORED)
2011-08-22 08:43:48 +00:00
vsr
ca435d2f6b Merge from V6_3_BR 12/08/2011 2011-08-12 15:16:02 +00:00
eap
39841ffadd 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
make CGNS library an optional prerequisite
2011-08-11 11:38:37 +00:00
eap
34bcb9e1fb 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported 2011-08-10 12:49:26 +00:00
eap
52749e3d7f 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported 2011-08-10 10:33:38 +00:00
eap
17e2284321 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+  SMESH::mesh_array* CreateMeshesFromCGNS( const char* theFileName,
+                                           SMESH::DriverMED_ReadStatus& theStatus )
2011-08-10 10:28:52 +00:00
eap
f1b9e57c55 In StringToFunctorType(), return FT_Undefined for an invalid input 2011-08-10 10:27:45 +00:00
eap
339862d49c 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+	-I$(srcdir)/../DriverCGNS \
+	-I$(srcdir)/../SMESHUtils \
2011-08-10 10:22:48 +00:00
vsr
39f36db219 Merge from V6_3_BR 19/07/2011 2011-07-19 12:05:24 +00:00
vsr
91c92cb543 Merge from V6_3_BR 15/07/2011 2011-07-15 11:19:53 +00:00
eap
41cf70d768 0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups
improve comment of getFunctNames()
2011-07-07 14:23:09 +00:00
eap
6263d10065 0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups
In FunctorTypeToString(), return "FT_Undefined" for an invalid input
2011-07-07 14:21:27 +00:00
eap
974453b6c1 0021271: [CEA 473] Implement min size in netgen plugin
::SMESH_Hypothesis::TDefaults dflts;
+    dflts._shape = &shape;
2011-07-05 12:07:17 +00:00
eap
a6fa2d8561 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
icon for SMESH_GroupOnFilter
2011-06-24 08:36:34 +00:00