Commit Graph

2252 Commits

Author SHA1 Message Date
eap
634ea8043b fix CheckGeomGroupModif() for the case of a mesh on a geom group 2013-03-22 15:33:42 +00:00
vsr
76e8fd2ab5 Distribute CMakeLists.txt files with sources (make dist) 2013-03-20 12:07:34 +00:00
rnv
d9fd3627d7 Install python examples. 2013-03-19 15:32:40 +00:00
jfa
eb87f5715c 0020483: Mesh with descending connectivity. Fix for the case when the same entities are defined in both connectivities. 2013-03-19 10:23:26 +00:00
eap
e03f3c1659 0022150: [CEA 789] Projection_1D2D not taken into account by BLSURF
Fix a problem with visualisation of 'left_translated' mesh.

SMDS_Mesh::SMDS_Mesh()
{ ...
-  points->SetNumberOfPoints(SMDS_Mesh::chunkSize);
+  points->SetNumberOfPoints(0);
2013-03-19 08:36:53 +00:00
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
rnv
d2d27158f1 Update header. 2013-03-15 12:39:11 +00:00
vsr
78a939eef6 Fix for user docs (add dependency of usr_docs on html_docs) 2013-03-15 11:43:14 +00:00
vsr
5bf2863768 Fix problem with generating user docs with CMake (make usr_docs) 2013-03-15 09:40:23 +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
b5f12761af 0022166: [CEA 792] Regression on 07_Pentahedron.py, 12_3d_extrusion.py
and 13_projection_3d.py scripts from CEA test base

Set implicitly created nodes (medium and central ones) to shape
independently of mySetElemOnShape
2013-03-13 17:14:05 +00:00
eap
e64b615389 Cast negligible values to zero in order not to have a range of control
values of e.g. taper [0, 1e-13]
2013-03-13 08:35:24 +00:00
eap
37b13e00d4 In OnEditDelete(),
+    // Call mesh->Clear() to prevent loading mesh from file caused by hypotheses removal
+    ...
2013-03-12 13:46:11 +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
dbd3054f4f Fix FirstVertexOnCurve(edge): use MakeVertexOnCurve() instead of
KindOfShape() to find the EDGE beginning
2013-03-12 11:28:32 +00:00
eap
1303d07964 In MergeNodes():
+        // set _alwaysComputed to a sub-mesh of VERTEX to enable mesh computing
+        // after MergeNodes() w/o creating node in place of merged ones.
+        ...
2013-03-12 11:26:10 +00:00
eap
28489e5c19 Fix the regression entered by fix of
0021999: EDF 2480 SMESH : Aspect ratio on a flat mesh

-    if ( A < theEps )
-      return theInf;
+    if ( A < Precision::Angular() )
+      return 0.;
2013-03-11 11:10:27 +00:00
eap
fd24bd006b Fix a bug reported in SALOME Forum
http://www.salome-platform.org/forum/forum_10/862626562

Fix LoadNodeColumns() for the base EDGE w/o viscous layers but on
which the mesh is squeezed by viscous layers on adjacent EDGEs
2013-03-07 08:50:01 +00:00
eap
19ddff45f9 PPGP issue.
Make a script valid even if some involved object are not published:
eliminate SetName() and object removal from the scrip

SMESH_2smeshpy::
   ConvertScript(const TCollection_AsciiString&            theScript,
                 Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
                 Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
+                std::set< TCollection_AsciiString >&      theRemovedObjIDs,
                 SALOMEDS::Study_ptr&                      theStudy,
                 const bool                                theHistoricalDump);
2013-03-07 08:37:57 +00:00
eap
23d265a7a7 PPGP issue. Fix dump of not published SMESH_IDSource's. As a result
DumpStudy command fails.
2013-03-06 16:30:42 +00:00
eap
77f09a6ae5 def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
study = smeshpyD.GetCurrentStudy()
+        if not study: return None
         scomp = study.FindComponent(smeshpyD.ComponentDataType())
2013-03-06 16:03:18 +00:00
eap
f3304d692b Translate(022150: [CEA 789] Projection_1D2D not taken into account by BLSURF
Fix the previous integration
2013-03-06 14:16:29 +00:00
eap
170c6d4f11 white space modif 2013-03-06 13:37:00 +00:00
eap
31345e6622 In Translate*() allow for definition of Vector as a list of 3 components 2013-03-06 13:36:33 +00:00
eap
71b66afd04 022150: [CEA 789] Projection_1D2D not taken into account by BLSURF
enum compute_event {
     ...
+    COMPUTE_SUBMESH
2013-03-06 13:34:53 +00:00
eap
0a56ccc761 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 2013-03-06 11:20:41 +00:00
eap
52ffb07d75 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
add criterion SMESH::FT_EntityType
2013-03-06 08:36:13 +00:00
eap
91a2b8aad9 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 2013-03-06 08:35:11 +00:00
eap
acf3857e67 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
Add exceptions

+    void ConvertToBiQuadratic(in boolean        theForce3d,
+                              in SMESH_IDSource theObject)
2013-03-06 08:34:46 +00:00
eap
640a246d06 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+    FT_EntityType,

+  interface ElemEntityType : Predicate{

+    ElemEntityType    CreateElemEntityType();
2013-03-06 08:34:11 +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
e8589cb6af 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
-    def ConvertToQuadratic(self, theForce3d, theSubMesh=None):
+    def ConvertToQuadratic(self, theForce3d, theSubMesh=None, theToBiQuad=False):
2013-03-06 08:31:58 +00:00
eap
4b7538ca03 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+    operator<<(const SMESH::EntityType& theArg);
2013-03-06 08:30:04 +00:00
eap
d1d0695ce5 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
Add exceptions

+  void           ConvertToBiQuadratic(CORBA::Boolean            theForce3d,
+                                      SMESH::SMESH_IDSource_ptr theObject)

+  void convertToQuadratic(CORBA::Boolean            theForce3d,
+                          CORBA::Boolean            theToBiQuad,
+                          SMESH::SMESH_IDSource_ptr theObject = SMESH::SMESH_IDSource::_nil())
2013-03-06 08:29:43 +00:00
eap
caef356842 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+  class SMESH_I_EXPORT ElemEntityType_i: public virtual POA_SMESH::ElemEntityType,
+                                         public virtual Predicate_i
2013-03-06 08:28:25 +00:00
eap
8f6c844ca6 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+  operator<<(const SMESH::EntityType& theArg)
2013-03-06 08:22:55 +00:00
eap
ee2ad1063a 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
1) Treat SMESH.FT_EntityType criterion type
2) ConvertToBiQuadratic(...) -> ConvertToQuadratic(...,True)
2013-03-06 08:22:30 +00:00
eap
f2d9abb577 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+  inline static gp_XY calcTFI(double x, double y, ...
+  void SetIsBiQuadratic(const bool theBuildBiQuadratic);
+  const SMDS_MeshNode* GetCentralNode(const SMDS_MeshNode* n1, ...

+  std::map< TBiQuad, SMDS_MeshNode* > myMapWithCentralNode; // central nodes of faces
+  bool            myCreateBiQuadratic;
2013-03-06 08:14:30 +00:00
eap
b3b654c67b 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
-  void ConvertToQuadratic(const bool theForce3d);
+  void ConvertToQuadratic(const bool theForce3d, const bool theToBiQuad);
2013-03-06 08:12:22 +00:00
eap
f0cd60b411 0021859: SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27
+    class SMESHCONTROLS_EXPORT ElemEntityType: public virtual Predicate{
2013-03-06 08:11:01 +00:00
eap
13ba132d92 make a picture of central nodes of HEX27 2013-03-06 08:06:08 +00:00
vsr
39980f8b0b Fix problem of 'make installcheck' - set proper environment for tests 2013-03-05 06:07:29 +00:00
eap
f0275eace6 Remove "Suspicious continuation in line 85" 2013-03-04 14:02:27 +00:00
eap
39c2e0502a 0021859: EDF 2191 SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 2013-03-04 10:13:46 +00:00
eap
40d4699681 0021859: EDF 2191 SMESH : Add conversion from QUAD8 to QUAD9 and from HEXA20 to HEXA27 2013-03-04 10:07:58 +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
0cf41cbddc a bit more comments 2013-03-01 16:44:43 +00:00