Commit Graph

1940 Commits

Author SHA1 Message Date
eap
6444728ac0 fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A0
Allow assigning "3D Extrusion" algo to a computed 2D mesh w/o
  clearing existing 2D elements

-  void cleanDependsOn( bool keepSupportedsubMeshes = false );
+  void cleanDependsOn( SMESH_Algo* algoRequiringCleaning=0 );
2013-03-01 11:11:43 +00:00
eap
3fa0d8a978 fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A0
Fix IsStructured( SMESH_subMesh* faceSM ) for a cylindrical FACE
2013-03-01 11:10:18 +00:00
eap
54cd5176e8 fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1
Fix cleanDependsOn() which mush do at least CHECK_COMPUTE_STATE even in empty mesh
2013-02-28 15:12:29 +00:00
eap
b5d9b2799b 1) Treat GMF import/export
2) Fix RemoveArgs() not to clear the whole command if it is like "(res1,res2) = meth(arg)"
2013-02-28 14:28:04 +00:00
eap
1dbda4f113 0022134: DriverGMF : reading quadratic meshes
Fix errors of import/export of meshes including both linear and
  quadratic elements.
2013-02-28 11:36:54 +00:00
eap
12e809327d 0022134: DriverGMF : reading quadratic meshes
Fix errors of import/export of meshes including both linear and
  quadratic elements.

+  SMDS_ElemIteratorPtr elementIterator(SMDSAbs_ElementType  type);
+  SMDS_ElemIteratorPtr elementIterator(SMDSAbs_EntityType   type);
+  SMDS_ElemIteratorPtr elementIterator(SMDSAbs_GeometryType type);
2013-02-28 11:36:28 +00:00
eap
2728268e48 0022134: DriverGMF : reading quadratic meshes
+  inline int NbElements(SMDSAbs_EntityType   type) const { return NbEntities(type); }
+  inline int NbElements(SMDSAbs_GeometryType type) const { return NbElementsOfGeom(type); }
+  inline int NbElementsOfGeom(SMDSAbs_GeometryType geom) const;
2013-02-28 11:33:57 +00:00
eap
5baae36018 fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1
Compute stack of simple boxes with structured sides
2013-02-27 16:16:52 +00:00
eap
694e1f27be fix failure of non-regression test SMESH_TEST/Grids/smesh/imps7/H5
Synchronize Evaluate() with Compute()
2013-02-27 15:32:39 +00:00
eap
7d9f9fd31f fix failure of non-regression test SMESH_TEST/Grids/smesh/imps6/G0
in getSubmeshIDForCopiedMesh(), fix invalid index (subIndex==0) for OCCT map in
case if srcMeshDS->GetPersistentId() == 0
2013-02-27 14:39:34 +00:00
eap
e453ca2b46 fix failures of non-regression tests
Perform a thorough analysis of mesh on FACEs even in case of 1 SOLID
2013-02-27 13:21:20 +00:00
eap
ed66a53f3e fix failures of non-regression tests
1) compute the given bottom FACE in StdMeshers_Prism_3D::compute(const TPrismTopo& thePrism)
2) set higher priority to non-quadrilateral computed FACEs over all FACEs having structured mesh
2013-02-27 11:53:02 +00:00
eap
318c408131 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
-typedef StdMeshers_ProjectionUtils TAssocTool;
+namespace TAssocTool = StdMeshers_ProjectionUtils;
2013-02-26 10:42:13 +00:00
eap
9635ee01fa 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
1) namespace TAssocTool = StdMeshers_ProjectionUtils;
2) Use StdMeshers_ProjectionUtils::SourceNotComputedError()
2013-02-26 10:41:45 +00:00
eap
46c3601d73 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
- class StdMeshers_ProjectionUtils
+ namespace StdMeshers_ProjectionUtils

+  /*!
+   * \brief Returns an error message to show in case if MakeComputed( sm ) fails.
+   */
+  std::string SourceNotComputedError( SMESH_subMesh * sm = 0,
+                                      SMESH_Algo*     projAlgo=0);
2013-02-26 10:40:03 +00:00
eap
27bf438fc0 0022124: [CEA 763] Projection 1D does not work with Netgen 1D2D
Move struct AlgoData from SMESH_Gen.cxx to struct SMESH_Algo::Features
2013-02-26 10:37:45 +00:00
rnc
a1c4092296 Update error message about not supported types of elements. All quadratic quadrangles and hexaedra can now be written in .mesh format 2013-02-25 10:36:44 +00:00
rnc
25dbdaf408 Used new Keyword GmfExtraVerticesAt .. for reading and writing tetra and hexa quadratic meshes in GMF format 2013-02-25 10:34:59 +00:00
eap
6f79204fcf -#define __myDEBUG
+//#define __myDEBUG
2013-02-22 13:16:07 +00:00
eap
4a40272838 SALOME Forum: viscous layers builder: failed at the very first inflation step
http://www.salome-platform.org/forum/forum_10/537530484
2013-02-22 13:04:17 +00:00
eap
ab9600ccf0 0022134: DriverGMF : reading quadratic meshes
BEGINNING OF
  The way of storage of quadratic elements has been corrected
