Commit Graph

282 Commits

Author SHA1 Message Date
eap
a83c7a3df1 restore the previous version of segLength() in order not to damage a
stable version with a minor fix. This revision must be rolled back
after the version release!
2013-03-19 08:23:47 +00:00
eap
24d17babc5 Define DBGOUT in release mode as well
+#else
+#define DBGOUT(msg)
2013-03-15 08:02:36 +00:00
eap
60f63d70ba 0022166: [CEA 792] Regression on 07_Pentahedron.py, 12_3d_extrusion.py
and 13_projection_3d.py scripts from CEA test base

fix the regression on test_Prism3D_Improved.py (imps9/K2)

+    // not add not quadrilateral FACE as we can't compute it
+    // else if ( !quadAlgo->CheckNbEdges( theMesh, face ))
+    // // not add not quadrilateral FACE as it can be a prism side
+    // // else if ( myHelper->Count( face, TopAbs_EDGE, /*ignoreSame=*/false ) != 4 )
+    // {
+    //   notQuadFaces.push_back( face );
+    // }
2013-03-14 08:45:22 +00:00
eap
899e1770d9 0022166: [CEA 792] Regression on 07_Pentahedron.py, 12_3d_extrusion.py
and 13_projection_3d.py scripts from CEA test base

When projecting quadratic 1D mesh to a 'vertical' composite side, fix
node location before creating a quadratic segment in order to have a
valid position (U and shape) of medium node.
2013-03-13 17:17:24 +00:00
eap
6da7fe1a54 // S = S0 * f(L/Lmin) where f(x) = 1 + (7 * 2/Pi * atan(x/5))
+    // The above formular gives too short segments when Lmax/Lmin is too high
+    // because by this formular the largest segment is only 8 times longer than the
+    // shortest one ( 2/Pi * atan(x/5) varies within [0,1] ). So a new formular is:
+    // f(x) = 1 + (x/7 * 2/Pi * atan(x/5))
2013-03-12 11:31:32 +00:00
eap
170c6d4f11 white space modif 2013-03-06 13:37:00 +00:00
eap
9be2d55b4b 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
-      editor.ConvertToQuadratic(/*theForce3d=*/false, tgtFaces);
+      editor.ConvertToQuadratic(/*theForce3d=*/false, tgtFaces, false);
2013-03-06 08:33:31 +00:00
eap
db7638e9f9 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
-      map< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin();
+      multimap< double, int >::reverse_iterator maxLen_i = len2edgeMap.rbegin();
2013-03-06 08:32:30 +00:00
eap
d17c1bedcc fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A1
+//   bool isDegenTria( const SMDS_MeshNode * nn[3] )
+//   {

+    // It was an attemp to fix a problem of a zero area face whose all nodes
+    // are on one staight EDGE. But omitting this face makes a hole in the mesh :(
+    // if ( !isDegen && allNodesAreOld )
+    //   isDegen = isDegenTria( nn );
2013-03-01 16:45:29 +00:00
eap
560e3a2a7f a bit more comments 2013-03-01 14:37:27 +00:00
eap
3f790d0220 fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A1
Let the helper set nodes on shape to avoid the pb with a medium nodes
 set by mistake to EDGE instead of FACE.
 The case is a triangle whose 3 nodes are on the same EDGE. The worst
 is that in this case the medium node which is logically on FACE falls
 to a straight EDGE, as the triangle is of zero area.
2013-03-01 14:37:03 +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
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
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
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
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
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
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
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
inv
44d181bc0e Porting to dev version of OCCT 2013-01-22 07:25:28 +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
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
vsr
13ff1c4641 Merge from V6_6_BR (V6_6_0rc2) 11/12/2012 2012-12-11 13:23:39 +00:00
eap
43839bab02 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
Add StdMeshers_ViscousLayers2D hypothesis
2012-10-15 14:52:18 +00:00
eap
40e5fd72da 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
1) Move struct uvPtStruct to SMESH_TypeDefs.hxx
2) Enable work with a SMESH_ProxyMesh
2012-10-15 14:41:16 +00:00
eap
8b733351ad 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
+	StdMeshers_ViscousLayers2D.cxx \
2012-10-15 14:39:45 +00:00
eap
e1f28b0a35 More precise error description 2012-10-10 11:29:08 +00:00