Commit Graph

164 Commits

Author SHA1 Message Date
eap
911ca90c3d IPAL53401: BelongToGeom is very long on multiple lines
More optimization of octree + parallel update of GroupOnFilter

  Remove useless warnings
2016-06-27 20:07:19 +03:00
eap
ef3921b2af IPAL52980: Wire Discretization with Table density fails
fix this problem for all 1D hypotheses (StdMeshers_Regular_1D.cxx)
  Bug report: http://www.salome-platform.org/forum/forum_10/636759606

Fix compilation warnings:
  - unused function
  - missing virtual destructor
  - variable set but not used
2016-06-10 20:47:53 +03:00
eap
f3e2b7fea2 53225: Viscous Layers hyp: problem with selection of input/output faces
(StdMeshersGUI_SubShapeSelectorWdg.cxx)

+ Remove useless MESSAGEs
2016-05-11 15:13:17 +03:00
vsr
7eda9ca931 Copyright update: 2016 2016-03-18 20:10:28 +03:00
eap
20248b6e76 23237: EDF 12367 - SIGSEGV with Remove group
(SMESH_Gen_i_1.cxx)

IPAL53059: Not all solids are highlighted by magenta
  (SMESHGUI_ComputeDlg.cxx)

+ remove "using namespace std" from headers
2016-02-15 15:08:20 +03:00
eap
dbf226547f IPAL53073: Hexotic Mesh is not compute 2016-01-22 20:10:27 +03:00
eap
3c33b14157 0023212: EDF 12054 - Problem with a pyramidal layer 2016-01-20 16:02:17 +03:00
eap
59627b07d7 Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
+ Fix compilation warnings
2016-01-13 16:47:35 +03:00
eap
3369d458ea IPAL52935: "Apply and Close" button is not available in "Make 0D Elements on Element Nodes" dialog box
(SMESHGUI_Add0DElemsOnAllNodesDlg.cxx)

Eliminate compilation warnings (all the rest files)
2015-10-27 20:47:31 +03:00
eap
11bba48d41 23081: [CEA 1496] Control merge nodes behaviour: set fixed nodes
Change dlg layout by request of http://salome.mantis.opencascade.com/view.php?id=23081#c20415
2015-09-24 19:17:33 +03:00
eap
fd96feab4b Debug 23078: [CEA 1498] Sewing of meshes without having to set the nodes ids 2015-09-23 17:47:26 +03:00
eap
02ac54c6f3 IMP 23078: [CEA 1498] Sewing of meshes without having to set the nodes ids 2015-09-18 17:10:34 +03:00
eap
081f12102e 23151: EDF 9626 SMESH: Opening an existing study makes salome end with an allocation error when closing.
Fix ~SMESH_Gen_i()

Regression 2D_mesh_Polygons_00/A2
  Fix DriverSTL_W_SMDS_Mesh.cxx

IPAL52658: Quadrangle (Mapping) makes invalid mesh with Enforced vertices
IPAL52654: Quadrangle (Mapping) with enforced vertices works wrong
IPAL20729: Difference in behaviour of selection for Rotation against Translation, Symmetry after Apply.
IPAL9947: SMESH – Merge nodes dialog box
2015-09-02 17:39:00 +03:00
eap
1dd2f82c6d IPAL52781: Orientation of a wall face created by revolution is wrong
IPAL52850: ConvertToQuadratic creates invalid triangles
Regression of imps_09/K0
2015-08-28 20:03:25 +03:00
eap
87c954b31c 52846: It is impossible to select edge in OB as reversed edge for hypothesis
52826: Radial Quadrangle algorithm meshes a quad face from which a circle was cut from but it must fail
52227: Group is not shown during edition
52780: Wrong mesh after STL re-import of a polygonal element
52825: Sew Borders does not care of segment adjacent to split faces, thus segments become non-conformal
52824: Sew Free Borders sews borders as conformal thus producing very skewed quads instead of polygons
2015-08-19 17:32:58 +03:00
eap
741a54331a 52780: Wrong mesh after STL re-import of a concave polygonal element 2015-08-14 20:14:27 +03:00
eap
23d90107ac 0023064: [CEA 1471] Create and support quadratic polygons in SMESH 2015-06-24 12:17:07 +03:00
eap
df9cc07c95 Regression of smesh/mesh_Projection_2D_01/B7
Fix SMESH_MeshEditor::Smooth()

