Salome HOME
NRI : Merge from V1_2.
authornri <nri@opencascade.com>
Wed, 9 Jul 2003 14:44:57 +0000 (14:44 +0000)
committernri <nri@opencascade.com>
Wed, 9 Jul 2003 14:44:57 +0000 (14:44 +0000)
56 files changed:
src/GEOMGUI/GeometryGUI_ArcDlg.cxx
src/GEOMGUI/GeometryGUI_BndBoxDlg.cxx
src/GEOMGUI/GeometryGUI_BoxDlg.cxx
src/GEOMGUI/GeometryGUI_CenterMassDlg.cxx
src/GEOMGUI/GeometryGUI_ChamferDlg.cxx
src/GEOMGUI/GeometryGUI_CircleDlg.cxx
src/Makefile.in
src/OBJECT/GEOM_AISShape.cxx
src/OBJECT/GEOM_AISShape.hxx
src/OBJECT/GEOM_AISShape.ixx
src/OBJECT/GEOM_AISShape.jxx
src/OBJECT/GEOM_Actor.cxx
src/OBJECT/GEOM_Actor.h
src/OBJECT/GEOM_AssemblyBuilder.cxx
src/OBJECT/GEOM_AssemblyBuilder.h
src/OBJECT/GEOM_InteractiveObject.cxx
src/OBJECT/GEOM_InteractiveObject.hxx
src/OBJECT/GEOM_InteractiveObject.ixx
src/OBJECT/GEOM_InteractiveObject.jxx
src/OBJECT/GEOM_OCCReader.cxx
src/OBJECT/GEOM_OCCReader.h
src/OBJECT/Handle_GEOM_AISShape.hxx
src/OBJECT/Handle_GEOM_InteractiveObject.hxx
src/OBJECT/Makefile.in
src/PARTITION/Makefile.in
src/PARTITION/Partition.cdl
src/PARTITION/Partition_Inter2d.cdl
src/PARTITION/Partition_Inter2d.cxx
src/PARTITION/Partition_Inter2d.hxx
src/PARTITION/Partition_Inter2d.ixx
src/PARTITION/Partition_Inter2d.jxx
src/PARTITION/Partition_Inter3d.cdl
src/PARTITION/Partition_Inter3d.cxx
src/PARTITION/Partition_Inter3d.hxx
src/PARTITION/Partition_Inter3d.ixx
src/PARTITION/Partition_Inter3d.jxx
src/PARTITION/Partition_Loop.cdl
src/PARTITION/Partition_Loop.cxx
src/PARTITION/Partition_Loop.hxx
src/PARTITION/Partition_Loop.ixx
src/PARTITION/Partition_Loop.jxx
src/PARTITION/Partition_Loop2d.cdl
src/PARTITION/Partition_Loop2d.cxx
src/PARTITION/Partition_Loop2d.hxx
src/PARTITION/Partition_Loop2d.ixx
src/PARTITION/Partition_Loop2d.jxx
src/PARTITION/Partition_Loop3d.cdl
src/PARTITION/Partition_Loop3d.cxx
src/PARTITION/Partition_Loop3d.hxx
src/PARTITION/Partition_Loop3d.ixx
src/PARTITION/Partition_Loop3d.jxx
src/PARTITION/Partition_Spliter.cdl
src/PARTITION/Partition_Spliter.cxx
src/PARTITION/Partition_Spliter.hxx
src/PARTITION/Partition_Spliter.ixx
src/PARTITION/Partition_Spliter.jxx

index 41dd627c85ae4baa1e355d2962ab0305a7564048..cd536c58ca6d2daabd1827434beb5ba71ede3dbc 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_ArcDlg.cxx
-//  Created   :
-//  Author    : Lucien PIGNOLONI
-//  Project   : SALOME
-//  Module    : GeometryGUI
-//  Copyright : OPEN CASCADE
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_ArcDlg.cxx
+//  Author : Lucien PIGNOLONI
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "GeometryGUI_ArcDlg.h"
 
 #include "GeometryGUI.h"
index aa2f1d04d06c8c5f27926d377b114e75a4252eef..495aa46ccc7e85b2cb66617d7de8520dde2ab2d3 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_BndBoxDlg.cxx
-//  Created   : Mon Mar 04 13:16:16 2002
-//  Author    : Nicolas REJNERI
-
-//  Project   : SALOME
-//  Module    : GEOMGUI
-//  Copyright : Open CASCADE 2002
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_BndBoxDlg.cxx
+//  Author : Nicolas REJNERI
+//  Module : GEOM
 //  $Header$
 
-
+using namespace std;
 #include "GeometryGUI_BndBoxDlg.h"
 
 #include "GeometryGUI.h"
index 476a54854bf542926ea4b96fb2f1189ec8fd1106..659dc19b25e337e04bf061eb3bcda72026a24332 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_BoxDlg.cxx
-//  Created   :
-//  Author    : Lucien PIGNOLONI
-//  Project   : SALOME
-//  Module    : GeometryGUI
-//  Copyright : OPEN CASCADE
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_BoxDlg.cxx
+//  Author : Lucien PIGNOLONI
+//  Module : GEOM
 //  $Header$
-    
 
+using namespace std;
 #include "GeometryGUI_BoxDlg.h"
 #include "GeometryGUI_SpinBox.h"
 
index 40f3261e1526f5a68151603c314c6b41c3537318..4f5d2ac198df894fe56dbc4f59a75aeecd1b07ba 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_CenterMassDlg.cxx
-//  Created   :
-//  Author    : Lucien PIGNOLONI
-//  Project   : SALOME
-//  Module    : GeometryGUI
-//  Copyright : OPEN CASCADE
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_CenterMassDlg.cxx
+//  Author : Lucien PIGNOLONI
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "GeometryGUI_CenterMassDlg.h"
 #include "GeometryGUI.h"
 
index ea91bac12823c4391a1d33b69fcbd410116c5859..c0892f7685f496607eb6eb9c9f6bebf2604c185d 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_ChamferDlg.cxx
-//  Created   : 
-//  Author    : Damien COQUERET
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : OPEN CASCADE 2002
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_ChamferDlg.cxx
+//  Author : Damien COQUERET
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "GeometryGUI_ChamferDlg.h"
 
 #include "GeometryGUI.h"
index 4a9ac3dd9f84540b699fdadf22092d8c46be8fa5..ba0c36640d845251163816ced1a8cd2abe03c12e 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GeometryGUI_CircleDlg.cxx
-//  Created   :
-//  Author    : Lucien PIGNOLONI
-//  Project   : SALOME
-//  Module    : GeometryGUI
-//  Copyright : OPEN CASCADE
+//  GEOM GEOMGUI : GUI for Geometry component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GeometryGUI_CircleDlg.cxx
+//  Author : Lucien PIGNOLONI
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "GeometryGUI_CircleDlg.h"
 
 #include "GeometryGUI.h"
index 30889cf5f0d9a71d034e506dca24a47632c9ecfd..dfd82101c7bb1f72a890f7bb2522f79502c1813a 100644 (file)
@@ -1,18 +1,35 @@
-#==============================================================================
-#  File      : Makefile.in
-#  Created   : ven déc  7 13:32:20 CET 2001
-#  Author    : Paul RASCLE, EDF
-#  Project   : SALOME
-#  Copyright : EDF 2001
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Author : Patrick GOLDBRONN (CEA)
+#  Module : GEOM
 #  $Header$
