Commit Graph

355 Commits

Author SHA1 Message Date
eap
9c8fdf5101 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
Do not call algo->Compute() if !algo->NeedDiscreteBoundary() and
  computing a sub-mesh of the current sub-mesh already failed.
2013-02-19 12:04:39 +00:00
eap
3060a379b0 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
-  bool SubMeshesComputed() const;
+  bool SubMeshesComputed(bool * isFailedToCompute=0) const;

   TopoDS_Shape getCollection(SMESH_Gen * theGen,
                              SMESH_Algo* theAlgo,
                              bool &      theSubComputed,
+                             bool &      theSubFailed);

+  SMESH_Algo *          _algo; // the algorithm found by last *StateEngine() call
2013-02-19 12:02:54 +00:00
eap
12443c9c47 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Not to clear sub-meshes computed by local algos when an
   all-dimensional global algorithm is assigned

-  void cleanDependsOn();
+  void cleanDependsOn( bool keepSupportedsubMeshes = false );
2013-02-18 12:58:39 +00:00
eap
5ea0315b7f 0022091: [CEA 760] Regression on test test check_mesh_stability.py
In Compute(), call aHelper.FixQuadraticElements() only if everything is OK
2013-02-06 13:04:18 +00:00
eap
ed7d4ac971 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
In Compute(), do not call Compute() of a more local algo if this
!algo->NeedDiscreteBoundary() also
2013-02-01 10:52:04 +00:00
eap
0cd977f8bf 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
arg theFirstVertex of SMESH_Block::GetOrderedEdges() became optional
2013-01-28 08:35:50 +00:00
eap
154b1ad73e 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Make SubMeshesComputed() public

Make getDependsOnIterator() const
2013-01-28 08:19:29 +00:00
eap
907db98bc4 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Improve LoadNodeColumns() to add columns to already loaded ones

+  static bool IsSameElemGeometry(const SMESHDS_SubMesh* smDS,
+                                 SMDSAbs_GeometryType   shape,
+                                 const bool             nullSubMeshRes = true);

+  static bool IsStructured( SMESH_subMesh* faceSM );

+  static int Count(const TopoDS_Shape&    shape,
+                   const TopAbs_ShapeEnum type,
+                   const bool             ignoreSame);
2013-01-28 08:17:43 +00:00
eap
6cc402aa1b 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
+  static bool IsSameElemGeometry(const SMESHDS_SubMesh* smDS,
+                                 SMDSAbs_GeometryType   shape,
+                                 const bool             nullSubMeshRes = true);

+  static bool IsStructured( SMESH_subMesh* faceSM );

+  static int Count(const TopoDS_Shape&    shape,
+                   const TopAbs_ShapeEnum type,
+                   const bool             ignoreSame);

-  void SetElementsOnShape(bool toSet) { mySetElemOnShape = toSet; }
+  bool SetElementsOnShape(bool toSet)
+  { bool res = mySetElemOnShape; mySetElemOnShape = toSet; return res; }
2013-01-28 08:16:00 +00:00
eap
6390e82888 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
+  SMESH_Gen*  GetGen() const { return (SMESH_Gen*) _gen; }
2013-01-28 08:13:58 +00:00
eap
9b0f684048 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Use aGlobIgnoAlgo->NeedLowerHyps( dim ) in checkConformIgnoredAlgos()
2013-01-28 08:13:42 +00:00
eap
3a62786158 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
+  bool NeedLowerHyps(int dim) const { return _neededLowerHyps[ dim ]; }

+  void addBadInputElements(const SMESHDS_SubMesh* sm,
+                           const bool             addNodes=false);

+  bool _neededLowerHyps[4];     // hyp dims needed by algo that !NeedDiscreteBoundary(). Df. FALSE
2013-01-28 08:12:41 +00:00
rnc
af15920c77 added BOOST_LIB_SYSTEM to the linker for support of boost 1.52.0 2013-01-24 10:52:43 +00:00
eap
8d0826c197 021860: EDF 2196 SMESH : Create all the groups in an extrusion operation 2013-01-11 12:00:35 +00:00
eap
7f5d1328b1 21397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder
after successful algo->Compute(), send SUBMESH_COMPUTED to all lower sub-meshes if ( !algo->NeedDiscreteBoundary() )
2013-01-10 11:29:37 +00:00
eap
293883f8d4 21397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder
bool Load (SMESH_Mesh*        theMesh,
              const TopoDS_Face& theFace,
              bool               theProject = false,
+             TopoDS_Vertex      the1stVertex=TopoDS_Vertex());
2013-01-10 11:26:34 +00:00
eap
a94078a14b improve comments 2013-01-10 11:25:42 +00:00
eap
752ad5bd14 untabify 2012-12-28 16:30:38 +00:00
eap
9ed5632be0 22017: [CEA 739] Get an error code returned by cadsurf_set_param
Remove "Salome " from "Salome Exception" prefix returned by
  SALOME_Exception::what() while composing an error message
2012-12-18 13:33:32 +00:00
eap
b69677548c 22011: [CEA 736] Mesh ends with "Global 2D algorithm is missing"
In checkMissing(), check only sub-meshes on meshable shapes (edges,faces,solids)
2012-12-17 16:37:18 +00:00
eap
7973c25121 21948: EDF SMESH : Memory is not freed when deleting a mesh
In DeleteEventListener() fix removal of listeners
2012-12-14 13:25:12 +00:00
eap
413fec58c7 21948: EDF SMESH : Memory is not freed when deleting a mesh
Use _id instead of _idDoc