Optimize a bit SMDS_MeshNode::GetInverseElementIterator()

Minimize usage of BRepClass_FaceClassifier in StdMeshers_Import_1D2D::Compute()
2015-05-13 16:03:36 +03:00
eap
83a3c8aef5 52730: Activation of SMESH fails after GEOM group modification
Fix SMESH_Mesh_i::CheckGeomGroupModif()

52731: Exception at export of SEG3 groups
  Fix BUGs concerning Export:
1) Exception at export of the SEG3 group as a separate object.
2) Many formats available in the pop-up menu when several objects selected while only MED and CGNS formats support several meshes in one file.
3) Export of the mesh and its group to the same file results of storage of the group only. Object names are not kept.
2015-05-06 14:30:51 +03:00
eap
bbca2cb797 IMP 22264: EDF 2648 GEOM: Propagate edges automatic orientation
+ Optimize SMDS_VolumeTool::IsFreeFace()
+ Add icons for Evaluate and Change Sub-mesh order
+ Make "Meduim nodes on geometry" ON by default
+ Disable "Group on geometry" if mesh is not on geometry
+ SMESHGUI_MeshOp: fix switch from Sub-mesh creation to Sub-mesh edition
2015-03-25 12:36:47 +03:00
akl
251f8c052d Copyrights update 2015. 2015-02-13 12:38:36 +04:00
eap
b13aae09cf 22833: [CEA 1346] to extrude a group of faces following the normal of each face
+ Optimize Belong to geom filter
+ Avoid SIGSEGV after re-computing a mesh if showing numbers was ON before
2015-01-23 18:49:49 +03:00
vsr
30415e15ac Issue 0022816: duplicated files
Don't install chrono.hxx file
2014-12-03 14:04:51 +03:00
eap
2246612bb5 Fix regressions
3D_mesh_Extrusion_00/A6
3D_mesh_Polyhedrons_00/A2,A3
groups_07/H1
imps_06/G0
imps_07/H2,H4,H5,H7
imps_08/I5
2014-08-22 21:16:01 +04:00
eap
f1013bf724 52457: Addition of hypotheses is 8 time longer than meshing.
More optimization
2014-07-23 20:04:21 +04:00
eap
c85da25c70 52426, 22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off
For ConvertToQuadratic: fix a case with a seam edge located not at zero parameter
 For Viscous layers: fix getting normal at a corner classified as 'Reversed' (+-PI)
2014-05-21 14:48:00 +04:00
Paul RASCLE
f87f0664bb pre: fix bug EDF 7854: src/SMDS/SMDS_UnstructuredGrid.cxx SMDS_UnstructuredGrid::extrudeVolumeFromFace(...) 2014-05-05 16:03:20 +02:00
eap
e2c7e8b8f4 Remove useless traces 2014-04-30 15:04:46 +04:00
eap
4edb4666f4 SALOME_TESTS/Grids/smesh/3D_mesh_NETGEN_02/C1
File descriptor 0 is valid
2014-04-29 20:31:59 +04:00
eap
375935ef89 Fix a regression introduced by IMP 22316: EDF 2719 SMESH: Split hexas into prisms 2014-03-13 22:17:11 +04:00
eap
97787812e2 ILMAB: export GEOM fields to MED file 2014-03-05 17:42:42 +04:00
akl
b0a908c0d2 Update copyrights 2014. 2014-02-20 16:25:37 +04:00
eap
b9b3af112d 22316: EDF 2719 SMESH: Split hexas into prisms
+  static int GetOppFaceIndexOfHex( int faceIndex );
2014-01-20 10:32:49 +00:00
eap
80d5c05fce 22316: EDF 2719 SMESH: Split hexas into prisms
+  virtual SMDSAbs_GeometryType GetGeomType()  const { return SMDSGeom_POLYGON; }
2014-01-20 10:32:30 +00:00
eap
f500e5a8b6 22316: EDF 2719 SMESH: Split hexas into prisms 2014-01-20 10:31:23 +00:00
fahed
8fcd118698 Small fix for windows 2013-11-28 08:41:47 +00:00
rnv
e33e8e2029 WIN32 compilation of the SMESH module:
1) Fix common WIN32 compilation errors.
2) Replace WNT deprecated macro definition by the WIN32.
3) Remove unnecessary test executables.
4) Make MEFISTO2D algorithm optional: try to determine f2c generator and generate C code from Fortran, otherwise MEFISTO2D is unavailable.
2013-10-18 13:29:00 +00:00
rnv
1bd4ba8acd Porting SALOME SMESH module to the CMake build system: initial version. 2013-10-10 12:57:42 +00:00
eap
c4b93d024f SALOME Forum bug: http://www.salome-platform.org/forum/forum_10/967838025
Fix the problem of element-submesh relation restoring at study loading
in case if some faces have ids lower than segments.

