Salome HOME
Merge from V6_5_BR 05/06/2012
authorvsr <vsr@opencascade.com>
Tue, 5 Jun 2012 12:35:35 +0000 (12:35 +0000)
committervsr <vsr@opencascade.com>
Tue, 5 Jun 2012 12:35:35 +0000 (12:35 +0000)
45 files changed:
GHS3DPLUGIN_version.h.in
Makefile.am
adm_local/Makefile.am
adm_local/unix/Makefile.am
adm_local/unix/config_files/Makefile.am
adm_local/unix/config_files/check_GHS3D.m4
adm_local/unix/config_files/check_GHS3DPLUGIN.m4
adm_local/unix/make_common_starter.am
bin/Makefile.am
build_cmake
build_cmake.bat
build_configure
clean_configure
configure.ac
doc/Makefile.am
doc/salome/Makefile.am
doc/salome/gui/GHS3DPLUGIN/Makefile.am
doc/salome/gui/GHS3DPLUGIN/doxyfile.in
doc/salome/gui/GHS3DPLUGIN/doxyfile_py.in
doc/salome/gui/GHS3DPLUGIN/input/ghs3d_hypo.doc
doc/salome/gui/GHS3DPLUGIN/static/footer.html
doc/salome/gui/Makefile.am
idl/GHS3DPlugin_Algorithm.idl
idl/Makefile.am
resources/GHS3DPlugin.xml
resources/Makefile.am
resources/SalomeApp.xml
src/GHS3DPlugin/GHS3DPluginDC.py
src/GHS3DPlugin/GHS3DPlugin_Defs.hxx
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx
src/GHS3DPlugin/GHS3DPlugin_GHS3D.hxx
src/GHS3DPlugin/GHS3DPlugin_GHS3D_i.cxx
src/GHS3DPlugin/GHS3DPlugin_GHS3D_i.hxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.hxx
src/GHS3DPlugin/GHS3DPlugin_i.cxx
src/GHS3DPlugin/Makefile.am
src/GUI/GHS3DPluginGUI.cxx
src/GUI/GHS3DPluginGUI_Enums.h
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.h
src/GUI/Makefile.am
src/Makefile.am

index b01629966c15c45d7c81e4e2581c861b9c1e0c82..7d4806c01585f3d70b1f6d4d0a42fa726e438abb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index b60c7a10a08f6ed0c0ffe32f07b2e7ed1390dee2..afc6dd9b6a09a9bf1804ae754dd0d7c5ecb5692e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 6705970ec52420e23c72470189dbcfbcad7165a3..249f9037ccd5a8892add4d2a3de874dd3e4262e6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 6c83087ac1b246546590b8e0cc6852787afaa3bc..cd2cfe6053ff20014af6ba46c1e2d6461b91d3ca 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index e173ea60187c6c372a169deb5709c98293cc93b2..6d25f433a1eaee486bc8b2ca2e165a1452383d7c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 3ecabf022ae7de6e5c0068d599a1bf934f6f0da7..cec27b7203f1a64f24822b495d4e9746445ae0e0 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+dnl Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 dnl
 dnl This library is free software; you can redistribute it and/or
 dnl modify it under the terms of the GNU Lesser General Public
index 1722d1e83e6846bcf92a032514d27e745af01de5..25f56bddbfa02a09daab3fa6ebb0c9c23b1008ad 100755 (executable)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+dnl Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 dnl
 dnl This library is free software; you can redistribute it and/or
 dnl modify it under the terms of the GNU Lesser General Public
index e4e7b6dad56f1e5721cf050e3c0f54b9902ee984..694041fd9b92a04ecae80188a683cfab7fbf1687 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 74967025fdd0840c7df3d93f9864535a7c19ff42..75e88d0fbce3a01572f0bf2909bda0867f26d0e1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 6d2d944378bcf5f619b2f5e293de8d007c19ebaf..47bd15c16738261b80f48509803fd9b75e140113 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 2ab238883cdd2bc1f3eb16dfb8c367f22331cdce..5008649ba63d6aaf38d2a3d30265ebfebfdc59a2 100644 (file)
@@ -1,4 +1,4 @@
-@REM Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+@REM Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 @REM
 @REM This library is free software; you can redistribute it and/or
 @REM modify it under the terms of the GNU Lesser General Public
