Commit Graph

1194 Commits

Author SHA1 Message Date
eap
e17197e86b 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Remove stub files

-	DriverUNV_R_SMESHDS_Mesh.cxx \
-	DriverUNV_R_SMESHDS_Document.cxx \
-	DriverUNV_W_SMESHDS_Document.cxx \
-	DriverUNV_W_SMESHDS_Mesh.cxx \
2011-08-10 10:14:20 +00:00
eap
4d40b01642 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+	-I$(srcdir)/../SMESHUtils \
2011-08-10 10:13:50 +00:00
eap
6479700566 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Remove stub files

-	DriverMED_R_SMDS_Mesh.cxx \
-	DriverMED_R_SMESHDS_Document.cxx \
-	DriverMED_W_SMDS_Mesh.cxx \
-	DriverMED_W_SMESHDS_Document.cxx \
2011-08-10 10:13:23 +00:00
eap
f54d16f2aa 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Remove stub files

-	DriverDAT_R_SMESHDS_Mesh.cxx \
-	DriverDAT_R_SMESHDS_Document.cxx \
-	DriverDAT_W_SMDS_Mesh.cxx \
-	DriverDAT_W_SMESHDS_Mesh.cxx \
-	DriverDAT_W_SMESHDS_Document.cxx
2011-08-10 10:12:00 +00:00
eap
75bac8d6f5 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported 2011-08-10 10:10:26 +00:00
eap
ab30ed84d6 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Move SMESH_Controls.hxx from src/Controls to avoid mutual
    dependency between SMESHDS and Controls
2011-08-10 10:10:03 +00:00
eap
6725a9aa57 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+  virtual void SetMeshName(const std::string& theMeshName);
+  virtual std::string GetMeshName() const;
+  Status addMessage(const std::string& msg, const bool isFatal=false);
2011-08-10 10:09:22 +00:00
eap
109378a75d 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
more comments
2011-08-10 10:05:12 +00:00
eap
55fc6f9383 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+  // Groups. SMESHDS_Mesh is not an owner of groups
2011-08-10 10:04:47 +00:00
eap
2ddb295e4a 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
-  virtual int Extent();
+  virtual int Extent() const;
2011-08-10 10:04:00 +00:00
eap
4f20185178 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Move SMESH_Controls.hxx from src/Controls to avoid mutual
    dependency between SMESHDS and Controls
2011-08-10 09:58:51 +00:00
eap
db1a1fcbb7 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
Fix setFace(): correctly take into account IsFaceExternal() for the polyhedron
2011-08-10 09:56:47 +00:00
eap
406dc55fef 0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+  inline SMDS_MeshInfo& operator=(const SMDS_MeshInfo& other);
2011-08-10 09:54:13 +00:00
eap
c9acf11dee use the hint when inserting into the std::set 2011-08-10 09:52:47 +00:00
eap
40c13601ee typo 2011-08-10 09:51:58 +00:00
vsr
e062bbd055 0021343: EDF 1930 SMESH: Huge memory occupation when assigning an hypothesis to a big model 2011-08-09 08:39:43 +00:00
vsr
38b9ea6198 0021343: EDF 1930 SMESH: Huge memory occupation when assigning an hypothesis to a big model 2011-08-09 07:46:44 +00:00
eap
d867e9b08b 0021330]: EDF 1919 SMESH: Convert to quadratic gives wrong elements
if ( surface->IsUPeriodic() || surface->IsVPeriodic() ||
+         surface->IsUClosed()   || surface->IsVClosed() )
2011-08-02 09:35:37 +00:00
gdd
6a49124672 Add wrapper to .mesh export from BLSURFPLUGIN 2011-07-28 16:50:48 +00:00
gdd
8eaa53c526 Add PreCAD wrappers 2011-07-26 17:48:10 +00:00
gdd
78fd150f79 Add PreCAD
Update doc
Update smeshDC.py
2011-07-26 17:18:04 +00:00
gdd
eed8bfc30b Check return value of Parameters() before setting values (BlSurf, GHS3D, GHS3DPRL) 2011-07-26 09:02:17 +00:00
eap
6426baa9f3 0021327: EDF 1915 SMESH: impossible to select a group to copy mesh
trim white spaces at end of object name, else the object seems not selected
2011-07-19 12:57:51 +00:00
vsr
39f36db219 Merge from V6_3_BR 19/07/2011 2011-07-19 12:05:24 +00:00
eap
191bcced1c 0021327: EDF 1915 SMESH: impossible to select a group to copy mesh
trim white spaces at end of object name, else the object seems not selected
2011-07-19 11:27:02 +00:00
eap
d3d686d410 - $(CORBA_CXXFLAGS) \
-        $(CORBA_INCLUDES) \
2011-07-15 14:55:38 +00:00
vsr
91c92cb543 Merge from V6_3_BR 15/07/2011 2011-07-15 11:19:53 +00:00
eap
34fc026192 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
fix selection/visualization mode at changing the group type
2011-07-11 07:22:14 +00:00
eap
e6c056f8c0 - -I$(srcdir)/../SMESHImpl \
-	../SMESH_I/libSMESHEngine.la \
2011-07-07 15:27:29 +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
fa4bd0dfc4 0021271: [CEA 473] Implement min size in netgen plugin
struct TDefaults
   {
     double        _elemLength;
     int           _nbSegments;
+    TopoDS_Shape* _shape; // future shape of the mesh being created
   };