Now TIDCompare does not compare types, a new comparator created for this:
+struct TIDTypeCompare {
2013-08-23 13:11:32 +00:00
eap
dac0310307 Fix regression of SMESH_TEST/Grids/smesh/imps6/G0
Reset node data when it is removed
+      ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse
2013-08-15 12:08:51 +00:00
vsr
4d6cb35b78 Merge from V7_2_BR 09/08/2013 2013-08-12 10:50:36 +00:00
eap
c2a497190b 0022297: BR_new_bop3/Occdev_3f4689a163 => Faces are missing after an extrusion
Fix IsFreeFace() for a polyhedron
2013-08-08 12:34:43 +00:00
prascle
ef59152514 PR : merge from V7_2_1p1
memory leaks, bug in import 1D for cracks
M src/SMDS/SMDS_UnstructuredGrid.cxx
M src/SMESH/SMESH_MeshEditor.cxx
M src/SMESH/SMESH_MesherHelper.cxx
M src/SMESHUtils/SMESH_MeshAlgos.cxx
M src/SMESHUtils/SMESH_MeshAlgos.hxx
M src/SMESHUtils/SMESH_Octree.hxx
M src/SMESHUtils/SMESH_Tree.hxx
M src/SMESH_PY/smeshstudytools.py
M src/StdMeshers/StdMeshers_Import_1D.cxx
2013-08-03 11:11:12 +00:00
eap
c17253baf7 Fix GetNodeIndex() for polygon 2013-07-29 12:15:22 +00:00
eap
01d8b02caa Rm duplicated SMDS_MeshElement::setVtkId(int vtkId)
-  inline void setVtkId(int vtkId) { myVtkID = vtkId; };
2013-07-29 11:51:02 +00:00
eap
6ae2a9da94 Optimize SMDS_MeshElement::GetNodeIndex()
+  virtual int GetNodeIndex( const SMDS_MeshNode* node ) const;
2013-07-29 11:49:21 +00:00
eap
da2b448af1 Optimize SMDS_MeshElement::GetNodeIndex()
-  int GetNodeIndex( const SMDS_MeshNode* node ) const;
+  virtual int GetNodeIndex( const SMDS_MeshNode* node ) const;
2013-07-29 11:48:56 +00:00
eap
4689443745 22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
-      newFaceLocations->Register(this);
-      newFaces->Register(this);
2013-07-24 14:46:09 +00:00
rnc
094287b4df BUG: EDF 2655: Hexa splitting into tetra low performance
A better fix has been found by improving the getNextFree() method in ObjectPool.hxx. When there is no "hole" in the ID list we don't iterate on the _freeList to find the next free ID. We jump straight to the last occupied ID.
This fix is simpler and can benefit to other methods of SMESH_Editor like QuadTo4Tri for example.
2013-07-22 08:46:57 +00:00
eap
c25ddc7d49 0022108: EDF 2547 SMESH: Duplicate elements only
More filters

+  struct Filter
+  {
+    virtual bool operator()(const SMDS_MeshElement* e) const = 0;
+    ~Filter() {}
+  };
+  struct NonNullFilter: public Filter
2013-05-28 16:41:00 +00:00
eap
c922a9cc64 Fix GetNode() for polyhedron 2013-05-28 16:40:15 +00:00
eap
82b050103f + void SetParameters(double aUparam, double aVparam); 2013-05-22 14:54:20 +00:00
eap
c2c0a21343 - virtual SMDS_ElemIteratorPtr nodesIteratorToUNV() const;
-  virtual SMDS_ElemIteratorPtr interlacedNodesElemIterator() const;
+  virtual SMDS_NodeIteratorPtr nodesIteratorToUNV() const;
+  virtual SMDS_NodeIteratorPtr interlacedNodesIterator() const;
2013-05-16 16:17:16 +00:00
eap
1267641d31 0022100: EDF 2413 SMESH: Take into account TRIA7
Now  SMDS_VtkCellIteratorToUNV inherits from SMDS_NodeIterator and
hence next() returns a node

-class SMDS_VtkCellIteratorToUNV: public SMDS_VtkCellIterator
+class SMDS_VtkCellIteratorToUNV: public SMDS_NodeIterator, protected SMDS_VtkCellIterator
 {
 public:
   SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCellId, SMDSAbs_EntityType aType);
+  virtual const SMDS_MeshNode* next();
+  virtual bool more();
   virtual ~SMDS_VtkCellIteratorToUNV();
 };
