Commit Graph

2282 Commits

Author SHA1 Message Date
eap
d6600c3aeb Remove reference to NETGEN from AutomaticTetrahedralization(), a default
triangular algorithm is used.
2013-04-03 14:39:29 +00:00
eap
5a2b960dfb 0021556: EDF 2222 SMESH: 3D mesh after projection impossible
Apply all-dimensional algos ("algos1") before applying
non-all-dimensional algos which are more local than all-dimensional
algos of upper dimension than algos1.
E.g.
 * global on a COMPOUND of SOLIDs: "Prism 3D"
 * local  on a SOLID: "Regular 1D"
 * local  on a FACE:  "Projection 1D-2D"
Fix is to apply "Projection 1D-2D" before applying "Regular 1D".
2013-04-03 12:50:17 +00:00
eap
1ade2bddc1 0021556: EDF 2222 SMESH: 3D mesh after projection impossible
Fix association of FACEs by propagation in case if many propagation
ways are available.
2013-04-03 12:37:35 +00:00
akl
5601792b85 Fix of INT PAL 0022929: TC6.5.0: Filter 'Color of Group' dosn't work:
set 'C' locale to operate with '.' (dot) as decimal point during converting from string to double.
2013-04-03 09:47:34 +00:00
eap
0f85ac62f7 Fix OwnHypothesis()
-        if not distribHyp:
+        if not self.distribHyp:
2013-04-02 13:06:05 +00:00
vsr
641a9ef553 Verbatim headers (fix mistake in previous integration) 2013-04-01 12:23:11 +00:00
imn
5ae8cfd338 Avoid verbatim copy of sources in the developer documentation 2013-04-01 09:39:46 +00:00
eap
0de9672b5e 0022183: EDF SMESH: Error with ConvertToQuadratic
In AddNode(), throw an exception only if a node is already in an other
sub-mesh or its position in myNodes is wrong.
2013-03-29 15:22:09 +00:00
eap
7daf8d6589 0022183: EDF SMESH: Error with ConvertToQuadratic
In getMediumNodeOnComposedWire(), prevent an exception at setting a
medium node, already added to a sub-mesh in AddNode() due to
mySetElemOnShape==true, to another EDGE.
2013-03-29 15:20:32 +00:00
eap
b017154701 0022183: EDF SMESH: Error with ConvertToQuadratic
In ConvertToQuadratic(), not set quadratic elements on shapes when converting
linear elements not assigned to any shape
2013-03-29 15:17:24 +00:00
eap
b59de0167b 0022182: EDF SMESH: Mesh does not compute after a "Clear Mesh Data"
bool SMESH_subMesh::ComputeStateEngine(int event)
{
...
+  if ( event == CLEAN )
+    _alwaysComputed = false; // Unset 'true' set by MergeNodes() (issue 0022182)
}
2013-03-29 14:24:07 +00:00
eap
14ecb49e31 0051789: TC7.2.0: NoteBook cannot update study
void StdMeshers_LayerDistribution_i::LoadFrom( const char* theStream )
{

+        SMESH::SMESH_Hypothesis_var me = _this();
+        hyp1D->SetHolderHypothesis( me );
2013-03-29 13:38:04 +00:00
eap
15a0260a97 0051789: TC7.2.0: NoteBook cannot update study
-  StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr,
-                                          const QString&,
-                                          QDialog*);
+  StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr holderHyp,
+                                          SMESH::SMESH_Hypothesis_ptr distribHyp,
+                                          const QString&              name,
+                                          QDialog*                    dlg);

 private:
+ SMESH::SMESH_Hypothesis_var myHolderHyp;
2013-03-29 13:37:23 +00:00
eap
daf037da97 0051789: TC7.2.0: NoteBook cannot update study
Fix for "NumberOfSegmants" contained in "LayerDistribution" hypothesis
2013-03-29 13:36:15 +00:00
eap
21a7cf3d64 0051789: TC7.2.0: NoteBook cannot update study
Fix for "LayerDistribution" hypothesis