2011-07-05 12:06:17 +00:00
eap
2ef67f753e restore "QuadranglePreference" hyp as it can be used by NETGEN 2D
together with "Max. Elemet Area" for example
2011-07-05 12:04:49 +00:00
eap
b6fe67a04f initialize the Curve Adaptor using range of the edge 2011-07-01 15:45:09 +00:00
eap
ce5494a2c1 Suppress some doxygen warnings 2011-06-28 13:01:22 +00:00
eap
d8c160ee27 Create StdMeshers_QuadrangleParams hyp instead of "Quadrangle
preference" and "Triangle preference" obsolete hypotheses
2011-06-28 13:00:19 +00:00
eap
c58c3faf74 Remove "Quadrangle preference" and "Triangle preference" obsolete hypotheses 2011-06-28 12:58:21 +00:00
eap
eec523867a IPAL22173 TC6.2.0: "Netgen1D-2D" algorithm doesn't work on "flight_solid.brep"
Treate a case where a valid mesh is computed anyhow while the algo reports errors
2011-06-28 11:55:57 +00:00
eap
0650af74ab IPAL22173 TC6.2.0: "Netgen1D-2D" algorithm doesn't work on "flight_solid.brep"
1) Treate a case where a valid mesh is computed anyhow while the algo reports errors
    2) Remove unused
-  bool ApplyToCollection (SMESH_Algo*         theAlgo,
-                          const TopoDS_Shape& theCollection);
2011-06-28 11:54:43 +00:00
eap
3eefc085d8 IPAL22173 TC6.2.0: "Netgen1D-2D" algorithm doesn't work on "flight_solid.brep"
Treate a case where a valid mesh is computed anyhow while the algo reports errors

+  enum EMeshError { MEr_OK = 0, MEr_HOLES, MEr_BAD_ORI, MEr_EMPTY };
+
+  /*!
+   * \brief Finds topological errors of a sub-mesh
+   */
+  static EMeshError GetMeshError(SMESH_subMesh* subMesh);
2011-06-28 11:53:37 +00:00
eap
454d871477 IPAL22173 TC6.2.0: "Netgen1D-2D" algorithm doesn't work on "flight_solid.brep"
Treate a case where a valid mesh is computed anyhow while the algo reports errors

+  COMPERR_WARNING        = -10  //!< algo reports error but sub-mesh is computed anyway