2013-05-16 16:16:22 +00:00
eap
5030955be8 Make IsFreeFace() fast, the old implementation of IsFreeFace() is renamed -> IsFreeFaceAdv()
bool IsFreeFace(  int faceIndex, const SMDS_MeshElement** otherVol=0 ) const;
-  // Check that all volumes built on the face nodes lays on one side
+  // Fast check that only one volume is built on nodes of a given face
+  // otherVol returns another volume sharing the given facet
+
+  bool IsFreeFaceAdv(  int faceIndex, const SMDS_MeshElement** otherVol=0 ) const;
+  // Thorough check that all volumes built on the face nodes lays on one side

+  bool IsPoly() const { return myPolyedre; }
2013-05-16 16:14:01 +00:00
eap
580dfddb72 0022100: EDF 2413 SMESH: Take into account TRIA7 2013-05-16 16:11:35 +00:00
eap
c448c8ff74 - SMDS_ElemIteratorPtr interlacedNodesElemIterator() const; 2013-05-16 16:10:37 +00:00
eap
010ee1ec71 0022100: EDF 2413 SMESH: Take into account TRIA7
+  int NbBiQuadTriangles() const { return myNbBiQuadTriangles; }
2013-05-16 16:08:36 +00:00
eap
24d5088297 - virtual SMDS_ElemIteratorPtr nodesIteratorToUNV() const;
+  virtual SMDS_NodeIteratorPtr nodeIterator() const;
+  virtual SMDS_NodeIteratorPtr interlacedNodesIterator() const;
+  virtual SMDS_NodeIteratorPtr nodesIteratorToUNV() const;
2013-05-16 16:08:00 +00:00
eap
90925ba7c0 0022100: EDF 2413 SMESH: Take into account TRIA7
+  virtual SMDS_MeshFace* AddFace(const SMDS_MeshNode * n1,
+                                 const SMDS_MeshNode * n2,
+                                 const SMDS_MeshNode * n3,
+                                 const SMDS_MeshNode * n12,
+                                 const SMDS_MeshNode * n23,
+                                 const SMDS_MeshNode * n31,
+                                 const SMDS_MeshNode * nCenter);

+  virtual void MoveNode(const SMDS_MeshNode *n, double x, double y, double z);
2013-05-16 16:06:21 +00:00
eap
77bf33663f indentation 2013-05-16 16:04:50 +00:00
eap
7cd54f6b75 0022100: EDF 2413 SMESH: Take into account TRIA7
+      _cellDimension[VTK_BIQUADRATIC_TRIANGLE] = 2;
2013-05-16 16:04:30 +00:00
eap
42462cd3f9 0022100: EDF 2413 SMESH: Take into account TRIA7
+  SMDSEntity_BiQuad_Triangle,
2013-05-16 16:04:10 +00:00
eap
250c4f2244 Regression of XSMESH_TEST/SMESHCOMMON/SMESH_TEST/Grids/smesh/bugs12/M6
Fix the ensuring stability of SMESH_MeshEditor::makeWalls(). Allow
storing both nodes and cells in one map sorted by ID.


struct TIDCompare {
   bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2) const