index e476f5d579c5735ccf14b5442f8ca9510d24c913..33e10491472cd6c3773cad6c34ad3659146334ca 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index cd4e202ae61c2ea32bf0f8cb86a8b6027d130e68..891edb971c99d19fe4fd77900755e8bf356df994 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 rm -rf autom4te.cache aclocal.m4 configure make_config
 find . -name "*~" -print -exec rm {} \;
 find . -name "*.pyc" -print -exec rm {} \;
-
-find bin -name Makefile.in | xargs rm -f
-find idl -name Makefile.in | xargs rm -f
-find resources -name Makefile.in | xargs rm -f
-find adm_local -name Makefile.in | xargs rm -f
-find src -name Makefile.in | xargs rm -f
-rm -f adm_local/unix/config_files/config* 
-rm -f adm_local/unix/config_files/depcomp
-rm -f adm_local/unix/config_files/install-sh 
-rm -f adm_local/unix/config_files/libtool.m4 
-rm -f adm_local/unix/config_files/ltmain.sh 
-rm -f adm_local/unix/config_files/ltoptions.m4 
-rm -f adm_local/unix/config_files/ltsugar.m4 
-rm -f adm_local/unix/config_files/ltversion.m4 
-rm -f adm_local/unix/config_files/lt~obsolete.m4 
-rm -f adm_local/unix/config_files/missing 
-rm -f Makefile.in
+find . -name Makefile.in | xargs rm -f
+( cd adm_local/unix/config_files && rm -f config.* depcomp install-sh l*.m4 ltmain.sh missing py-compile )
index 19f9b4794ad84b2c3a50fef19dc6c6088ad8ec46..d39b98ba54e2851dfbf41501c8ab0f941b8b05de 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,7 @@
 # Modified by : Marc Tajchman (CEA)
 # Created from configure.in.base
 #
-AC_INIT([Salome2 Project GHS3DPLUGIN module],[6.4.0], [webmaster.salome@opencascade.com], [SalomeGHS3DPLUGIN])
+AC_INIT([Salome2 Project GHS3DPLUGIN module],[6.5.0], [webmaster.salome@opencascade.com], [SalomeGHS3DPLUGIN])
 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
index 40951f3ad2bcb71832e0cc64dbb67b4b05f2a3fa..259984558c6fc554495e31206ddf90b487e99dad 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 1f9f5cb87800a4677f4a54e83fb55794aa810734..15038d3c3520b4449893199a5fbb1b5b8be3a329 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 079d39e6b701bde07b63c621aad9013fe4407d1d..dfe458ea5d51d44f2bb24b9265ecaa5e14aec5a7 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 90cd84873be9c4add3e160a0faa1126f70d66bdb..7af64c9b8d8c16ef38b0948a1a0c6d6f27fee363 100755 (executable)
@@ -1,7 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index dc9e37db40bc148272456de1630e6f0e6baf0234..47082b5234e184b2aff12df92e26a8fd888378b4 100755 (executable)
@@ -1,7 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index dfd0041f591b71097e86475d52061ada968e4af8..fb49c74b56ed5aae91893be66aeaccccd5295252 100644 (file)
@@ -7,15 +7,12 @@
 algorithm. This algorithm is a commercial software.
 \n To get a licence, visit http://www.distene.com/corp/eval-distene.html
 