2013-02-22 08:22:12 +00:00
akl
2770bdc924 0022123: EDF 2558 SMESH: Group creation crashs with the filter "Free faces":
using reject() slot instead of closeEvent() and hideEvent().
2013-02-21 12:10:00 +00:00
eap
469f938766 0022130: EDF 2579 SMESH: Issue with Viscous Layer
fix detection of the closed EDGE
2013-02-20 16:06:58 +00:00
eap
f35cfb87a0 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been generated
SMESH_Algo::IsReversedSubMesh() is moved to SMESH_MesherHelper
2013-02-20 08:47:05 +00:00
eap
bb00f9a545 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been generated
-  SMESH_TNodeXYZ( const SMDS_MeshElement* e)
+  SMESH_TNodeXYZ( const SMDS_MeshElement* e=0)
2013-02-20 08:46:42 +00:00
eap
98e6b6eb53 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been generated
SMESH_Algo::IsReversedSubMesh() is fixed and moved to SMESH_MesherHelper
2013-02-20 08:45:49 +00:00
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
prascle
4713843820 PR: EDF 2569, correction Gerald Nicolas 2013-02-18 13:05:07 +00:00
eap
0397dbe729 - int _type; // enum hypothesis_type
+  hypothesis_type _type;  // enum hypothesis_type
2013-02-18 12:59:33 +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
jfa
aea880cf9e 0021840: [CEA 655] Scalar bar: using a logarithmic scale 2013-02-08 12:40:16 +00:00
eap
86a9f36ce4 0022091: [CEA 760] Regression on test test check_mesh_stability.py
care of quadratic elements
2013-02-06 13:05:09 +00:00
eap
9016043d99 0022091: [CEA 760] Regression on test test check_mesh_stability.py
+  void SetIgnoreMediumNodes(bool toIgnore);
2013-02-06 13:04:40 +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
6e5ef9a043 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
1) fix GetLayersTransformation(): use EDGEs in a right order
   2) Find source FACE by a local 1D hyps
2013-02-04 14:25:07 +00:00
eap
5b40fe7dff 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
fix GetLayersTransformation(): use EDGEs in a right order
2013-02-04 14:24:34 +00:00
eap
1263fe9d1b 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
find the source FACE by local 1D hyps
2013-02-04 12:18:16 +00:00
eap
fae3ba8fdd 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
fix ~faceQuadStruct() as same side can repeat in vector< StdMeshers_FaceSide*>
2013-02-04 11:41:26 +00:00
eap
4167c89c41 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
fix reversion myC3dAdaptor's
2013-02-04 11:40:07 +00:00
eap
f607610b9c explanation of file name origin 2013-02-01 15:10:26 +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
a4a38b2fb4 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Clear StdMeshers_Quadrangle_2D::myQuadStruct before usage

+      algo->myQuadStruct.reset();
2013-01-30 11:34:32 +00:00
eap
83b9e1e926 0022082: EDF 1891 SMESH: Performance issues in SMESH filters
In MapCells(SALOME_Actor*,const TColStd_IndexedMapOfInteger& theMap),
move the following code out of the loop on theMap

   UnShrink();
   if(theMapActor->IsShrunk()){
     SetShrinkFactor(theMapActor->GetShrinkFactor());
   }
   myMapIndex = theMap;
2013-01-29 15:14:57 +00:00
eap
2949f1214b fix GetPreviewData() for the case of only nodes in edition result 2013-01-28 11:10:54 +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
212d7fc62e 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
struct faceQuadStruct
 {
+  void shift( size_t nb, bool keepUnitOri );
+  typedef boost::shared_ptr<faceQuadStruct> Ptr;
 }

-  FaceQuadStruct* CheckNbEdges();
+  FaceQuadStruct::Ptr CheckNbEdges();

+  FaceQuadStruct::Ptr  myQuadStruct;
2013-01-28 08:35:01 +00:00
eap
9f2f0a0c1a 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
StdMeshers_ProjectionUtils::Count() moved to SMESH_MesherHelper::Count()
2013-01-28 08:32:01 +00:00
eap
53b3b75be6 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
arg theFirstVertex of SMESH_Block::GetOrderedEdges() became optional

StdMeshers_ProjectionUtils::Count() moved to SMESH_MesherHelper::Count()
2013-01-28 08:31:47 +00:00
eap
09024c777c more comments 2013-01-28 08:31:21 +00:00
eap
1fff018cb3 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm 2013-01-28 08:29:47 +00:00
eap
7643656ed3 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Use SMESH_MesherHelper::IsSameElemGeometry()
2013-01-28 08:29:36 +00:00
eap
c8d7fe2beb 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
-  int NbPoints() const { return myNbPonits; }
+  int NbPoints(const bool update = false) const;

-  int NbSegments() const { return myNbSegments; }
+  int NbSegments(const bool update = false) const;

+  gp_Pnt   Value3d(double U) const;