+  bool IsKO()     { return myName != COMPERR_OK && myName != COMPERR_WARNING; }
2011-06-28 11:52:56 +00:00
eap
c5438eec06 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
fix bug of editing a not standalone group
2011-06-27 07:57:51 +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
eap
ca0e6f7ceb 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
icon for SMESH_GroupOnFilter
2011-06-24 06:53:07 +00:00
eap
066bcc3471 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
To create/edit SMESH_GroupOnFilter
2011-06-23 12:39:01 +00:00
eap
d0b3f328a8 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+    def GetFilterFromCriteria(self,criteria):
+    def GroupOnFilter(self, typ, name, filter):
2011-06-23 12:38:38 +00:00
eap
00d6e38575 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Make groupType() return "SMESH_GroupOnFilter"
2011-06-23 12:37:17 +00:00
eap
74a4f1012d 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
1) make 'Mesh' be a default 'Source'
2)
+  SMESH::Filter_var         GetFilter() const;
+  void                      SetFilter(SMESH::Filter_var filter, int type);
2011-06-23 12:36:03 +00:00
eap
03ccec76c7 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+  SMESH::Filter_var         GetFilter() const;
+  void                      SetFilter(SMESH::Filter_var filter, int type);
2011-06-23 12:34:55 +00:00
eap
cb376aa1de 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
To edit SMESH_GroupOnFilter
2011-06-23 12:34:17 +00:00
eap
bd284fc142 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+  SMESH::SMESH_GroupOnFilter_ptr CreateGroupFromFilter()
2011-06-23 12:30:17 +00:00
eap
fa0176f072 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+class SMESH_GroupOnFilter_i:
2011-06-23 12:29:23 +00:00
eap
41ea31ca86 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Save and Load SMESH_GroupOnFilter
2011-06-23 12:26:04 +00:00
eap
a39a0e1f84 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
1) fix dump of Filter_i::SetCriteria()
2)
+    void Filter_i::AddWaiter( TPredicateChangeWaiter* waiter );
+    void Filter_i::RemoveWaiter( TPredicateChangeWaiter* waiter );
3)
+  const char*        SMESH::FunctorTypeToString(SMESH::FunctorType ft);
+  SMESH::FunctorType SMESH::StringToFunctorType(const char*       str);
2011-06-23 12:25:04 +00:00
eap
fe2d0f0f5c 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
class Filter_i
   {
+    struct TPredicateChangeWaiter
+    {
+      virtual void PredicateChanged() = 0;
+    };
+    void AddWaiter( TPredicateChangeWaiter* waiter );
+    void RemoveWaiter( TPredicateChangeWaiter* waiter );

+    std::list<TPredicateChangeWaiter*> myWaiters;


+  const char*        FunctorTypeToString(SMESH::FunctorType ft);
+  SMESH::FunctorType StringToFunctorType(const char*       str);
2011-06-23 12:23:49 +00:00
eap
56793b53d1 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Fix dump of SMESH_IDSource which is Filter
2011-06-23 12:20:30 +00:00
eap
b3cba8f4fd 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
1) convert SMESH.Filter.Criterion() to GetCriterion()
2)
+_pyGroup::Process()
+_pyFilter::Process()
2011-06-23 12:19:06 +00:00
eap
c31705d887 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+class _pyGroup
+class _pyFilter
2011-06-23 12:15:16 +00:00
eap
00b26b695f 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
To remove sub-filters if necessary

-  SMESH_LogicalFilter( const QList<SUIT_SelectionFilter*>&, const int );
+  SMESH_LogicalFilter( const QList<SUIT_SelectionFilter*>&, const int, bool takeOwnership=false );

 private:
+  void                          deleteFilters();
2011-06-23 12:14:05 +00:00
eap
b21414354c 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
SMESH_Group* AddGroup (const SMDSAbs_ElementType theType,
                          const char*               theName,
                          int&                      theId,
                          const TopoDS_Shape&       theShape=TopoDS_Shape(),
+                         const SMESH_PredicatePtr& thePredicate=SMESH_PredicatePtr());
2011-06-23 12:12:22 +00:00
eap
f1c62974f6 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
SMESH_Group (int                       theID,
               const SMESH_Mesh*         theMesh,
               const SMDSAbs_ElementType theType,
               const char*               theName,
               const TopoDS_Shape&       theShape = TopoDS_Shape(),
+              const SMESH_PredicatePtr& thePredicate = SMESH_PredicatePtr());
2011-06-23 12:11:40 +00:00
eap
d73cacdd51 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
Move definition of abstract classes Functor and Predicate from
   SMESH_ControlsDef.hxx to SMESH_Controls.hxx