-<ol>
-<li>\ref ghs3d_general_parameters "General parameters"</li>
-<li>\ref ghs3d_advanced_parameters "Advanced parameters"</li>
-<li>\ref ghs3d_enforced_vertices "Enforced vertices"</li>
-<li>\ref ghs3d_enforced_meshes "Enforced meshes"</li>
-</ol>
+-# \ref ghs3d_general_parameters
+-# \ref ghs3d_advanced_parameters
+-# \ref ghs3d_enforced_vertices
+-# \ref ghs3d_enforced_meshes
 
-\anchor ghs3d_general_parameters
-<h1>General parameters</h1>
+\section ghs3d_general_parameters General parameters
 
 \image html ghs3d_parameters_basic.png
 
@@ -44,8 +41,7 @@ optimisation provides better mesh, but can be time-consuming.
 
 \ref ghs3d_top "Back to top"
 
-\anchor ghs3d_advanced_parameters
-<h1>Advanced parameters</h1>
+\section ghs3d_advanced_parameters Advanced parameters
 
 \image html ghs3d_parameters_advanced.png
 
@@ -119,8 +115,7 @@ for ghs3d, for example, advanced options. </li>
 
 \ref ghs3d_top "Back to top"
 
-\anchor ghs3d_enforced_vertices
-<h1>Enforced vertices</h1>
+\section ghs3d_enforced_vertices Enforced vertices
 
 \note This feature is currently available only on meshes with no
 geometry attached. Such meshes can be obtained by
@@ -149,8 +144,7 @@ group. If the group does not exist, it is created.</li>
 </ul>
 \ref ghs3d_top "Back to top"
 
-\anchor ghs3d_enforced_meshes
-<h1>Enforced Meshes</h1>
+\section ghs3d_enforced_meshes Enforced Meshes
 
 \note This feature is currently only available on meshes with no
 geometry attached. Such meshes can be obtained by
@@ -173,12 +167,12 @@ entirely into the solid mesh.
 <li>FACE</li>
 </ul></li>
 <li>If a size is given, the mesh will be refined around the enforced
-elements given the size</li>
+elements given the size (not available yet)</li>
 <li>If a group name is given, the enforced elements will be added to
 the group. If the group does not exist, it is created.</li>
 </ul>
 
-<br><b>See Also</b> a sample TUI Script of the \ref tui_ghs3d "creation of a Ghs3D hypothesis", including enforced vertices.
+<br><b>See Also</b> a sample TUI Script of the \ref tui_ghs3d "creation of a Ghs3D hypothesis", including enforced vertices and meshes.
 
 \ref ghs3d_top "Back to top"
 
index b344790a6c2a62659614c4fedbc7bee2e76ca2ec..4c89a2ba1ed1150de49b5f1bc72ca9975f411550 100755 (executable)
@@ -3,7 +3,7 @@
  </div>
  <div class="footer1">
  <div style="text-align: center;">
- Copyright &copy; 2007-2011  CEA/DEN, EDF R&amp;D, OPEN CASCADE<br>
+ Copyright &copy; 2007-2012  CEA/DEN, EDF R&amp;D, OPEN CASCADE<br>
  Copyright &copy; 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&amp;D, LEG, PRINCIPIA R&amp;D, BUREAU VERITAS<br>
  </div>
  </div>
index e1c9554cf8c7bada8b40be5d3623effec505a3d6..ddbdb9e11c878bd15e8021feab0f6270f1403360 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 79ec320948714a8631623123b5e4e8695e297132..8af4f1e746900b8f30cea2f87e1497f5f85c022a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 605fb96e3653fc87a8b24ff231ad1b490d1265db..e675d276298b208d98c8345232b4226b79a18f41 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -26,6 +26,8 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 BASEIDL_FILES = GHS3DPlugin_Algorithm.idl
 
+BASEIDL_FILES_PY=$(BASEIDL_FILES:%.idl=%_idl.py)
+
 # This variable defines the files to be installed
 dist_salomeidl_DATA = $(BASEIDL_FILES)
 
@@ -97,9 +99,15 @@ install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%)
          $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
        done
 