arg theFirstVertex of SMESH_Block::GetOrderedEdges() became optional
2013-01-28 08:29:06 +00:00
eap
4b17835d08 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
arg theFirstVertex of SMESH_Block::GetOrderedEdges() became optional
2013-01-28 08:27:35 +00:00
eap
b605589582 fix typo: geomerty -> geometry 2013-01-28 08:25:07 +00:00
eap
a3768a4bc0 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
+struct faceQuadStruct; // defined in StdMeshers_Quadrangle_2D.hxx
+typedef boost::shared_ptr<faceQuadStruct> TFaceQuadStructPtr;
2013-01-28 08:21:38 +00:00
eap
bde9f2c7ae 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
Make arg theFirstVertex of GetOrderedEdges() optional
2013-01-28 08:21:16 +00:00
eap
d89bbd5095 typo: geomerty -> geometry 2013-01-28 08:20:18 +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
jfa
2e3f1dc0ff Mantis issue 0020483: EDF 1117 SMESH,VISU: Mesh with descending connectivity is badly read by SMESH and VISU 2013-01-25 13:47:57 +00:00
vsr
097db70a03 0022080: [CEA 756] Regression: error at libMEDMEM_Swig.MESH function call 2013-01-25 09:00:47 +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
f5335851f1 fix mesh name at "m = smesh.Mesh(mesh)" 2013-01-22 12:40:21 +00:00
eap
7f2264006b fix exception at "m = smesh.Mesh()" 2013-01-22 12:01:47 +00:00
eap
577999dffd make Mesh.MeshDimension() work in case w/o geometry 2013-01-22 09:08:00 +00:00
inv
44d181bc0e Porting to dev version of OCCT 2013-01-22 07:25:28 +00:00
vsr
08b70d2054 Fix regression in RemoveHypothesis() method (hypothesis is not removed if mesh does not have underlying shape) caused by previous integrations 2013-01-15 12:26:34 +00:00
gdd
f9731f2518 The help document would not open 2013-01-14 17:01:13 +00:00
eap
ab3feed3ba improve default naming of meshes and geometry to mesh 2013-01-11 12:54:18 +00:00
eap
fb1aabb3d1 minor 2013-01-11 12:01:00 +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
ea7f54796a 021860: EDF 2196 SMESH : Create all the groups in an extrusion operation
-        void Add(const SMDS_MeshElement * theElem);
+        bool Add(const SMDS_MeshElement * theElem);
2013-01-11 11:58:50 +00:00
eap
8ef1551cb0 fix indentation 2013-01-10 11:33:47 +00:00
eap
b48879bb7b 21397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder
fix pattern orientation when projecting to a FACE with seam EDGE
2013-01-10 11:33:12 +00:00
eap
6f564a0788 In RemoveHypothesis() print a WARNING if the hypothesis was not
assigned to the given shape
2013-01-10 11:30:44 +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
vsr
577906c7b0 Imp: numbering font preferences 2012-12-29 11:45:10 +00:00
eap
752ad5bd14 untabify 2012-12-28 16:30:38 +00:00
eap
e9bec6bddf missing @param description 2012-12-28 16:26:40 +00:00
eap
e205108fca 0021397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder 2012-12-28 15:53:47 +00:00
eap
00ac0dfc36 typo 2012-12-28 15:53:01 +00:00
eap
64a8aee9ab 0021397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder
enable FindSubShapeAssociation() on faces with different nb of VERTEXes
2012-12-28 15:52:46 +00:00
eap
d7b0855638 prevent GetName() failure on a not CORBA object 2012-12-28 15:50:11 +00:00
eap
a763cfdd81 - <translation>%1 nodes successfully merged.</translation>
+        <translation>%1 groups of nodes successfully merged.</translation>
2012-12-28 15:49:07 +00:00
eap
d8ad3b8931 minor decoration 2012-12-28 15:48:52 +00:00
vsr
fe32ec275a Imp: Mesh Info dialog box - show node/element position not only in colocated mode 2012-12-28 14:49:43 +00:00
eap
d95ba01c50 leaks of CORBA objects 2012-12-28 11:39:35 +00:00
eap
3e47e37091 initialize myIsMultipleAllowed 2012-12-28 11:39:01 +00:00
eap
79cd67d5b8 untabify 2012-12-28 11:38:26 +00:00
eap
08f731ecd6 Use GEOM_Object_var instead of GEOM_Object_wrap for obj returned by GetMainShape() 2012-12-28 11:38:13 +00:00
vsr
fd1f32bef8 Win32 compatibility 2012-12-25 05:25:17 +00:00
eap
414745da0e 0021948]: EDF SMESH : Memory is not freed when deleting a mesh
Move declaration of GEOM::GEOM_Object_wrap form
  GEOMBase/GEOM_GenericObjPtr.h to GEOM_I/GEOM_wrap.hxx as GEOMBase is
  a part of GUI

-#include <GEOM_GenericObjPtr.h>
+#include <GEOM_wrap.hxx>
2012-12-24 13:58:17 +00:00
vsr
75be4ee0eb 0021858: EDF 2171 SMESH : Add an information about the groups an element or node belongs to
- additional minor change: trim long group names
2012-12-21 11:06:26 +00:00