-  _myMeshDS      = theDocument->GetMesh(_idDoc);
+  _myMeshDS      = theDocument->NewMesh(theIsEmbeddedMode,theLocalId);
2012-12-14 13:24:26 +00:00
eap
730908a7f4 21948: EDF SMESH : Memory is not freed when deleting a mesh
-  int                        _idDoc;        // id given by SMESHDS_Document
2012-12-14 13:23:20 +00:00
eap
0d9cd77ceb 21948: EDF SMESH : Memory is not freed when deleting a mesh
minor changes
2012-12-14 13:22:42 +00:00
eap
d3fb998efd 21948: EDF SMESH : Memory is not freed when deleting a mesh
Delete SMESHDS_Document's at destruction
2012-12-14 13:21:56 +00:00
vsr
13ff1c4641 Merge from V6_6_BR (V6_6_0rc2) 11/12/2012 2012-12-11 13:23:39 +00:00
ana
e77525fc4f win32 compatibility 2012-10-17 13:42:00 +00:00
eap
7e1dee49ad 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
Fix setEventListener() for a case of a listener found by name
2012-10-16 11:19:06 +00:00
eap
b648205fec 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
1) Fix notifyListenersOnEvent() for the case if a listener is deleted
2) in setEventListener(), use a listener name to find an existing listener
2012-10-15 13:15:55 +00:00
eap
c0f78ed06c + const SMESHDS_SubMesh * GetSubMeshDS() const; 2012-10-15 13:04:17 +00:00
eap
3750df108a 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
Extend the class to store 1D proxy elements
2012-10-15 13:03:16 +00:00
eap
4605267548 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
-void FindEqualElements(set<const SMDS_MeshElement*> & theElements,
+void FindEqualElements(TIDSortedElemSet &        theElements,
                        TListOfListOfElementsID & theGroupsOfElementsID)
2012-10-15 13:01:00 +00:00
prascle
f3d031f77d PR: bug on CreateHoleSkin with groups 2012-10-12 10:59:49 +00:00
eap
798c633011 in ComputeStateEngine(), clear _computeError at certain events only 2012-10-10 10:45:50 +00:00
eap
b02b941bd8 protect GetSubShapeByNode() from SIGSEGV at NULL node 2012-10-10 10:44:55 +00:00
eap
5f62c18c48 Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh 2012-10-01 14:08:42 +00:00
eap
1943d6f613 0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm
Stupid access to NULL object
2012-10-01 13:58:55 +00:00
eap
6162a92b86 Enable searching EventListener by its name
+  const char*  GetName()     const { return myName; }
+  virtual void BeforeDelete(SMESH_subMesh*                  subMesh,
+                            SMESH_subMeshEventListenerData* data)
2012-09-24 11:26:52 +00:00
eap
9586144b53 + EventListenerData* GetEventListenerData(const std::string& listenerName) const; 2012-09-24 11:25:47 +00:00
eap
587ed40d42 Enable Transform() of 0D elements 2012-09-24 11:24:09 +00:00
eap
b59ca5c972 021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
+  SMESH_ComputeErrorPtr GMFToMesh(const char* theFileName);
+  void ExportGMF(const char * file, const SMESHDS_Mesh* mesh);
2012-09-24 11:20:01 +00:00
eap
cc048fe72d Remove this from StudyContextStruct at destructor 2012-09-24 11:19:01 +00:00
eap
2974c0b8ab 021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
when setting myName, call myGroupDS->SetStoreName( myName )
2012-09-24 11:17:56 +00:00
eap
dce6fb4fd7 021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
+	-I$(srcdir)/../DriverGMF \
2012-09-24 11:16:52 +00:00
ana
3dfa809507 Win32 compatibility 2012-09-20 08:06:33 +00:00
eap
2077709da4 0020982: EDF 1547 SMESH: Creation of non-conformal quadratic pyramids
+  void force3DOutOfBoundary( SMESH_MesherHelper&    theHelper,
+                             SMESH_ComputeErrorPtr& theError)
2012-09-17 10:18:28 +00:00
eap
12c889c3f6 0020982: EDF 1547 SMESH: Creation of non-conformal quadratic pyramids
Returns description of an error/warning occured during the last mesh edition
2012-09-17 10:18:07 +00:00
eap
7a940415de 0021559: EDF 2175 SMESH: Hexa/Tetra mixed meshes
Improve GetAlgo()
2012-09-11 13:20:29 +00:00
eap
118122435c 0021845: EDF 1855 SMESH : A no-regression test fails on RadialQuadrangle meshing
+  static TopAbs_ShapeEnum GetGroupType(const TopoDS_Shape& group,
+                                       const bool          avoidCompound=false);
2012-09-11 09:24:59 +00:00
eap
68b41560cb 0021845: EDF 1855 SMESH : A no-regression test fails on RadialQuadrangle meshing
1) fix getAlgoData()
2) correct detection of concurrent algos in GetAlgo()
2012-09-11 09:24:28 +00:00