-# uninstall-local removes too much, but it works in distcheck
+# we want to remove only staff generated for IDL files and nothing more
 uninstall-local:
-       rm -rf $(DESTDIR)$(salomepythondir)/*
+       @for modulen in GHS3DPlugin ; do \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen} && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen} ; \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen}__POA && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}__POA" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen}__POA ; \
+       done ; \
+       for filen in $(BASEIDL_FILES_PY) ; do \
+         echo "Removing $(DESTDIR)$(salomepythondir)/$${filen}" && rm -f $(DESTDIR)$(salomepythondir)/$${filen}* ; \
+       done
 
 mostlyclean-local:
        -rm -f *.hh *.cc .depidl
index a7ea606c9564508be1aa6a61d88f436804c22680..2c1ece48de2e871d2c43e380a404fbcd2b46ed73 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='us-ascii'?>
 <!DOCTYPE meshers PUBLIC "" "desktop.dtd">
 <!--
-  Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+  Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index 626a4e55c31271ff875a101b4d741d6b3074dcb2..a4c2df23917aee14398b5ab30b70561e59d43fa9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 8b9379f4a844d9ec008e522f0420233e70db7b04..9bbf60b0a481557008791b5d8fe303fb08f66084 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-  Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+  Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index 5cf2a1fe62fe6c37e85bc758f82374b95fc83b7f..e4c034682a9bca06a8af2686ab8f228b84056393 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -16,7 +16,6 @@
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-#
 
 from smesh import Mesh_Algorithm, AssureGeomPublished
 
index f594d7dc304d29474fb8ecb3a3a6123d8e8cdc09..2ec37bb60e1bd071548c81ad65796a74a395ba2f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 880ce95d5b4be4edaddb5110ebec93e63a87c571..65fdf0b9117e2bb71e06b8b6d981b98200959245 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -382,22 +382,25 @@ static int findShapeID(SMESH_Mesh&          mesh,
     if ( toMeshHoles )
       return meshDS->ShapeToIndex( solid1 );
 
+    //////////// UNCOMMENT AS SOON AS
+    //////////// http://tracker.dev.opencascade.org/view.php?id=23129
+    //////////// IS SOLVED
     // - Are we at a hole boundary face?
-    if ( shells(1).IsSame( BRepTools::OuterShell( solid1 )) )
-    { // - No, but maybe a hole is bound by two shapes? Does shells(1) touches another shell?
-      bool touch = false;
-      TopExp_Explorer eExp( shells(1), TopAbs_EDGE );
-      // check if any edge of shells(1) belongs to another shell
-      for ( ; eExp.More() && !touch; eExp.Next() ) {
-        ansIt = mesh.GetAncestors( eExp.Current() );
-        for ( ; ansIt.More() && !touch; ansIt.Next() ) {
-          if ( ansIt.Value().ShapeType() == TopAbs_SHELL )
-            touch = ( !ansIt.Value().IsSame( shells(1) ));
-        }
-      }
-      if (!touch)
-        return meshDS->ShapeToIndex( solid1 );
-    }
+    // if ( shells(1).IsSame( BRepTools::OuterShell( solid1 )) )
+    // { // - No, but maybe a hole is bound by two shapes? Does shells(1) touches another shell?
+    //   bool touch = false;
+    //   TopExp_Explorer eExp( shells(1), TopAbs_EDGE );
+    //   // check if any edge of shells(1) belongs to another shell
+    //   for ( ; eExp.More() && !touch; eExp.Next() ) {
+    //     ansIt = mesh.GetAncestors( eExp.Current() );
+    //     for ( ; ansIt.More() && !touch; ansIt.Next() ) {
+    //       if ( ansIt.Value().ShapeType() == TopAbs_SHELL )
+    //         touch = ( !ansIt.Value().IsSame( shells(1) ));
+    //     }
+    //   }
+    //   if (!touch)
+    //     return meshDS->ShapeToIndex( solid1 );
+    // }
   }
   // find orientation of geom face within the first solid
   TopExp_Explorer fExp( solid1, TopAbs_FACE );
@@ -1079,15 +1082,18 @@ static bool readGMFFile(const char*                     theFile,
   SMESHDS_Mesh* theMeshDS = theHelper->GetMeshDS();
 
   int nbInitialNodes = theNodeByGhs3dId.size();
-  std::cout << "theNodeByGhs3dId.size(): " << nbInitialNodes << std::endl;
   int nbMeshNodes = theMeshDS->NbNodes();
-  std::cout << "theHelper->GetMesh()->NbNodes(): " << nbMeshNodes << std::endl;
   
   const bool isQuadMesh = 
     theHelper->GetMesh()->NbEdges( ORDER_QUADRATIC ) ||
     theHelper->GetMesh()->NbFaces( ORDER_QUADRATIC ) ||
     theHelper->GetMesh()->NbVolumes( ORDER_QUADRATIC );
+    
+#ifdef _DEBUG_
+  std::cout << "theNodeByGhs3dId.size(): " << nbInitialNodes << std::endl;
+  std::cout << "theHelper->GetMesh()->NbNodes(): " << nbMeshNodes << std::endl;
   std::cout << "isQuadMesh: " << isQuadMesh << std::endl;
+#endif
   
   if (theHelper->GetSubShapeID() != 0)
     theHelper->IsQuadraticSubMesh( theHelper->GetSubShape() );
@@ -1097,7 +1103,7 @@ static bool readGMFFile(const char*                     theFile,
   // ---------------------------------
 
   int nbElem = 0, nbRef = 0;
-  int aGMFNodeID = 0, shapeID;
+  int aGMFNodeID = 0/*, shapeID*/;
   //int *nodeAssigne;
   const SMDS_MeshNode** GMFNode;
 #ifdef _DEBUG_
