Commit Graph

1477 Commits

Author SHA1 Message Date
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
5da7113dc9 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
More docs
2012-03-14 13:39:57 +00:00
eap
1e2742728c Prevent recording nodes as elements 2012-03-14 12:32:53 +00:00
ouv
3f1a249dc8 IPAL22870: Incorrect numbering of volume elements 2012-03-14 08:59:47 +00:00
eap
24bd6a0e24 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
rename classes to start from "StdMeshersDC_"
2012-03-11 10:31:27 +00:00
eap
344f1bff78 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
print errors occured while loading plugins
2012-03-11 10:30:52 +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
f93f0a8570 typo 2012-03-11 08:53:51 +00:00
eap
8b26d4794f 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
protect from exceptions at importing plugins
2012-03-11 08:53:28 +00:00
eap
649673b639 error in the script
-mesh.TriToQuadObject(GroupTriToQuad, None , 1.57)
+mesh.TriToQuadObject(GroupTriToQuad, smesh.FT_AspectRatio , 1.57)
2012-03-11 08:52:28 +00:00
eap
d4675122f5 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
2012-03-07 15:13:29 +00:00
eap
4a78d582ba 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Add elements used in SMESH_2smeshpy
2012-03-07 15:11:06 +00:00
eap
5ccb7d953a 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Call  h->SetVarParameter() instead of h->SetParameters()
2012-03-07 15:10:28 +00:00
eap
102c101f1c 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:07:13 +00:00
eap
f68bcab022 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
2012-03-07 15:06:37 +00:00
eap
e361a31d0f 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
+	StdMeshersDC.py \
2012-03-07 15:05:01 +00:00
eap
3c1e09c062 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Move definition of algorithms to ./StdMeshersDC.py
2012-03-07 15:04:45 +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
rnv
e30138815a Forbid renaming of the objects "in place" by default. 2012-03-07 11:40:47 +00:00
rnv
1ce1163823 Win32 compilation. 2012-02-29 12:02:54 +00:00
gdd
607f25cad1 Add support of internal vertices for BLSURF 2012-02-28 15:50:48 +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
ce9cd12e09 fix CoincidentElements::IsSatisfy() for polyhedrons 2012-02-28 13:32:04 +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
gdd
08a6d91f97 Changed "Display settings" to "Properties" 2012-02-27 12:49:43 +00:00
gdd
e16988d581 Update the "Colors / Size" dialog. 2012-02-27 11:09:21 +00:00
gdd
a2b5a4c6cc rnc: added missing translations 2012-02-27 09:56:00 +00:00
eap
1c9e778a7c 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+    ## Loads mesh from the study after opening the study
+    def Load(self):
2012-02-27 09:15:43 +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
582347efc7 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
addPreference( tr( "PREF_FORGET_MESH_AT_HYP_MODIF" ), loadGroup, LightApp_Preferences::Bool,
2012-02-24 10:55:52 +00:00
eap
d2218320ff 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh 2012-02-24 10:55:12 +00:00
eap
626f2aee7a 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
don't call GetTypes() of GroupOnFilter that can be very long
2012-02-24 10:52:50 +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
c978123512 untabify 2012-02-24 10:43:27 +00:00
eap
6c858efd41 rename treshold -> threshold 2012-02-24 10:42:57 +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
656d6656d4 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
rename private methods to start from lower-case letters

+  void Load();
2012-02-24 10:39:58 +00:00
eap
d5a3c3b28a 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
rename private methods to start from lower-case letters

  enum compute_event {
+     SUBMESH_LOADED

+  void loadDependentMeshes();
2012-02-24 10:38:22 +00:00
eap
d8cd2598fc 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
add a note on usage of mySubMeshes while mesh loading
2012-02-24 10:33:21 +00:00
eap
abb0ef62f4 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
+  bool IsUpToDate() const;
2012-02-24 10:30:58 +00:00
eap
709188eac6 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
protected:
+  inline void setNb(const SMDSAbs_EntityType geomType, const int nb);
2012-02-24 10:29:41 +00:00
ana
4d706076ff Fix for the bug IPAL22857: "Find element by point problems" 2012-02-20 14:25:20 +00:00
rnv
cfddf61e77 Fix for the "0020314: EDF 993 SMESH : Display bug with Volumes created by GHS3D" issue (problem with displaying coincident 3D elements). 2012-02-20 12:21:17 +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
rnv
58a5f9cfd1 Change range of the Width spinbox: [0,5] -> [1,5] 2012-02-17 11:24:13 +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
ana
e1a3f42b5c 021374: EDF 1898 SMESH: Extrusion of a node to have an edge 2012-02-16 14:48:49 +00:00
ana
b4926d3ebf 021374: Extrusion of a node to have an edge
minor change
2012-02-16 14:46:03 +00:00
ana
5d4ed5201b Implementation of the "0021374: EDF 1898 SMESH: Extrusion of a node to have an edge" issue. 2012-02-15 14:30:42 +00:00
gdd
af3910d143 Initialisation of private variable. 2012-02-15 13:07:11 +00:00
gdd
01df28d291 Add missing French translations 2012-02-15 12:41:51 +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
rnv
ed191931f2 Implementation of the "21046: EDF 1610 GUI: To be able to change the width of the lines" issue. 2012-02-14 12:08:05 +00:00
eap
b0aa026c95 0021494: EDF 2118 SMESH: Projection2D hypothesis causes Unknown Exception
enhance checkParams() to allow 1 pair of vertices only for a face with 1 vertex
2012-02-14 11:35:04 +00:00
eap
c1cd01ddc8 0021494: EDF 2118 SMESH: Projection2D hypothesis causes Unknown Exception
Allow 1 pair of vertices for a face with 1 vertex
2012-02-14 11:33:38 +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
2b3a86e7ca 0021490: EDF 2114: RadialQuadrangle fails
Fix correspondence between LinEdge1 and LinEdge2 and P1 and P2
2012-02-09 14:50:10 +00:00
eap
ebc415d946 0021375: EDF 1671 SMESH: Dump study of current state
+    def SetDumpPythonHistorical(self, isHistorical):
2012-02-09 13:18:11 +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
eap
693476070c 0021375: EDF 1671 SMESH: Dump study of current state
add "historical_python_dump" preference
2012-02-09 13:13:29 +00:00
eap
785e19b0ca 0021375: EDF 1671 SMESH: Dump study of current state
avoid crash at deletion of SMESH_subMesh::myOwnListeners at mesh removal

-  std::list< std::pair< SMESH_subMesh*, EventListener* > > myOwnListeners;
+  struct OwnListenerData {
+    ...
+  };
+  std::list< OwnListenerData > myOwnListeners;
2012-02-09 13:11:58 +00:00
eap
14e44c7736 0021375: EDF 1671 SMESH: Dump study of current state
+  bool MeshExists( int meshId ) const;
     used to avoid crash at deletion of SMESH_subMesh::myOwnListeners
     at mesh removal
2012-02-09 13:10:52 +00:00
eap
e830e055d0 0021489: EDF 2096: Regression in Prism algorithm between 6.3.1 and 6.4.0
fix after changed behaviour of LoadNodeColumns()

-        bool isForward = ( edgeIt->Orientation() == TopAbs_FORWARD );
+        bool isForward =
+          StdMeshers_PrismAsBlock::IsForwardEdge( myHelper->GetMeshDS(),
+                                                  myParam2ColumnMaps[iE],
+                                                  *edgeIt, SMESH_Block::ID_Fx0z );
2012-02-09 12:31:36 +00:00
eap
7a57f9da6e 0021489: EDF 2096: Regression in Prism algorithm between 6.3.1 and 6.4.0
fix LoadNodeColumns()
2012-02-09 12:30:06 +00:00
prascle
fda2d7b99e PR: flat elements on 2D meshes 2012-02-02 17:06:56 +00:00
rnv
24df7fa1ab win32 compilation of the Mesh module. 2012-02-01 12:31:41 +00:00
eap
e05243759a 0021338: EDF 1926 SMESH: New controls and filters
Update controlMode()
2012-01-30 09:49:32 +00:00
eap
f0f28bd92d 0021338: EDF 1926 SMESH: New controls and filters
Add "Double nodes tolerance" preference
2012-01-27 10:41:48 +00:00
eap
c6edb52c8e 0021338: EDF 1926 SMESH: New controls and filters
get Tolerance for "Double nodes" from Preferences
2012-01-27 10:41:12 +00:00
eap
c1e553583f 0021338: EDF 1926 SMESH: New controls and filters
+    FT_EqualNodes,
+    FT_EqualEdges,
+    FT_EqualFaces,
+    FT_EqualVolumes,
2012-01-26 16:04:00 +00:00
eap
8931be9b66 0021338: EDF 1926 SMESH: New controls and filters 2012-01-26 16:03:40 +00:00
eap
601f8a87b5 0021338: EDF 1926 SMESH: New controls and filters
Return all nodes from sub-mesh and group
2012-01-26 16:02:10 +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
e65e4d9a03 0021338: EDF 1926 SMESH: New controls and filters
+    /*!
+     * \brief Class used to detect mesh modification: IsMeshModified() returns
+     * true if a mesh has changed since last calling IsMeshModified()
+     */
+    class SMESHCONTROLS_EXPORT TMeshModifTracer
2012-01-26 15:56:22 +00:00
eap
2d179048e3 0021338: EDF 1926 SMESH: New controls and filters
Call myPredicate->SetMesh( GetMesh() ) in order to let him update
   his data according to a changed mesh
2012-01-26 15:32:57 +00:00