2011-06-23 12:10:32 +00:00
eap
ec36250a0d 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+	SMESHDS_GroupOnFilter.cxx
2011-06-23 12:06:37 +00:00
eap
ac5729075f 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
+	SMESHDS_GroupOnFilter.cxx

+	-I$(srcdir)/../Controls
2011-06-23 12:06:12 +00:00
eap
77d9e5ae72 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
-  int GetID (const int theIndex);
+  virtual int GetID (const int theIndex);
2011-06-23 12:05:43 +00:00
eap
e92088a576 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
-  unsigned long GetMTime();
+  unsigned long GetMTime() const;
2011-06-23 12:04:34 +00:00
eap
70aa7fe704 0020743: EDF 1271 SMESH : Create a mesh from a group / export, FindElementByPoint() on groups 2011-06-14 14:10:39 +00:00
eap
d502285de5 0020743: EDF 1271 SMESH : Create a mesh from a group / FindElementByPoint() on groups 2011-06-14 14:10:15 +00:00
eap
105bb4233f 0020743: EDF 1271 SMESH : Create a mesh from a group / export() on groups 2011-06-14 14:10:01 +00:00
eap
89c40c21f3 0020743: EDF 1271 SMESH : Create a mesh from a group / export() on groups
+  virtual int             dim( int ) const;
2011-06-14 14:08:45 +00:00
eap
a18ad2978f 0020743: EDF 1271 SMESH : Create a mesh from a group
export, FindElementByPoint() on groups
2011-06-14 13:58:29 +00:00
eap
d8c39ff840 0020743: EDF 1271 SMESH : Create a mesh from a group / export,FindElementByPoint() groups
1) convert
+  { // ExportPartTo*(part, ...) -> Export*(..., part)

+  // FindAmongElementsByPoint(meshPart, x, y, z, elementType) ->
+  // FindElementsByPoint(x, y, z, elementType, meshPart)

  2) make _pyCommand::GetArg() work with any compex arg like list, tuple etc