-  { return e1->GetID() < e2->GetID(); }
+  { return e1->GetType() == e2->GetType() ? e1->GetID() < e2->GetID() : e1->GetType() < e2->GetType(); }
2013-04-26 11:46:58 +00:00
vsr
bd8f1aee7c Merge from V6_main 01/04/2013 2013-04-01 13:05:47 +00:00
vsr
de9ffb0699 Merge from V6_main 19/03/2013 2013-03-19 16:22:36 +00:00
vsr
7aebb99e42 Merge from V6_main 06/03/2013 2013-03-06 13:57:01 +00:00
vsr
ae29d46509 Merge from BR_PORTING_VTK6 01/03/2013 2013-03-01 13:13:25 +00:00
vsr
88b3dbe23b Merge from V6_main 28/02/2013 2013-02-28 15:07:35 +00:00
vsr
9a54694a0a Merge from V6_main 11/02/2013 2013-02-12 14:37:44 +00:00
vsr
1067ffa6e7 Merge from V6_main 13/12/2012 2012-12-13 11:41:29 +00:00
vsr
f5016d85b7 Merge from V6_main (04/10/2012) 2012-10-08 11:56:59 +00:00
vsr
bd4e115a78 Merge from V6_main_20120808 08Aug12 2012-08-09 10:03:55 +00:00
vsr
0635c9fc80 Merge from BR_V5_DEV 16Feb09 2009-02-17 05:27:49 +00:00
jfa
79b1ac2b6d Join modifications from BR_Dev_For_4_0 tag V4_1_1. 2008-03-07 07:47:05 +00:00
jfa
c63ee099ad Join modifications from branch BR_DEBUG_3_2_0b1 2006-06-01 11:39:17 +00:00
jfa
57b43b4d01 Join modifications from branch OCC_debug_for_3_2_0b1 2006-05-06 08:51:48 +00:00
jfa
4ff5bd6154 Join modifications from branch OCC_development_for_3_2_0a2 2006-03-13 15:29:49 +00:00
smh
2754c581d3 Copyrights update 2005-12-05 16:31:55 +00:00
eap
52f87e4dea IMP 10199 (add Volume Control). Implement GetSize(). Add GetVolumeType() of instance 2005-10-10 14:38:24 +00:00
eap
365fd031c5 IMP 10199 (add Volume Control). Add GetVolumeType() of instance 2005-10-10 14:37:11 +00:00
szy
d9d247d43d Windows porting 2005-08-31 10:10:42 +00:00
szy
42c7eb97f9 Windows porting 2005-08-30 12:57:02 +00:00
sln
bbfbac1990 GetElementType method added 2005-08-23 08:58:58 +00:00
eap
5a053fbfd0 fix compilation error 2005-06-15 05:31:12 +00:00
eap
5467bb25d4 PAL9163. Fix GetFaceNormal() for badly shaped quadrangles 2005-06-14 10:19:12 +00:00
smh
c38c10811a SMH: Preparation version 3.0.0 - merge (HEAD+POLYWORK) 2005-06-07 13:22:20 +00:00
san
e465982eeb Implementation of new pattern mapping algorthm (mesh refinement) 2005-01-20 14:44:17 +00:00
admin
090aff0726 Merge with OCC_development_01 2005-01-20 06:25:54 +00:00
admin
e4737e85f0 Merge with version on tag OCC-V2_1_0d 2004-12-01 10:48:31 +00:00
yfr
c3bf92bd87 DCQ : Merge with Ecole_Ete_a6. 2004-06-18 08:34:31 +00:00
jrt
9fad60b470 Fix bug SMESH5512 (Crash on DEBIAN woody, V1_4_0b). 2004-03-23 09:48:58 +00:00
jrt
7b70ad87bf Merge br_enable_import_mesh. Enable import mesh and save/load SMESH study. 2004-03-15 18:42:16 +00:00
jrt
642ed0a836 Fix a bug (crash when adding an hexahedron from ids). 2004-02-02 16:43:59 +00:00
jrt
fad0769be8 [Bug SMESH4830] bug in instal with gcc 2.95. Bug fixed.
Note: SGI say that <algorithm> is requiered to use set_intersection (see http://www.sgi.com/tech/stl/set_intersection.html).
2004-01-05 09:05:43 +00:00
jrt
81ed9b4662 Fix/implement removeNode, removeEdge, removeFace, removeVolume and removeElement 2003-10-22 15:28:19 +00:00
jrt
e02efafc15 Fix a bug. Quadrangles were added as triangles. 2003-10-17 16:31:14 +00:00
jrt
bef8537764 Keep compatible with gcc 2 2003-09-23 14:33:41 +00:00
jrt
5eead45ced Freshly added file 2003-09-22 12:23:34 +00:00
jrt
e0b529896b Add HexahedronOfNodes and Tria3OfNodes to improve performance 2003-09-12 15:12:19 +00:00