+    // string preceding an entry of object storing the attribute holding var names
+    static const char* ObjPrefix() { return " # OBJ: "; }
2013-03-29 13:35:25 +00:00
eap
b72983c0ad 0051789: TC7.2.0: NoteBook cannot update study
Fix for "LayerDistribution" hypothesis

+  const std::string & GetLastObjEntry() const { return myLastObj; }

+  std::string  myLastObj;
2013-03-29 13:34:37 +00:00
eap
cdff506eaf 0051789: TC7.2.0: NoteBook cannot update study
Fix for "LayerDistribution" hypothesis

+     * \brief Store a hypothesis wrapping this not published one.
+     *
+     * This hyp, which has no own parameters but is published, is used to store variables
+     * defining parameters of this hypothesis.
+     */
+    void SetHolderHypothesis(in SMESH::SMESH_Hypothesis hyp);

+  // a published hypothesis wrapping this not published one
+  SMESH::SMESH_Hypothesis_var myHolder;
2013-03-29 13:33:48 +00:00
eap
751c6aceb0 0051789: TC7.2.0: NoteBook cannot update study
Fix for "LayerDistribution" hypothesis

+     * \brief Store a hypothesis wrapping this not published one.
+     *
+     * This hyp, which has no own parameters but is published, is used to store variables
+     * defining parameters of this hypothesis.
+     */
+    void SetHolderHypothesis(in SMESH::SMESH_Hypothesis hyp);
2013-03-29 13:33:01 +00:00
eap
9c81b247e5 0051789: TC7.2.0: NoteBook cannot update study
In StdMeshersDC_RadialPrism3D, create LayerDistribution hyp only as needed
2013-03-29 13:29:39 +00:00
eap
35ba9b8c12 0051789: TC7.2.0: NoteBook cannot update study
Enable calling mesh.Prism('RadialPrism_3D')

+class StdMeshersDC_RadialPrism3D(StdMeshersDC_Prism3D):
+ ...
2013-03-29 13:17:47 +00:00
vsr
fc626c5c07 From CoTech 51: change default preferences 2013-03-29 13:13:59 +00:00
vsr
8cea16cb4a From CoTech 51: change default preferences 2013-03-29 10:59:00 +00:00
rnv
f5d3729ad4 Implementation of the "0021951: EDF 2355 SMESH : Supression of SetFilter button in the standalone part of the group dialog" issue. 2013-03-29 10:27:35 +00:00
akl
f89c0586c1 Copyrights update 2013 2013-03-29 08:57:56 +00:00
eap
36ba432b4b The fix to show all element with the same color when all values are almost equal. 2013-03-28 16:17:09 +00:00
eap
b3cac3834a 0051789: TC7.2.0: NoteBook cannot update study
Fix approach to storage of NoteBook variables.
Before the fix: names of variables are stored in PythonDump commands
and nothing is stored in the Study.
Problem: after variable removal, the PythonDump script becomes invalid.
Fix: names of variables are stored in the Study, PythonDump commands
store indices of variables within "StringAttribute".

class SMESH_Gen_i {
...
-  void UpdateParameters(/*CORBA::Object_ptr theObject,*/ const char* theParameters);
+  void UpdateParameters(CORBA::Object_ptr theObject, const char* theParameters);

+  const std::vector< int >&  GetLastParamIndices() const;
+  std::vector< std::string > GetAllParameters(const std::string& theObjectEntry) const;
2013-03-28 15:23:34 +00:00
eap
44ce7a32cd In IsStructured()
-  if ( nbWires != 1 || nbEdgesInWires.front() != 4 )
+  if ( nbWires != 1 /*|| nbEdgesInWires.front() != 4*/ ) // allow composite sides
2013-03-28 15:13:04 +00:00
eap
ea15756a03 0051843: TC7.2.0: script SMESH_hexaedre ends with error
make the script independent of order of edges in geometry
2013-03-27 16:07:12 +00:00
eap
5060425f7f mark "Evaluating mesh size" as optional 2013-03-26 10:12:46 +00:00
eap
a921bf9343 add ref to //www.code-aster.org/outils/med/html/connectivites.html 2013-03-26 10:11:42 +00:00
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