2011-06-14 13:57:24 +00:00
eap
4fcec244fd + case ELEM0D:myStream<<"ELEM0D";break; 2011-06-14 13:54:50 +00:00
eap
7d0549090a 0020743: EDF 1271 SMESH : Create a mesh from a group / FindElementByPoint() groups
+  /*!
+   * Searching among the given elements, return elements of given type
+   * where the given point is IN or ON.
+   * 'ALL' type means elements of any type excluding nodes
+   */
+  SMESH::long_array* FindAmongElementsByPoint(SMESH::SMESH_IDSource_ptr elements,
+                                              CORBA::Double             x,
+                                              CORBA::Double             y,
+                                              CORBA::Double             z,
+                                              SMESH::ElementType        type);
2011-06-14 13:54:32 +00:00
eap
9012a64442 0020743: EDF 1271 SMESH : Create a mesh from a group / export groups
+  void ExportPartToMED(SMESH::SMESH_IDSource_ptr meshPart,
+                       const char*               file,
+                       CORBA::Boolean            auto_groups,
+                       SMESH::MED_VERSION        version,
+                       CORBA::Boolean            overwrite) throw (SALOME::SALOME_Exception);
+  void ExportPartToDAT(SMESH::SMESH_IDSource_ptr meshPart,
+                       const char*               file) throw (SALOME::SALOME_Exception);
+  void ExportPartToUNV(SMESH::SMESH_IDSource_ptr meshPart,
+                       const char*               file) throw (SALOME::SALOME_Exception);
+  void ExportPartToSTL(SMESH::SMESH_IDSource_ptr meshPart,
+                       const char*               file,
+                       CORBA::Boolean            isascii) throw (SALOME::SALOME_Exception);
2011-06-14 13:53:16 +00:00
eap
eb57bc9623 improve comments 2011-06-14 13:51:55 +00:00
eap
00fdc117cd 0020743: EDF 1271 SMESH : Create a mesh from a group / export groups
void ExportMED(const char *file,
                  const char* theMeshName = NULL,
                  bool theAutoGroups = true,
-                 int theVersion = 0)
+                 int theVersion = 0,
+                 const SMESHDS_Mesh* meshPart = 0)
2011-06-14 13:51:27 +00:00
eap
77b26c3006 0020743: EDF 1271 SMESH : Create a mesh from a group / export groups
+protected:
+  inline void addWithPoly(const SMDS_MeshElement* el);
2011-06-14 13:50:26 +00:00
eap
c9ccfc74e0 0020743: EDF 1271 SMESH : Create a mesh from a group / FindElementByPoint() on groups
+        int Tic() const { return myTic; }
+        int                                     myTic; // to track changes
2011-06-14 13:49:51 +00:00
eap
6a77e2f847 0020743: EDF 1271 SMESH : Create a mesh from a group / export groups
make virtual methods returning iterators on elements
2011-06-14 13:49:08 +00:00
vsr
2c607013a2 Merge from V6_3_BR 06/06/2011 2011-06-06 08:15:39 +00:00
gdd
7191b0d735 Replace oe by ? 2011-05-11 20:41:37 +00:00
ouv
eaefb3fa06 Minor changes (untabify). 2011-04-18 09:59:35 +00:00
ouv
344fb98e28 Note 0010812 from the issue 0020999: EDF 1575 SMESH: Filters and precision preferences 2011-04-18 09:09:24 +00:00
eap
944af78798 Restore support of med-2.1 in MEDWrapper 2011-04-15 09:31:45 +00:00
gdd
3206fe9668 Small update for French translation 2011-04-14 12:42:52 +00:00
gdd
a66401aeb6 rnc : correction from Anthony Geay for a problem with medfiles when containing 0D elements 2011-04-14 12:08:29 +00:00
rnv
e079b751f3 RNV: Fix bug of the editing "Source Faces" hypo: Groups list is empty when editing hypothesis. 2011-04-13 08:03:11 +00:00
prascle
b05c8c76a5 PR: mistake 2011-04-12 17:09:41 +00:00
rnv
2290c49819 1) Fix for the issue "21220: EDF SMESH: Split into tetra from group does not work"
2) Change mechanism of the adding items in the QListWidget.
2011-04-12 12:28:40 +00:00
prascle
b9db0238dc PR: add an independant exe that cuts a tetra mesh by a plane. MeshCut is adpated from EDF project XMESHLAB and works with MED files. 2011-04-12 11:24:20 +00:00
rnv
022168f9e6 Fix for the "21222: SMESH EDF: Impossible to set a threshold value in the filter dialog" issue. 2011-04-11 12:42:27 +00:00
gdd
2d50f1341e rnc : gived some details about ExtrusionSweepObjectXD in documentation 2011-04-11 09:06:11 +00:00
eap
33459aac4f med-2.1 file no longer supported 2011-04-11 07:50:58 +00:00
gdd
f335dddadb Update French Translations 2011-04-08 15:29:33 +00:00
eap
ecdd9a6194 - ExportToMEDX(file,auto_groups,SMESH::MED_V2_1,true);
+  ExportToMEDX(file,auto_groups,SMESH::MED_V2_2,true);
2011-04-08 08:43:48 +00:00
eap
513e407ce6 comment off not used
static bool sameGroupType()
2011-04-08 08:43:30 +00:00
vsr
790c5cfa90 Merge from PortingMED3 07Apr11 2011-04-07 11:53:43 +00:00
eap
ffc4f7e618 0021218: EDF 1832 SMESH: Regression when computing a mesh
fix FindFaceAssociation() using UV
2011-04-06 11:06:53 +00:00