@@ -1502,8 +1508,10 @@ static bool writeGMFFile(const char*                                     theMesh
         const SMDS_MeshNode* node = castToNode( nodeIt->next() );
         gp_Pnt myPoint(node->X(),node->Y(),node->Z());
         nbFoundElems = pntCls->FindElementsByPoint(myPoint, SMDSAbs_Node, foundElems);
+#ifdef _DEBUG_
         std::cout << "Node at "<<node->X()<<", "<<node->Y()<<", "<<node->Z()<<std::endl;
         std::cout << "Nb nodes found : "<<nbFoundElems<<std::endl;
+#endif
         if (nbFoundElems ==0) {
           if ((*aNodeToTopAbs_StateMap.find(node)).second == TopAbs_IN) {
             newId = aNodeToGhs3dIdMap.size() + anEnforcedNodeToGhs3dIdMap.size() + 1; // ghs3d ids count from 1
@@ -1517,7 +1525,9 @@ static bool writeGMFFile(const char*                                     theMesh
         }
         else
           isOK = false;
+#ifdef _DEBUG_
         std::cout << "GHS3D node ID: "<<newId<<std::endl;
+#endif
       }
       if (isOK)
         theKeptEnforcedEdges.insert(elem);
@@ -1553,7 +1563,9 @@ static bool writeGMFFile(const char*                                     theMesh
         const SMDS_MeshNode* node = castToNode( nodeIt->next() );
         gp_Pnt myPoint(node->X(),node->Y(),node->Z());
         nbFoundElems = pntCls->FindElementsByPoint(myPoint, SMDSAbs_Node, foundElems);
+#ifdef _DEBUG_
         std::cout << "Nb nodes found : "<<nbFoundElems<<std::endl;
+#endif
         if (nbFoundElems ==0) {
           if ((*aNodeToTopAbs_StateMap.find(node)).second == TopAbs_IN) {
             newId = aNodeToGhs3dIdMap.size() + anEnforcedNodeToGhs3dIdMap.size() + 1; // ghs3d ids count from 1
@@ -1567,7 +1579,9 @@ static bool writeGMFFile(const char*                                     theMesh
         }
         else
           isOK = false;
+#ifdef _DEBUG_
         std::cout << "GHS3D node ID: "<<newId<<std::endl;
+#endif
       }
       if (isOK)
         theKeptEnforcedTriangles.insert(elem);
@@ -1575,7 +1589,9 @@ static bool writeGMFFile(const char*                                     theMesh
   }
   
   // put nodes to theNodeByGhs3dId vector
+#ifdef _DEBUG_
   std::cout << "aNodeToGhs3dIdMap.size(): "<<aNodeToGhs3dIdMap.size()<<std::endl;
+#endif
   theNodeByGhs3dId.resize( aNodeToGhs3dIdMap.size() );
   map<const SMDS_MeshNode*,int>::const_iterator n2id = aNodeToGhs3dIdMap.begin();
   for ( ; n2id != aNodeToGhs3dIdMap.end(); ++ n2id)
@@ -1585,7 +1601,9 @@ static bool writeGMFFile(const char*                                     theMesh
   }
 
   // put nodes to anEnforcedNodeToGhs3dIdMap vector
+#ifdef _DEBUG_
   std::cout << "anEnforcedNodeToGhs3dIdMap.size(): "<<anEnforcedNodeToGhs3dIdMap.size()<<std::endl;
+#endif
   theEnforcedNodeByGhs3dId.resize( anEnforcedNodeToGhs3dIdMap.size());
   n2id = anEnforcedNodeToGhs3dIdMap.begin();
   for ( ; n2id != anEnforcedNodeToGhs3dIdMap.end(); ++ n2id)
@@ -1627,17 +1645,23 @@ static bool writeGMFFile(const char*                                     theMesh
     coords.push_back(node->X());
     coords.push_back(node->Y());
     coords.push_back(node->Z());
+#ifdef _DEBUG_
     std::cout << "Node at " << node->X()<<", " <<node->Y()<<", " <<node->Z();
+#endif
     
     if (nodesCoords.find(coords) != nodesCoords.end()) {
       // node already exists in original mesh
+#ifdef _DEBUG_
       std::cout << " found" << std::endl;
+#endif
       continue;
     }
     
     if (theEnforcedVertices.find(coords) != theEnforcedVertices.end()) {
       // node already exists in enforced vertices
+#ifdef _DEBUG_
       std::cout << " found" << std::endl;
+#endif
       continue;
     }
     
@@ -1657,7 +1681,9 @@ static bool writeGMFFile(const char*                                     theMesh
 //       theOrderedNodes.push_back(existingNode);
 //     }
     
+#ifdef _DEBUG_
     std::cout << " not found" << std::endl;
+#endif
     
     nodesCoords.insert(coords);
     theOrderedNodes.push_back(node);
@@ -1676,24 +1702,32 @@ static bool writeGMFFile(const char*                                     theMesh
     coords.push_back(node->X());
     coords.push_back(node->Y());
     coords.push_back(node->Z());
+#ifdef _DEBUG_
     std::cout << "Node at " << node->X()<<", " <<node->Y()<<", " <<node->Z();
+#endif
     
     // Test if point is inside shape to mesh
     gp_Pnt myPoint(node->X(),node->Y(),node->Z());
     TopAbs_State result = pntCls->GetPointState( myPoint );
     if ( result == TopAbs_OUT ) {
+#ifdef _DEBUG_
       std::cout << " out of volume" << std::endl;
+#endif
       continue;
     }
     
     if (nodesCoords.find(coords) != nodesCoords.end()) {
+#ifdef _DEBUG_
       std::cout << " found in nodesCoords" << std::endl;
+#endif
 //       theRequiredNodes.push_back(node);
       continue;
     }
 
     if (theEnforcedVertices.find(coords) != theEnforcedVertices.end()) {
+#ifdef _DEBUG_
       std::cout << " found in theEnforcedVertices" << std::endl;
+#endif
       continue;
     }
     
@@ -1720,7 +1754,9 @@ static bool writeGMFFile(const char*                                     theMesh
 //     if ( result != TopAbs_IN )
 //       continue;
     
+#ifdef _DEBUG_
     std::cout << " not found" << std::endl;
+#endif
     nodesCoords.insert(coords);
 //     theOrderedNodes.push_back(node);
     theRequiredNodes.push_back(node);
@@ -1800,12 +1836,16 @@ static bool writeGMFFile(const char*                                     theMesh
 
     for (int i=0;i<solSize;i++) {
       std::cout << ReqVerTab[i][0] <<" "<< ReqVerTab[i][1] << " "<< ReqVerTab[i][2] << std::endl;
+#ifdef _DEBUG_
       std::cout << "enfVertexSizes.at("<<i<<"): " << enfVertexSizes.at(i) << std::endl;
+#endif
       double solTab[] = {enfVertexSizes.at(i)};
       GmfSetLin(idxRequired, GmfVertices, ReqVerTab[i][0], ReqVerTab[i][1], ReqVerTab[i][2], dummyint);
       GmfSetLin(idxSol, GmfSolAtVertices, solTab);
       aNodeGroupByGhs3dId[usedEnforcedNodes] = enfVerticesWithGroup.find(ReqVerTab[i])->second;
+#ifdef _DEBUG_
       std::cout << "aNodeGroupByGhs3dId["<<usedEnforcedNodes<<"] = \""<<aNodeGroupByGhs3dId[usedEnforcedNodes]<<"\""<<std::endl;
+#endif
       usedEnforcedNodes++;
     }
     std::cout << "End writting in req and sol file" << std::endl;
index e4d15c924121cf196a170c44cb3954aa37fa1293..7b9b02ed382fefcda2fa4ab55b14ba4853f3fe74 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 17ba1ae67379df8d8e8792e9bc73102b62d87c7a..a9151b6b31b7bf6cd21df43b081bde39277090a3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 8cb760b914b18007634e03b042b243521b485f97..daea6280aa71674d2fd9527e9240767ca66bc550 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 19a047857fdc342176db88383d06eeafbc120c4c..7aa534153dc02da5bec110bc534797bed4171319 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0a85c661b389fb1eaa2973f38c2b4fb628a157dc..93723bb7ec6e28f698797bbe04fbb3dcc3bd6cd1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 9916a85e062cb18b64beafa949fb092ab9325daf..5b8466b1175364004879b62262305f2eabb3e99c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 8bfe974cebbc8685c0cd6f3866879f239a8251c6..7ca3cac9709be1b242be7c1e5cbd68f21bf85849 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 4552f2e5adaf7b49d89630f5b1b71d0e86de75f8..7539de5e98457a882899df3d12137924a297bbeb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 4d3625f0d9d1c06359bec31095df11c8f4a81bf3..a76182600d2a1a4a8989dad727bf3d6dab3f1213 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 8811e36579678fd9fe219c5bb25f90abf98b3f30..905c9b394a98dbfa4e3510485ab7e1d1bc9a1d55 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 793507b4cbe989510f16f582f1cdea932d9c3be0..8516565f798e2e2cad2713a1523c382827088c30 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index aae689f3879ea1bac8aba054a5cbf4a6f8e45819..6c097cc009c6d355e02e3594665df6d552ecdf43 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 2052404f962fa38746544780237940b8ab8d8f13..693f9ce5d95661af3bc6c4889299564bb21bee04 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+// Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f5ce8b5f57ad521ee47651b39826dfc1799c6274..e0331d3bd5f82a80c2ecb7d2b6bbedb00e26430e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index a2b317d29955d3ac6219978d62c4b2abcd3bc015..4f6815859b3b1d77adfd3ba54ad845aefdd2c143 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2011  CEA/DEN, EDF R&D
+# Copyright (C) 2004-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public