-#==============================================================================
 
-# source path
 top_srcdir=@top_srcdir@
 top_builddir=..
 srcdir=@srcdir@
 VPATH=.:@srcdir@
 
+
 @COMMENCE@
 
 SUBDIRS = OBJECT SKETCHER ARCHIMEDE PARTITION GEOMDS GEOM GEOMClient GEOMFiltersSelection GEOMGUI GEOM_SWIG
index 2f4e5c59b1638d11a06b25cb9538c3caf3a39053..93cbeaa7873882c58fc8f2886ed9af797f8f06a5 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GEOM_AISShape.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_AISShape.cxx
+//  Author : Nicolas REJNERI
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 /*!
   \class GEOM_AISShape GEOM_AISShape.hxx
   \brief ....
index 5c63ece8beee50ab28c4ca6ffe42a3c08ca0f578..d809c0dbbb27d4bf40920e77d46b483db62b3dd4 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : GEOM_AISShape.hxx
+//  Module : GEOM
+
 #ifndef _GEOM_AISShape_HeaderFile
 #define _GEOM_AISShape_HeaderFile
 
index 3179d4a5a3594da8c8ef4a4d3ed96bb3511b6fba..7baed81b7f2c74385ed33e7eba4883488ca7d973 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_AISShape.ixx
+//  Module : GEOM
+
 #include "GEOM_AISShape.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index fa4227d8b52f3265f523f1e8bb22139e04bfd2e0..8f66299fd0189184a4e39657e9e408fb118f57ec 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_AISShape.jxx
+//  Module : GEOM
+
 #ifndef _GEOM_InteractiveObject_HeaderFile
 #include "GEOM_InteractiveObject.hxx"
 #endif
index 6dcfb88050ac49c240808f7b859e399db7d39511..e29c665cbd465c69308d824bf5810aa1d031f2ff 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GEOM_Actor.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_Actor.cxx
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 /*!
   \class GEOM_Actor GEOM_Actor.h
   \brief This class allows to display an OpenCASCADE CAD model in a VTK viewer.
@@ -14,12 +34,6 @@ using namespace std;
 
 #include "GEOM_Actor.h"
 
-// VTK Includes
-#include <vtkObjectFactory.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkPolyDataNormals.h>
-#include <vtkMath.h>
-
 // OpenCASCADE Includes
 #include "GEOM_OCCReader.h"
 #include <BRep_Tool.hxx>
index 85cd625e59e2fa9fb3cd3f55755854d3e7919d32..c40dd100165ad5f6ed87457e4ec9fa8815c01e8e 100644 (file)
@@ -1,23 +1,36 @@
-//  File      : GEOM_Actor.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_Actor.h
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
-
 #ifndef GEOM_ACTOR_H
 #define GEOM_ACTOR_H
 
 #include "SALOME_Actor.h"
 
-//VTK
-#include <vtkMapper.h>
-#include <vtkProperty.h>
-#include <vtkMatrix4x4.h>
-#include <vtkCamera.h>
-
 //OpenCASCADE
 #include <TopoDS_Shape.hxx>
 #include <TopoDS.hxx>
@@ -108,7 +121,5 @@ class VTKOCC_EXPORT GEOM_Actor : public SALOME_Actor {
   vtkProperty* WireframeProperty;
   vtkProperty* HighlightProperty;
 
-  int myDisplayMode;
-
 };
 #endif //GEOM_ACTOR_H
index fc06dd9218d40643875a227b7d3f212232ba84f8..39aca3d9cacd25222c1a3ef6596c754717053b46 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GEOM_AssemblyBuilder.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_AssemblyBuilder.cxx
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 /*!
   \class GEOM_AssemblyBuilder GEOM_AssemblyBuilder.h
   \brief ....
@@ -26,6 +46,7 @@ using namespace std;
 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
 #include <TopExp.hxx>
 #include <TopTools_ListOfShape.hxx>
+#include <TopoDS_Iterator.hxx>
 
 // SALOME
 
@@ -143,6 +164,18 @@ vtkActorCollection* GEOM_AssemblyBuilder::BuildActors(const TopoDS_Shape& myShap
 
   vtkActorCollection* AISActors = vtkActorCollection::New();
 
+  if(myShape.ShapeType() == TopAbs_COMPOUND) {
+    TopoDS_Iterator anItr(myShape);
+    for(; anItr.More(); anItr.Next()) {
+      vtkActorCollection* theActors = GEOM_AssemblyBuilder::BuildActors(anItr.Value(), deflection, mode, forced);
+      theActors->InitTraversal();
+      vtkActor* anActor = (vtkActor*)theActors->GetNextActor();
+      while(!(anActor==NULL)) {
+       AISActors->AddItem(anActor);
+       anActor = (vtkActor*)theActors->GetNextActor();
+      }
+    }
+  }
   // Create graphics properties
 
   vtkProperty* IsoProp = vtkProperty::New();
@@ -160,7 +193,7 @@ vtkActorCollection* GEOM_AssemblyBuilder::BuildActors(const TopoDS_Shape& myShap
 
   MeshShape(myShape,deflection,forced);
 
-  if ( myShape.ShapeType() <= 4 ) {
+  if ( myShape.ShapeType() <= 4 && myShape.ShapeType() != TopAbs_COMPOUND) {
     
     // FACE Actor
     // look if edges are free or shared 
index abe459b9195996d310730596065a4a43d95ad57e..a396b9e25a469c86aaa9c0ab0f1dc48933787f67 100644 (file)
@@ -1,12 +1,31 @@
-//  File      : GEOM_AssemblyBuilder.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_AssemblyBuilder.h
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
-// VTK
 #include <vtkAssembly.h>
 #include <vtkPropAssembly.h>
 #include <vtkActorCollection.h>
index b8c484e4d156f8ab91f5152878cf8ea2c4f6b7cf..892cd143c3d9c996128f92cf170f54792d4a9b6e 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : GEOM_InteractiveObject.cxx
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_InteractiveObject.cxx
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 /*!
   \class GEOM_InteractiveObject GEOM_InteractiveObject.hxx
   \brief ....
index 94325174ab2434627a8134f30fcbc47778322e1a..a14c40783a16bc34257d687a921a6aa9036934f8 100644 (file)
@@ -1,18 +1,29 @@
-// File generated by CPPExt (Transient)
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 //
+//
+//
+//  File   : GEOM_InteractiveObject.hxx
+//  Module : GEOM
+
 #ifndef _GEOM_InteractiveObject_HeaderFile
 #define _GEOM_InteractiveObject_HeaderFile
 
index 96844009ff912da4d6372db573104c5086551e40..dccdbb94bc67d66dd440621daae0c763de805b2b 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_InteractiveObject.ixx
+//  Module : GEOM
+
 #include "GEOM_InteractiveObject.jxx"
 
 #ifndef _Standard_TypeMismatch_HeaderFile
index 1f74c76f45938e47c8285de9566de6d2b3b5a6b6..8884bdc8b6d06301bdf75111f77acd54242e03c1 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_InteractiveObject.jxx
+//  Module : GEOM
+
 #ifndef _SALOME_InteractiveObject_HeaderFile
 #include "SALOME_InteractiveObject.hxx"
 #endif
index 37edbea448bf2f8e4d1fe77d5a7191e9d203be4d..500fdd35660a98a30c48c8f73e1aee9fe159eba0 100644 (file)
@@ -1,19 +1,39 @@
-using namespace std;
-//  File      : GEOM_OCCReader.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_OCCReader.h
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "GEOM_OCCReader.h"
 
 // SALOME Includes
 #include "utilities.h"
 
 // VTK Includes
-#include <vtkObjectFactory.h>
+#include "VTKViewer_Common.h"
 #include <vtkMergePoints.h>
 
 // OpenCASCADE Includes
index 3c3b7204ac739ebde7c2abb872961737832ab343..87247f3ec64efbfdc00df4643be27582d1998943 100644 (file)
@@ -1,9 +1,29 @@
-//  File      : GEOM_OCCReader.h
-//  Created   : Wed Feb 20 17:24:59 2002
-//  Author    : Christophe ATTANASIO
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : GEOM_OCCReader.h
+//  Author : Christophe ATTANASIO
+//  Module : GEOM
 //  $Header$
 
 /*!
@@ -15,9 +35,7 @@
 #define GEOM_OCCREADER_H
 
 // VTK
-#include <vtkPolyDataSource.h>
-#include <vtkPoints.h>
-#include <vtkCellArray.h>
+#include "VTKViewer_Common.h"
 
 // OpenCASCADE
 #include <TopoDS_Shape.hxx>
index 2642cefa3d9955b7a44b825d4334115911863cf8..af8efe0533b718059ea6704b6ca39d1e6bcc1e08 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_GEOM_AISShape.hxx
+//  Module : GEOM
 
 #ifndef _Handle_GEOM_AISShape_HeaderFile
 #define _Handle_GEOM_AISShape_HeaderFile
index b310ef892ce7c0f21b2cac822db74565a0e8d829..63c0e8e3fac9b1ecaaf4b34be1368a85802883f1 100644 (file)
@@ -1,17 +1,28 @@
-// File generated by CPPExt (Transient)
+//  GEOM OBJECT : interactive object for Geometry entities visualization
 //
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Handle_GEOM_InteractiveObject.hxx
+//  Module : GEOM
 
 #ifndef _Handle_GEOM_InteractiveObject_HeaderFile
 #define _Handle_GEOM_InteractiveObject_HeaderFile
index 8e93d09167f6465f37d78c51d3ca2366189857a0..392aadacc1def451a5a92949be4a89f6f29cba0d 100644 (file)
@@ -1,8 +1,33 @@
-# source path
+#  GEOM OBJECT : interactive object for Geometry entities visualization
+#
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : Makefile.in
+#  Module : GEOM
+
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
-VPATH=.:$(srcdir):$(top_srcdir)/idl:$(top_builddir)/idl
+VPATH=.:@srcdir@:@top_srcdir@/idl
 
 
 @COMMENCE@
index a112237a0aec99288f0024cd13d8c7492bd30da8..b7834ca677f35cbeca98f78311551ad62551964d 100644 (file)
@@ -1,15 +1,35 @@
-# -* Makefile *- 
+#  GEOM PARTITION : partition algorithm
 #
-# Author : Marc Tajchman (CEA)
-# Date : 5/07/2001
-# $Header$
+#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+# 
+#  This library is free software; you can redistribute it and/or 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  License along with this library; if not, write to the Free Software 
+#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+# 
+#  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
 #
+#
+#
+#  File   : Makefile.in
+#  Author : Marc Tajchman (CEA)
+#  Module : GEOM
+#  $Header$
 
-# source path
 top_srcdir=@top_srcdir@
-top_builddir=../..
+top_builddir=../../..
 srcdir=@srcdir@
-VPATH=.:$(srcdir):$(top_srcdir)/idl:$(top_builddir)/idl
+VPATH=.:@srcdir@
 
 
 @COMMENCE@
index 0d17392dd71ba505526cfa74f70fb49b1ca99c42..9b1bf22876394a3cdb8d26a6aecfeeee70b3a89e 100644 (file)
@@ -1,9 +1,29 @@
--- File   :    Partition.cdl
--- Created:    Thu Aug 02 16:07:39 2001
--- Author :    Benedicte MARTIN 
---             
----Copyright:   OPEN CASCADE  2001
-
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : Partition.cdl
+--  Author : Benedicte MARTIN 
+--  Module : GEOM
 
 package Partition
 
index 356735c2038419fd25b203ce4b4d5e42d898a729..a3a4d15d2052435bf1535bfdae100fed2ecdda96 100644 (file)
@@ -1,8 +1,29 @@
--- File   :    Partition_Inter2d.cdl
--- Created:    Thu Aug 02 16:07:39 2001
--- Author :    Benedicte MARTIN
---             
----Copyright:  OPEN CASCADE 2001
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : Partition_Inter2d.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Inter2d from Partition 
 
index 2c67c1660a11d8d7937353acd1280e8bfa5155e5..e15bf24e3b6a73e4979080dd8743800860eceeba 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : Partition_Inter2d.cxx
-//  Created   : Thu Aug 02 16:17:31 2001
-//  Author    : Benedicte MARTIN
-//  Project   : SALOME
-//  Module    : PARTITION
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter2d.cxx
+//  Author : Benedicte MARTIN
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "Partition_Inter2d.ixx"
 
 #include "utilities.h"
index 800b382ab16d23ebb66380f707c2f9178fdde4b7..7d82aa34bf5797a4800a7f880f0f52b5808fcd64 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter2d.hxx
+//  Module : GEOM
 
 #ifndef _Partition_Inter2d_HeaderFile
 #define _Partition_Inter2d_HeaderFile
index dc6a48377422ce9d805fd8a36bb4e36992b13adf..963d1ec17b9d88e5c0abbfd0548198d425ae4ddf 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter2d.ixx
+//  Module : GEOM
+
 #include "Partition_Inter2d.jxx"
 
  
index bd005fc997943a8bc6ab2d99c757b8894e4cc280..8c3ef7d49501d455279d52a5d6bd9f14ae2824b8 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter2d.jxx
+//  Module : GEOM
+
 #ifndef _BRepAlgo_AsDes_HeaderFile
 #include <BRepAlgo_AsDes.hxx>
 #endif
index 2e4bac3cc2d4fa703782e97f7c0e73bf3a28428c..38c504aeecd4e4fc1544615d0cf0856bfce393b2 100644 (file)
@@ -1,9 +1,29 @@
--- File   :     Partition_Inter3d.cdl
--- Created:     Thu Aug 02 16:07:39 2001
--- Author :     Benedicte MARTIN
---              
----Copyright:    OPEN CASCADE 2001
-
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : Partition_Inter3d.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Inter3d from Partition 
 
@@ -89,8 +109,8 @@ is
     
     IsSectionEdge (me; E : Edge from TopoDS) 
         returns Boolean from Standard;
-        ---Purpose: return True if  E  is  an  edge  of  a face and it
-        --          intersects an other face
+        ---Purpose: return True if E is an edge of an initial face and
+        --          E intersects aother face
     
     HasSectionEdge (me; F : Face from TopoDS)
         returns Boolean from Standard;
index d7156f83c626376fc6e30a919872aa5cf8f8f708..dc7e4606c8bb5a094b629a3bdfe65aa1292c8fc0 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : Partition_Inter3d.cxx
-//  Created   : Thu Aug 02 16:20:37 2001
-//  Author    : Benedicte MARTIN
-//  Project   : SALOME
-//  Module    : PARTITION
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter3d.cxx
+//  Author : Benedicte MARTIN
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "Partition_Inter3d.ixx"
 #include "Partition_Inter2d.hxx"
 #include "utilities.h"
index 771b3044b22415d1e83f7545852a6aaccc5521cd..57e8da43fce7440347dfffe1a4b0fa4d8c929088 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter3d.hxx
+//  Module : GEOM
 
 #ifndef _Partition_Inter3d_HeaderFile
 #define _Partition_Inter3d_HeaderFile
index 3e5e64d0328ba4029069f11aca026e783500da21..0775cc99c9259f7e8b85677f916546c9fd6aca20 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter3d.ixx
+//  Module : GEOM
+
 #include "Partition_Inter3d.jxx"
 
  
index 68d27a450aae71fc3af2159440f58b001774f656..5804ba81e831c0a636bd6a8965e01f4011455ed6 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Inter3d.jxx
+//  Module : GEOM
+
 #ifndef _BRepAlgo_AsDes_HeaderFile
 #include <BRepAlgo_AsDes.hxx>
 #endif
index 7c9eebefe121c3290cb12e00fd629e3a9bf17893..eb6ec67a9114326e4ba1f171312a9314a6ad9e52 100644 (file)
@@ -1,9 +1,29 @@
--- File   :    Partition_Loop.cdl
--- Created:    Thu Aug 02 16:07:39 2001
--- Author :    Benedicte MARTIN
---             
----Copyright:   Matra Datavision 2001
-
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : Partition_Loop.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Loop from Partition
 
index b5a343347eff6c47a7094f3622e6b7a8e6a8a76a..29386de22e03f593ac19ec0c14e38bbbaf426df7 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : Partition_Loop.cxx
-//  Created   : Thu Aug 02 16:25:17 2001
-//  Author    : Benedicte MARTIN
-//  Project   : SALOME
-//  Module    : PARTITION
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Loop.cxx
+//  Author : Benedicte MARTIN
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include <stdio.h>
 
 #include "Partition_Loop.ixx"
index ab94dc94bb1ada7bde114f1f0440df6cd41ca79f..9e9226d9d2e80830ec4b65f4d52a75761a137862 100644 (file)
@@ -1,16 +1,28 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Loop.hxx
+//  Module : GEOM
 
 #ifndef _Partition_Loop_HeaderFile
 #define _Partition_Loop_HeaderFile
index 20d125d72c1ef8d1fd11249dd86f399a64a332e1..1c40e72540c987da0b82df3b8754ea72add677d1 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Loop.ixx
+//  Module : GEOM
+
 #include "Partition_Loop.jxx"
 
  
index 3be89a204c773b69008882ecfab3a49ef63a11f9..dd86f05c3d83bea2f5f581673fa79f67bc153a14 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Loop.jxx
+//  Module : GEOM
+
 #ifndef _TopoDS_Face_HeaderFile
 #include <TopoDS_Face.hxx>
 #endif
index 4f4cb80cc5840a88b26f92f842e5d9244cee1cf3..7a6656e76c00335313e49122e8e479df92e1c390 100644 (file)
@@ -1,9 +1,12 @@
--- File   :    Partition_Loop2d.cdl
--- Created:    Thu Aug 02 16:07:39 2001
--- Author :    Benedicte MARTIN
---             
----Copyright:   OPEN CASCADE 2001
-
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  CEA/DEN, EDF R&D
+--
+--
+--
+--  File   : Partition_Loop2d.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Loop2d from Partition
 
index 24cc066eaafa94fa55fe21d60e92e97d6ba323aa..1e0a2578746a564093510a1d37277f68055f6ee8 100644 (file)
@@ -1,13 +1,15 @@
-using namespace std;
-//  File      : Partition_Loop2d.cxx
-//  Created   : Thu Aug 02 16:25:17 2001
-//  Author    : Benedicte MARTIN
-//  Project   : SALOME
-//  Module    : PARTITION
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop2d.cxx
+//  Author : Benedicte MARTIN
+//  Module : GEOM
 //  $Header$
 
-
+using namespace std;
 #include "Partition_Loop2d.ixx"
 
 #include "utilities.h"
index 9e4996219fc5e95f42b43e42472433516e436db2..2310e158174278329963e0de31cb6da9a09dd100 100644 (file)
@@ -1,16 +1,11 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop2d.hxx
+//  Module : GEOM
 
 #ifndef _Partition_Loop2d_HeaderFile
 #define _Partition_Loop2d_HeaderFile
index f0e328e6cfa354aaf8d4f4eb633eb6ac96ba9408..2d35fd5c711b05df86cf40de88ec2d3c356b4998 100644 (file)
@@ -1,17 +1,12 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop2d.ixx
+//  Module : GEOM
+
 #include "Partition_Loop2d.jxx"
 
  
index eab73c9d1f27d31821de9ef191ddfcf47a4e7dfa..555c16c809d26712d52dba2a8ef0523eadf05262 100644 (file)
@@ -1,3 +1,12 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop2d.jxx
+//  Module : GEOM
+
 #ifndef _TopoDS_Face_HeaderFile
 #include <TopoDS_Face.hxx>
 #endif
index 19b346c5ee5202bb5aaab076261a95d4dd19ca46..435fef6d5f84319b5ad1ab528503c9f267b40142 100644 (file)
@@ -1,6 +1,11 @@
--- File:       Partition_Loop3d.cdl
--- Created:    Mon Oct 21 09:47:19 2002
----Copyright:   OPEN CASCADE 2002
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  CEA/DEN, EDF R&D
+--
+--
+--
+--  File   : Partition_Loop3d.cdl
+--  Module : GEOM
 
 class Loop3d from Partition
 
index f1759f6859b537badf877254862e61309293345f..cb5ecff0482ddf7173a18ff7175505af02372f20 100644 (file)
@@ -1,8 +1,13 @@
-using namespace std;
-//  File      : Partition_Loop3d.cxx
-//  Created   :        Mon Oct 21 09:47:19 2002
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop3d.cxx
+//  Module : GEOM
 
+using namespace std;
 #include "Partition_Loop3d.ixx"
 
 #include <TopExp_Explorer.hxx>
index f5668a2f8f8734fd2279a277f8e57ce1082279c9..b946b32dfc6552b29ac82505e2a1032197e39557 100644 (file)
@@ -1,16 +1,11 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop3d.hxx
+//  Module : GEOM
 
 #ifndef _Partition_Loop3d_HeaderFile
 #define _Partition_Loop3d_HeaderFile
index 3ccad87874454a034969271eb1ed2479b4f03419..a661b3242dafae68300a92a3cf42e7074ce5aeb0 100644 (file)
@@ -1,17 +1,12 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop3d.ixx
+//  Module : GEOM
+
 #include "Partition_Loop3d.jxx"
 
  
index 7fbfaa621e34ed6b3e0b69faf6a787cfcfe78076..9b654f41bb1a23a11c80d65fe9128e5a5830798d 100644 (file)
@@ -1,3 +1,12 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : Partition_Loop3d.jxx
+//  Module : GEOM
+
 #ifndef _TopoDS_Shape_HeaderFile
 #include <TopoDS_Shape.hxx>
 #endif
index 492763ec7dce54bf910582f9ce2de966bf218dd4..252e94b0b57dbac17413ac262946c2b6a886deb8 100644 (file)
@@ -1,7 +1,29 @@
--- File   :     Partition_Spliter.cdl
--- Created:     Thu Aug 02 16:07:39 2001
--- Author :     Benedicte MARTIN
----Copyright:    OPEN CASCADE  2001
+--  GEOM PARTITION : partition algorithm
+--
+--  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+--  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+-- 
+--  This library is free software; you can redistribute it and/or 
+--  modify it under the terms of the GNU Lesser General Public 
+--  License as published by the Free Software Foundation; either 
+--  version 2.1 of the License. 
+-- 
+--  This library is distributed in the hope that it will be useful, 
+--  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+--  Lesser General Public License for more details. 
+-- 
+--  You should have received a copy of the GNU Lesser General Public 
+--  License along with this library; if not, write to the Free Software 
+--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+-- 
+--  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+--
+--
+--
+--  File   : Partition_Spliter.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Spliter from Partition
 
@@ -138,5 +160,6 @@ fields
     
         -- shape and its internal faces
     myInternalFaces: DataMapOfShapeShape from TopTools;
+    myIntNotClFaces: DataMapOfShapeShape from TopTools;-- internal but not closed 
     
 end Spliter;
index 1fe235f0b29cbb21a0ad6a4430881c3c8fb3c492..502fbc956f63bd790345cb0202d93eb3ecea052b 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : Partition_Spliter.cxx
-//  Created   : Thu Aug 02 16:07:39 2001
-//  Author    : Benedicte MARTIN
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Spliter.cxx
+//  Author : Benedicte MARTIN
+//  Module : GEOM
 //  $Header$
 
+using namespace std;
 #include "Partition_Spliter.ixx"
 #include "Partition_Inter2d.hxx"
 #include "Partition_Inter3d.hxx"
@@ -676,66 +696,85 @@ void Partition_Spliter::MakeEdges (const TopoDS_Edge& E,
 //=======================================================================
 //function : FindFacesInside
 //purpose  : return compound of faces  of other shapes that are
-//           inside <S>. 
-//           <S> is an object shape.
+//           inside <theShape>. 
+//           <theShape> is an object shape.
 //           <CheckClosed> makes avoid faces that do not form a
 //           closed shell
 //           <All> makes return already added faces
 //=======================================================================
 
-TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& S,
+TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& theShape,
                                                const Standard_Boolean CheckClosed,
                                                const Standard_Boolean All)
 {
-  if (myInternalFaces.IsBound( S ))
-    return myInternalFaces.Find ( S );
-  
-  TopoDS_Compound C;
-  myBuilder.MakeCompound(C);
-  
-  const TopoDS_Shape& SS = myImageShape.Image(S).First(); // compound of split faces of S 
+  TopExp_Explorer expl;
+  if (myInternalFaces.IsBound( theShape ))
+  {
+    TopoDS_Shape aIntFComp = myInternalFaces.Find ( theShape );
+    TopoDS_Shape aIntRemFComp = myIntNotClFaces.Find ( theShape );
+
+    expl.Init( aIntRemFComp, TopAbs_FACE);
+    if (CheckClosed || !expl.More())
+      return aIntFComp;
+
+    TopoDS_Compound C;
+    myBuilder.MakeCompound( C );
+    // add removed faces
+    for (; expl.More(); expl.Next())
+      myBuilder.Add( C, expl.Current() );
+    // add good internal faces
+    for (expl.Init( aIntFComp, TopAbs_FACE); expl.More(); expl.Next())
+      myBuilder.Add( C, expl.Current() );
+    return C;
+  }
+
+  // compound of split faces of theShape 
+  const TopoDS_Shape& CSF = myImageShape.Image(theShape).First();
 
-  TopTools_MapOfShape MSE, MPF;
-  TopTools_DataMapOfShapeListOfShape MEF;
+  TopTools_MapOfShape MSE, MFP;
+  TopTools_DataMapOfShapeListOfShape DMSEFP;
   TopTools_MapIteratorOfMapOfShape itm;
-  TopExp_Explorer expl;
-  TopTools_ListOfShape Empty;
+  TopTools_ListOfShape EmptyL;
 
-  // MSE filling: map of section edges of SS
-  for (expl.Init(SS,TopAbs_EDGE); expl.More(); expl.Next()) {
+  // MSE filling: map of new section edges of CSF
+  for (expl.Init(CSF,TopAbs_EDGE); expl.More(); expl.Next()) {
     TopoDS_Shape resE = expl.Current() ;
-    if (myNewSection.Contains( resE ))
+    if (myNewSection.Contains( resE )) // only new edges
       MSE.Add(resE);
   }
 
-  // 1. MPF filling: map of resulting faces except those of S,
-  // we`ll add to C those of them which are inside SS
-  // 2. MEF filling: edge of MSE => faces of MPF
+  // DMEF: map edge of CSF - faces of CSF
+  TopTools_IndexedDataMapOfShapeListOfShape DMEF;
+  TopExp::MapShapesAndAncestors(CSF, TopAbs_EDGE, TopAbs_FACE, DMEF);
+
+  // Fill
+  // 1.  MFP - a map of faces to process: map of resulting faces except
+  // those of theShape; we`ll add to C those of them which are inside CSF
+  // 2.  DMSEFP - edge of MSE => faces of MFP
   TopTools_ListIteratorOfListOfShape itl;
   for (itl.Initialize(myListShapes);itl.More();itl.Next()) {
-    const TopoDS_Shape& SL = itl.Value();
-    if ( S.IsSame( SL )) continue;
+    const TopoDS_Shape& aShape = itl.Value();
+    if ( theShape.IsSame( aShape )) continue;
     // fill maps
-    TopoDS_Iterator itF ( myImageShape.Image(SL).First() );
+    // iterate on split faces of aShape
+    TopoDS_Iterator itF ( myImageShape.Image(aShape).First() );
     for ( ; itF.More(); itF.Next()) {
-      const TopoDS_Shape& snf = itF.Value();
-      MPF.Add(snf);
-      for (expl.Init( snf, TopAbs_EDGE ); expl.More(); expl.Next()) {
+      const TopoDS_Shape& sf = itF.Value();
+      MFP.Add(sf);
+      // iterate on edges of split faces of aShape,
+      // add to DMSEFP edges that are new
+      for (expl.Init( sf, TopAbs_EDGE ); expl.More(); expl.Next()) {
        TopoDS_Shape se = expl.Current();
        if ( MSE.Contains(se)) {// section edge
-         if (!MEF.IsBound(se)) 
-           MEF.Bind(se,Empty);
-         MEF(se).Append(snf);
+         if (!DMSEFP.IsBound(se)) 
+           DMSEFP.Bind(se,EmptyL);
+         DMSEFP(se).Append(sf);
        }
       }
     }
   }
-  
-  // MSEF: map edge of SS - faces of SS
-  TopTools_IndexedDataMapOfShapeListOfShape MSEF;
-  TopExp::MapShapesAndAncestors(SS, TopAbs_EDGE, TopAbs_FACE, MSEF);
 
-  // find faces inside S
+  // find faces inside theShape
 
   Standard_Boolean skipAlreadyAdded = Standard_False;
   Standard_Boolean GoodOri, inside;
@@ -743,60 +782,72 @@ TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& S,
   TopTools_ListOfShape KeepFaces;
   TopTools_DataMapIteratorOfDataMapOfShapeListOfShape Mapit;
 
-  for (Mapit.Initialize(MEF); Mapit.More() ; Mapit.Next() ) {
-    TopoDS_Edge E = TopoDS::Edge (Mapit.Key());
-    TopoDS_Edge OrigE = TopoDS::Edge ( myImagesEdges.Root( E ));
+  // iterate on section edges, check faces of other shapes
+  // sharing section edges and put internal faces to KeepFaces
+  for (Mapit.Initialize(DMSEFP); Mapit.More() ; Mapit.Next() ) {
+    // a new edge of theShape
+    const TopoDS_Edge& E = TopoDS::Edge (Mapit.Key());
+    // an original edge of which E is a split
+    const TopoDS_Edge& OrigE = TopoDS::Edge ( myImagesEdges.Root( E ));
+    // is OrigE itself splits a face
     Standard_Boolean isSectionE = myInter3d.IsSectionEdge ( OrigE );
 
-    TopTools_ListOfShape& EF = MEF.ChangeFind(E);
-    itl.Initialize( EF );
+    // split faces of other shapes sharing E
+    TopTools_ListOfShape& LSF = DMSEFP.ChangeFind(E);
+    itl.Initialize( LSF );
     while (itl.More()) {
-      TopoDS_Face face1 = TopoDS::Face(itl.Value());
-      EF.Remove( itl ); // == itl.Next();
-      if (!MPF.Remove( face1 ))
-       continue; // was not is MPF ( i.e already checked)
+      // a split faces of other shape
+      TopoDS_Face aFace1 = TopoDS::Face(itl.Value());
+      // remove aFace1 form DMSEFP and MFP
+      LSF.Remove( itl ); // == itl.Next();
+      if (!MFP.Remove( aFace1 ))
+       continue; // was not is MFP ( i.e already checked)
+      // check if aFace1 was already added to 2 shells
       if (!All &&
-         myAddedFacesMap.Contains( face1 ) &&
-         myAddedFacesMap.Contains( face1.Reversed() )) {
+         myAddedFacesMap.Contains( aFace1 ) &&
+         myAddedFacesMap.Contains( aFace1.Reversed() )) {
        skipAlreadyAdded = Standard_True;
-       continue; // already added to 2 shells
+       continue;
       }
 
-      // find another face which originates from the same face as <face1>
-      const TopoDS_Shape& origS = myImagesFaces.Root(face1);
-      TopoDS_Shape face2;
+      // find another face which originates from the same face as aFace1:
+      // usually aFace2 is internal if aFace1 is not and vice versa
+
+      const TopoDS_Shape& anOrigFace = myImagesFaces.Root(aFace1);
+      TopoDS_Shape aFace2;
       if ( !isSectionE ) {
         while (itl.More()) {
-          face2 = itl.Value();
-          if (!MPF.Contains( face2 )) {
-            EF.Remove( itl );
+          aFace2 = itl.Value();
+          if (!MFP.Contains( aFace2 )) {
+            LSF.Remove( itl );
             continue;
           }
-          if (origS.IsSame( myImagesFaces.Root( face2 )))
+          if (anOrigFace.IsSame( myImagesFaces.Root( aFace2 )))
             break;
           itl.Next();
         }
-        if (itl.More()) { // face2 found
-          EF.Remove( itl );
-          MPF.Remove(face2);
+        if (itl.More()) { // aFace2 found, remove it from maps
+          LSF.Remove( itl );
+          MFP.Remove(aFace2);
         }
         else
-          face2.Nullify();
-        itl.Initialize( EF );
+          aFace2.Nullify();
+        itl.Initialize( LSF );
       }
 
-      // check that origS is not same domain with SS
-      Standard_Boolean sameDom1 = 0, sameDom2 = 0;
-      const TopTools_ListOfShape& FL = MSEF.FindFromKey(E); //faces of SS sharing E
+      // check that anOrigFace is not same domain with CSF faces it intersects
+
+      const TopTools_ListOfShape& FL = DMEF.FindFromKey(E); //faces of CSF sharing E
       const TopoDS_Shape& origF1 = myImagesFaces.Root(FL.First());
       const TopoDS_Shape& origF2 = myImagesFaces.Root(FL.Last());
-      if (origS.IsSame( origF1 ))
-       sameDom1 = Standard_True;
-      if ( origS.IsSame( origF2 ))
-       sameDom2 = Standard_True;
-      if (!(sameDom1 || sameDom2) && myInter3d.HasSameDomainF( origS )) {
-       sameDom1 = myInter3d.IsSameDomainF( origS, origF1);
-       sameDom2 = (origF1 == origF2) ? sameDom1 : myInter3d.IsSameDomainF( origS, origF2);
+      Standard_Boolean sameDom1 = anOrigFace.IsSame( origF1 );
+      Standard_Boolean sameDom2 = anOrigFace.IsSame( origF2 );
+      if (!(sameDom1 || sameDom2) && myInter3d.HasSameDomainF( anOrigFace )) {
+       sameDom1 = myInter3d.IsSameDomainF( anOrigFace, origF1);
+        if (origF1 == origF2)
+          sameDom2 = sameDom1;
+        else
+          myInter3d.IsSameDomainF( anOrigFace, origF2);
       }
       if (sameDom1 && sameDom2)
        continue;
@@ -808,100 +859,133 @@ TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& S,
        if (inside || (dot + Precision::Angular() >= 1.0))
          continue; // E is convex between origF1 and origF2 or they are tangent
       }
-      
-       
+
+
       // keep one of found faces
-      const TopoDS_Shape& SFace = sameDom1 ? FL.Last() : FL.First(); //face of SS sharing E
-      inside = Partition_Loop3d::IsInside (E, TopoDS::Face(SFace), face1,
+
+       //face of CSF sharing E
+      const TopoDS_Shape& aShapeFace = sameDom1 ? FL.Last() : FL.First();
+      // analyse aFace1 state
+      inside = Partition_Loop3d::IsInside (E, TopoDS::Face(aShapeFace), aFace1,
                                           1, dot, GoodOri);
-      if ((dot + Precision::Angular() >= 1.0) &&
-         !face2.IsNull()) { // face2 position is not clear, it will be analysed alone
-       MPF.Add( face2 );
-       EF.Append( face2 );
-       face2.Nullify();
+      // store internal face
+      if (inside)
+       KeepFaces.Append(aFace1);
+      else if (!aFace2.IsNull())
+      {
+        if (dot + Precision::Angular() >= 1.0)
+        {
+          // aFace2 state is not clear, it will be analysed alone,
+          // put it back to the maps
+          MFP.Add( aFace2 );
+          LSF.Append( aFace2 );
+        }
+        else
+         KeepFaces.Append(aFace2);
       }
-      if (inside) 
-       KeepFaces.Append(face1);
-      else
-       if (!face2.IsNull())
-         KeepFaces.Append(face2);
     }
   }
 
+  // add not distributed faces connected with KeepFaces
+
+  // ultimate list of internal faces
   TopTools_ListOfShape KeptFaces;
-  if (MPF.IsEmpty())
-    KeptFaces.Append (KeepFaces);
 
-  while (!KeepFaces.IsEmpty()) {
-    // add to KeepFaces not distributed faces connected with KeepFaces
+  // add to MFP not split tool faces as well, they may be connected with
+  // tool faces interfering with theShape
+  for ( itm.Initialize(myMapTools); itm.More(); itm.Next() ) {
+    const TopoDS_Shape& aToolFace = itm.Key();
+    if (!myImageShape.HasImage(aToolFace))
+      MFP.Add (aToolFace);
+  }
 
-    // KeepEdges : map of edges of kept faces
+  if (MFP.IsEmpty())
+    KeptFaces.Append (KeepFaces);
+
+  while (!KeepFaces.IsEmpty())
+  {
+    // KeepEdges : map of edges of faces kept last time
     TopTools_IndexedMapOfShape KeepEdges;
-    for (itl.Initialize(KeepFaces);itl.More();itl.Next() ) 
+    for ( itl.Initialize(KeepFaces); itl.More(); itl.Next() ) {
       TopExp::MapShapes( itl.Value(), TopAbs_EDGE, KeepEdges);
+      KeptFaces.Append( itl.Value() );
+    }
 
-    KeptFaces.Append (KeepFaces); // == KeepFaces.Clear()
-    
-    // keep faces connected with already kept faces
-    for (itm.Initialize(MPF);itm.More();itm.Next() ) {
-      const TopoDS_Shape& PF = itm.Key();
-      for (expl.Init(PF,TopAbs_EDGE); expl.More(); expl.Next()) {
-       const TopoDS_Shape& se = expl.Current();
-       if (!MSE.Contains(se) && KeepEdges.Contains(se) ) {
-         KeepFaces.Append(PF);
-         MPF.Remove(PF);
-         break;
-       }
+    KeepFaces.Clear();
+
+    // keep faces connected with already kept faces by KeepEdges
+    for ( itm.Initialize(MFP); itm.More(); itm.Next() ) {
+      const TopoDS_Shape& FP = itm.Key();
+      for (expl.Init(FP,TopAbs_EDGE); expl.More(); expl.Next()) {
+        const TopoDS_Shape& se = expl.Current();
+        if (!MSE.Contains(se) && KeepEdges.Contains(se) ) {
+          KeepFaces.Append(FP);
+          MFP.Remove(FP);
+          break;
+        }
       }
     }
   }
 
-  // check if kept faces make shell without free edges
-  MSEF.Clear();  // edge - kept faces
-  MPF.Clear(); // wrong faces
+  // check if kept faces form a shell without free edges
+
+  DMEF.Clear();  // edge - kept faces
+  MFP.Clear(); // wrong faces
   if (CheckClosed) {
     for (itl.Initialize(KeptFaces); itl.More(); itl.Next() ) 
-      TopExp::MapShapesAndAncestors(itl.Value(), TopAbs_EDGE, TopAbs_FACE, MSEF);
+      TopExp::MapShapesAndAncestors(itl.Value(), TopAbs_EDGE, TopAbs_FACE, DMEF);
 
-    Standard_Integer i, nb = MSEF.Extent();
+    Standard_Integer i, nb = DMEF.Extent();
     Standard_Boolean isClosed = Standard_False;
     while (!isClosed) {
       isClosed = Standard_True;
       for (i=1;  isClosed && i<=nb;  ++i) {
-       const TopoDS_Shape& E = MSEF.FindKey( i );
-       if (! MSE.Contains( E ))
-         isClosed = ( MSEF(i).Extent() != 1 );
+        const TopoDS_Shape& E = DMEF.FindKey( i );
+        if (! MSE.Contains( E ))
+          isClosed = ( DMEF(i).Extent() != 1 );
       }
       if (!isClosed) {
-       const TopoDS_Shape& F = MSEF.FindFromIndex( i-1 ).First(); // bad face
-       MPF.Add( F ); 
-       // remove bad face from MSEF
-       for (expl.Init( F, TopAbs_EDGE); expl.More(); expl.Next()) {
+        const TopoDS_Shape& F = DMEF.FindFromIndex( i-1 ).First(); // bad face
+        MFP.Add( F ); 
+        // remove bad face from DMEF
+        for (expl.Init( F, TopAbs_EDGE); expl.More(); expl.Next()) {
          const TopoDS_Shape& E = expl.Current();
-         TopTools_ListOfShape& FL = MSEF.ChangeFromKey( E );
-         for (itl.Initialize( FL ); itl.More(); itl.Next() ) {
-           if ( F.IsSame( itl.Value() )) {
-             FL.Remove( itl );
-             break;
-           }
-         }
-       }
+          TopTools_ListOfShape& FL = DMEF.ChangeFromKey( E );
+          for (itl.Initialize( FL ); itl.More(); itl.Next() ) {
+            if ( F.IsSame( itl.Value() )) {
+              FL.Remove( itl );
+              break;
+            }
+          }
+        }
       }
     }
   }
 
-  // add to the compound kept faces except bad ones in MPF
-  if (KeptFaces.Extent() > MPF.Extent()) {
-    for (itl.Initialize(KeptFaces); itl.More(); itl.Next() ) 
-      if (! MPF.Contains( itl.Value() )) {
-       myBuilder.Add( C, itl.Value());
-       //myBuilder.Add( C, itl.Value().Reversed());
-      }
+  // a result compound
+  TopoDS_Compound C;
+  // compound of removed internal faces
+  TopoDS_Compound CNotCl;
+
+  myBuilder.MakeCompound(C);
+  myBuilder.MakeCompound(CNotCl);
+
+  // add to compounds
+  for (itl.Initialize(KeptFaces); itl.More(); itl.Next() )
+  {
+    TopoDS_Shape & aIntFace = itl.Value();
+    if (! MFP.Contains( aIntFace ))
+      myBuilder.Add( C, aIntFace);
+    else
+      myBuilder.Add( CNotCl, aIntFace);
+  }
+
+  if (!skipAlreadyAdded && CheckClosed)
+  {
+    myInternalFaces.Bind( theShape, C );
+    myIntNotClFaces.Bind( theShape, CNotCl );
   }
 
-  if (!skipAlreadyAdded)
-    myInternalFaces.Bind( S, C );
-  
   return C;
 }
 
@@ -911,11 +995,11 @@ TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& S,
 //=======================================================================
 
 void Partition_Spliter::MakeShells(const TopoDS_Shape& S,
-                                  TopTools_ListOfShape& NS)
+                                   TopTools_ListOfShape& NS)
 {
   // check if S is closed shape
   Standard_Boolean isClosed = Standard_True;
-  
+
   TopTools_IndexedDataMapOfShapeListOfShape MEF;
   Standard_Integer i;
   if (S.ShapeType() != TopAbs_SOLID) {
@@ -1361,26 +1445,35 @@ void Partition_Spliter::KeepShapesInside (const TopoDS_Shape& S)
       KeepShapesInside( it.Value());
     return;
   }
-  if (!myImageShape.HasImage( S ) && ! CheckTool( S ))
-    return;
-  
+
+  Standard_Boolean isTool = Standard_False;
+  if (!myImageShape.HasImage( S )) {
+    isTool = CheckTool( S );
+    if (!isTool) return;
+  }
+
+  // build map of internal faces
+  TopTools_IndexedMapOfShape MIF;
+
+  // if S is not a tool, make sure that split faces of S are in MIF
+  if (!isTool)
+    TopExp::MapShapes( myImageShape.Image(S).First(), TopAbs_FACE, MIF);
+
   TopoDS_Shape InsFacesComp = FindFacesInside( S, Standard_False, Standard_True);
-  TopTools_IndexedMapOfShape MIF; // map of internal faces;
   TopExp::MapShapes( InsFacesComp, TopAbs_FACE, MIF );
 
-  if (MIF.IsEmpty()) return;
-  
-  // leave in the result only those shapes having a face in MIF
+
   TopoDS_Compound C;
   myBuilder.MakeCompound(C);
-  
+
+  // leave in the result only those shapes having a face in MIF
   for (it.Initialize( myShape ); it.More(); it.Next()) {
 
     TopExp_Explorer expResF( it.Value(), TopAbs_FACE );
     for (; expResF.More(); expResF.Next()) {
       if ( MIF.Contains( expResF.Current())) {
-       myBuilder.Add( C, it.Value() );
-       break;
+        myBuilder.Add( C, it.Value() );
+        break;
       }
     }
   }
@@ -1406,7 +1499,7 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S)
     isTool = CheckTool( S );
     if (!isTool) return;
   }
-  
+
   TopoDS_Shape InsFacesComp = FindFacesInside( S, Standard_False, Standard_True);
   TopTools_IndexedMapOfShape MIF; // map of internal faces
   TopExp::MapShapes( InsFacesComp, TopAbs_FACE, MIF);
@@ -1414,7 +1507,7 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S)
   if (MIF.IsEmpty()) return;
 
   // add to MIF split faces of S
-  if (myImageShape.HasImage( S ))
+  if (myImageShape.HasImage(S))
     TopExp::MapShapes( myImageShape.Image(S).First(), TopAbs_FACE, MIF);
 
   // leave in the result only those shapes not having all face in MIF
@@ -1431,7 +1524,7 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S)
     for (; expResF.More(); expResF.Next())
       if (!MIF.Contains( expResF.Current()))
        break;
-    
+
     if (expResF.More())
       // add shape to result
       myBuilder.Add( C, it.Value() );
@@ -1445,15 +1538,17 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S)
   }
 
   if (!isTool) {
+
     // rebuild S, it must remain in the result
+
     Standard_Boolean isClosed = Standard_False;
     switch (S.ShapeType()) {
     case TopAbs_SOLID :
       isClosed = Standard_True; break;
     case TopAbs_SHELL: {
       TopTools_IndexedDataMapOfShapeListOfShape MEF;
-      Standard_Integer i;
       TopExp::MapShapesAndAncestors(S, TopAbs_EDGE, TopAbs_FACE, MEF);
+      Standard_Integer i;
       for (i=1;  isClosed && i<=MEF.Extent();  ++i) 
         isClosed = ( MEF(i).Extent() != 1 );
       break;
@@ -1462,27 +1557,42 @@ void Partition_Spliter::RemoveShapesInside (const TopoDS_Shape& S)
       isClosed = Standard_False;
     }
     if (isClosed) {
+
       // add to a new shape external faces of removed shapes, ie those in RFM
+
       TopoDS_Shell Shell;
       myBuilder.MakeShell( Shell );
 
+      // exclude redundant internal face with edges encounterd only once
+      TopTools_IndexedDataMapOfShapeListOfShape MEF;
       TopTools_MapIteratorOfMapOfShape itF (RFM);
       for ( ; itF.More(); itF.Next()) 
-       myBuilder.Add( Shell, itF.Key());
+        TopExp::MapShapesAndAncestors(itF.Key(), TopAbs_EDGE, TopAbs_FACE, MEF);
+
+      // add only faces forming a closed shell
+      for (itF.Reset() ; itF.More(); itF.Next())
+      {
+        TopExp_Explorer expE (itF.Key(), TopAbs_EDGE);
+        for (; expE.More(); expE.Next())
+          if (MEF.FindFromKey(expE.Current()).Extent() == 1)
+            break;
+        if (!expE.More())
+          myBuilder.Add( Shell, itF.Key());
+      }
 
       if (S.ShapeType() == TopAbs_SOLID) {
-       TopoDS_Solid Solid;
-       myBuilder.MakeSolid( Solid );
-       myBuilder.Add (Solid, Shell);
-       myBuilder.Add (C, Solid);
+        TopoDS_Solid Solid;
+        myBuilder.MakeSolid( Solid );
+        myBuilder.Add (Solid, Shell);
+        myBuilder.Add (C, Solid);
       }
       else
-       myBuilder.Add (C, Shell);
+        myBuilder.Add (C, Shell);
     }
     else {
       if (myImageShape.HasImage( S )) {
-       for (it.Initialize( myImageShape.Image(S).First()); it.More(); it.Next())
-         myBuilder.Add (C, it.Value());
+        for (it.Initialize( myImageShape.Image(S).First()); it.More(); it.Next())
+          myBuilder.Add (C, it.Value());
       }
     }
   }
index 8174eb986cdf984643d768117a99013d3ee44855..bb26915c1d63ff43639984c8c54085ecc9c9b5f0 100644 (file)
@@ -1,16 +1,29 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Spliter.hxx
+//  Module : GEOM
+
 
 #ifndef _Partition_Spliter_HeaderFile
 #define _Partition_Spliter_HeaderFile
@@ -132,10 +145,15 @@ Partition_Inter3d myInter3d;
 TopTools_MapOfOrientedShape myAddedFacesMap;
 TopTools_MapOfShape myEqualEdges;
 TopTools_DataMapOfShapeShape myInternalFaces;
+TopTools_DataMapOfShapeShape myIntNotClFaces;
 
 
 };
 
+
+
+
+
 // other Inline functions and methods (like "C++: function call" methods)
 //
 
index 03fc70d07a1d45305c57ca36f756f042a1b60d75..ee825946855db633d7899ef2c280a9ef1858dab1 100644 (file)
@@ -1,17 +1,29 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
+//  GEOM PARTITION : partition algorithm
 //
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Spliter.ixx
+//  Module : GEOM
+
 #include "Partition_Spliter.jxx"
 
  
index 67d45dc1a519189971a44b5c4fb0f1fe3c2179a2..bf8622c93a6b74b3a14c6b91cf438e4d12cb347e 100644 (file)
@@ -1,3 +1,29 @@
+//  GEOM PARTITION : partition algorithm
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Partition_Spliter.jxx
+//  Module : GEOM
+
 #ifndef _BRepAlgo_AsDes_HeaderFile
 #include <BRepAlgo_AsDes.hxx>
 #endif