Salome HOME
NOMINMAX definition has been moved into CONFIGURATION repository.
[modules/geom.git] / src / GEOM_I_Superv / GEOM_Superv_i.cc
index 159bb6f4997a021ac5aa51250174cdb690ccab06..99ce60b7192380cafc9aaf02a9d518d7b408671e 100644 (file)
@@ -1,41 +1,42 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2003-2007  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 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, or (at your option) any later version.
 //
-//  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.
+// 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
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #include "GEOM_Superv_i.hh"
 #include "SALOME_LifeCycleCORBA.hxx"
+#include "Utils_CorbaException.hxx"
 
 #include CORBA_SERVER_HEADER(SALOME_Session)
 #include "SALOMEDSClient_ClientFactory.hxx"
 
 #define isNewStudy(a,b) (a > 0 && a != b)
 
-using namespace std;
 //=============================================================================
 //  constructor:
 //=============================================================================
 GEOM_Superv_i::GEOM_Superv_i(CORBA::ORB_ptr orb,
-                            PortableServer::POA_ptr poa,
-                            PortableServer::ObjectId * contId, 
-                            const char *instanceName, 
-                            const char *interfaceName) :
+                             PortableServer::POA_ptr poa,
+                             PortableServer::ObjectId * contId,
+                             const char *instanceName,
+                             const char *interfaceName) :
   Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
 {
   MESSAGE("GEOM_Superv_i::GEOM_Superv_i");
@@ -50,9 +51,6 @@ GEOM_Superv_i::GEOM_Superv_i(CORBA::ORB_ptr orb,
 
   setGeomEngine();
 
-  myStudyID = -1;
-  myLastStudyID = -1;
-
   myBasicOp = GEOM::GEOM_IBasicOperations::_nil();
   my3DPrimOp = GEOM::GEOM_I3DPrimOperations::_nil();
   myBoolOp = GEOM::GEOM_IBooleanOperations::_nil();
@@ -72,22 +70,22 @@ GEOM_Superv_i::~GEOM_Superv_i()
 {
   MESSAGE("GEOM_Superv_i::~GEOM_Superv_i");
   if (!CORBA::is_nil(myBasicOp))
-    myBasicOp->Destroy();
+    myBasicOp->UnRegister();
   if (!CORBA::is_nil(myBoolOp))
-    myBoolOp->Destroy();
+    myBoolOp->UnRegister();
   if (!CORBA::is_nil(my3DPrimOp))
-    my3DPrimOp->Destroy();
+    my3DPrimOp->UnRegister();
   delete name_service;
 }
 
 //============================================================================
-// function : register() 
+// function : register()
 // purpose  : register 'name' in 'name_service'
 //============================================================================
 void GEOM_Superv_i::register_name(char * name)
 {
   GEOM::GEOM_Superv_var g = _this();
-  name_service->Register(g, name); 
+  name_service->Register(g, name);
 }
 
 //=============================================================================
@@ -95,7 +93,7 @@ void GEOM_Superv_i::register_name(char * name)
 //=============================================================================
 void GEOM_Superv_i::setGeomEngine()
 {
-  if ( !CORBA::is_nil(myGeomEngine) ) 
+  if ( !CORBA::is_nil(myGeomEngine) )
     return;
 
   // get GEOM_Gen engine
@@ -104,56 +102,12 @@ void GEOM_Superv_i::setGeomEngine()
   std::string shortName=container_name.in();
   shortName=shortName.substr(12); // substract "/Containers/"
   SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
-  Engines::Component_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
+  Engines::EngineComponent_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
   delete lcc;
 
   myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
 }
 
-//=============================================================================
-//  SetStudyID:
-//=============================================================================
-void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
-{
-  // mkr : PAL10770 -->
-  myLastStudyID = myStudyID;
-
-  CORBA::Object_ptr anObject = name_service->Resolve("/Kernel/Session");
-  if ( !CORBA::is_nil(anObject) ) {
-    SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
-    if ( !CORBA::is_nil(aSession) ) {
-      int aStudyID = aSession->GetActiveStudyId();
-      if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
-       MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
-       myStudyID = aStudyID;
-      }
-      else
-       myStudyID = theId; // mkr : IPAL12128
-    }
-  }
-  
-  if ( isNewStudy(myLastStudyID,myStudyID) ) {
-    if (CORBA::is_nil(myGeomEngine)) setGeomEngine();
-    string anEngine = _orb->object_to_string( myGeomEngine );
-    
-    CORBA::Object_var anObj = name_service->Resolve("/myStudyManager");
-    if ( !CORBA::is_nil(anObj) ) {
-      SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow(anObj);
-      if ( !CORBA::is_nil(aStudyManager) ) {
-       _PTR(Study) aDSStudy = ClientFactory::Study(aStudyManager->GetStudyByID(myStudyID));
-       if ( aDSStudy ) {
-         _PTR(SComponent) aSCO = aDSStudy->FindComponent(myGeomEngine->ComponentDataType());
-         if ( aSCO ) {
-           _PTR(StudyBuilder) aBuilder = aDSStudy->NewBuilder();
-           if ( aBuilder ) aBuilder->LoadWith( aSCO, anEngine );
-         }
-       }
-      }
-    }
-  }
-  // mkr : PAL10770 <--
-}
-
 //=============================================================================
 //  CreateListOfGO:
 //=============================================================================
@@ -167,13 +121,14 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO()
 //=============================================================================
 //  AddItemToListOfGO:
 //=============================================================================
-void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList, 
-                                     GEOM::GEOM_Object_ptr    theObject)
+void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList,
+                                      GEOM::GEOM_Object_ptr theObject)
 {
   MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)");
-  if (GEOM_List_i<GEOM::ListOfGO>* aList = 
+  GEOM::GEOM_Object_var anObj =  GEOM::GEOM_Object::_duplicate(theObject);
+  if (GEOM_List_i<GEOM::ListOfGO>* aList =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theList, myPOA).in())) {
-    aList->AddObject(theObject);
+    aList->AddObject(anObj);
     MESSAGE(" NewLength = "<<aList->GetList().length());
   }
 }
@@ -191,11 +146,11 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfLong()
 //=============================================================================
 //  AddItemToListOfLong:
 //=============================================================================
-void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList, 
-                                       CORBA::Long theObject)
+void GEOM_Superv_i::AddItemToListOfLong(GEOM::GEOM_List_ptr& theList,
+                                        CORBA::Long theObject)
 {
   MESSAGE("GEOM_Superv_i::AddItemToListOfLong(...)");
-  if (GEOM_List_i<GEOM::ListOfLong>* aList = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aList =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theList, myPOA).in())) {
     aList->AddObject(theObject);
     MESSAGE(" NewLength = "<<aList->GetList().length());
@@ -215,11 +170,11 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfDouble()
 //=============================================================================
 //  AddItemToListOfDouble:
 //=============================================================================
-void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList, 
-                                         CORBA::Double theObject)
+void GEOM_Superv_i::AddItemToListOfDouble(GEOM::GEOM_List_ptr& theList,
+                                          CORBA::Double theObject)
 {
   MESSAGE("GEOM_Superv_i::AddItemToListOfDouble(...)");
-  if (GEOM_List_i<GEOM::ListOfDouble>* aList = 
+  if (GEOM_List_i<GEOM::ListOfDouble>* aList =
       dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theList, myPOA).in())) {
     aList->AddObject(theObject);
     MESSAGE(" NewLength = "<<aList->GetList().length());
@@ -234,8 +189,9 @@ void GEOM_Superv_i::getBasicOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IBasicOperations interface
-  if (CORBA::is_nil(myBasicOp) || isNewStudy(myLastStudyID,myStudyID))
-    myBasicOp = myGeomEngine->GetIBasicOperations(myStudyID);
+  if (CORBA::is_nil(myBasicOp)) {
+    myBasicOp = myGeomEngine->GetIBasicOperations();
+  }
 }
 
 //=============================================================================
@@ -246,8 +202,9 @@ void GEOM_Superv_i::get3DPrimOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_I3DPrimOperations interface
-  if (CORBA::is_nil(my3DPrimOp) || isNewStudy(myLastStudyID,myStudyID))
-    my3DPrimOp = myGeomEngine->GetI3DPrimOperations(myStudyID);
+  if (CORBA::is_nil(my3DPrimOp)) {
+    my3DPrimOp = myGeomEngine->GetI3DPrimOperations();
+  }
 }
 
 //=============================================================================
@@ -258,8 +215,9 @@ void GEOM_Superv_i::getBoolOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IBooleanOperations interface
-  if (CORBA::is_nil(myBoolOp) || isNewStudy(myLastStudyID,myStudyID))
-    myBoolOp = myGeomEngine->GetIBooleanOperations(myStudyID);
+  if (CORBA::is_nil(myBoolOp)) {
+    myBoolOp = myGeomEngine->GetIBooleanOperations();
+  }
 }
 
 //=============================================================================
@@ -270,8 +228,9 @@ void GEOM_Superv_i::getInsOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IInsertOperations interface
-  if (CORBA::is_nil(myInsOp) || isNewStudy(myLastStudyID,myStudyID))
-    myInsOp = myGeomEngine->GetIInsertOperations(myStudyID);
+  if (CORBA::is_nil(myInsOp)) {
+    myInsOp = myGeomEngine->GetIInsertOperations();
+  }
 }
 
 //=============================================================================
@@ -282,8 +241,9 @@ void GEOM_Superv_i::getTransfOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_ITransformOperations interface
-  if (CORBA::is_nil(myTransfOp) || isNewStudy(myLastStudyID,myStudyID))
-    myTransfOp = myGeomEngine->GetITransformOperations(myStudyID);
+  if (CORBA::is_nil(myTransfOp)) {
+    myTransfOp = myGeomEngine->GetITransformOperations();
+  }
 }
 
 //=============================================================================
@@ -294,8 +254,9 @@ void GEOM_Superv_i::getShapesOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IShapesOperations interface
-  if (CORBA::is_nil(myShapesOp) || isNewStudy(myLastStudyID,myStudyID))
-    myShapesOp = myGeomEngine->GetIShapesOperations(myStudyID);
+  if (CORBA::is_nil(myShapesOp)) {
+    myShapesOp = myGeomEngine->GetIShapesOperations();
+  }
 }
 
 //=============================================================================
@@ -306,8 +267,9 @@ void GEOM_Superv_i::getBlocksOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IBlocksOperations interface
-  if (CORBA::is_nil(myBlocksOp) || isNewStudy(myLastStudyID,myStudyID))
-    myBlocksOp = myGeomEngine->GetIBlocksOperations(myStudyID);
+  if (CORBA::is_nil(myBlocksOp)) {
+    myBlocksOp = myGeomEngine->GetIBlocksOperations();
+  }
 }
 
 //=============================================================================
@@ -318,8 +280,9 @@ void GEOM_Superv_i::getCurvesOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_ICurvesOperations interface
-  if (CORBA::is_nil(myCurvesOp) || isNewStudy(myLastStudyID,myStudyID))
-    myCurvesOp = myGeomEngine->GetICurvesOperations(myStudyID);
+  if (CORBA::is_nil(myCurvesOp)) {
+    myCurvesOp = myGeomEngine->GetICurvesOperations();
+  }
 }
 
 //=============================================================================
@@ -330,8 +293,9 @@ void GEOM_Superv_i::getLocalOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_ILocalOperations interface
-  if (CORBA::is_nil(myLocalOp) || isNewStudy(myLastStudyID,myStudyID))
-    myLocalOp = myGeomEngine->GetILocalOperations(myStudyID);
+  if (CORBA::is_nil(myLocalOp)) {
+    myLocalOp = myGeomEngine->GetILocalOperations();
+  }
 }
 
 //=============================================================================
@@ -342,15 +306,109 @@ void GEOM_Superv_i::getGroupOp()
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
   // get GEOM_IGroupOperations interface
-  if (CORBA::is_nil(myGroupOp) || isNewStudy(myLastStudyID,myStudyID))
-    myGroupOp = myGeomEngine->GetIGroupOperations(myStudyID);
+  if (CORBA::is_nil(myGroupOp)) {
+    myGroupOp = myGeomEngine->GetIGroupOperations();
+  }
+}
+
+//=============================================================================
+//  getAdvancedOp:
+//=============================================================================
+void GEOM_Superv_i::getAdvancedOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::IAdvancedOperations interface
+  if (CORBA::is_nil(myAdvancedOp)) {
+    myAdvancedOp = GEOM::IAdvancedOperations::_narrow(myGeomEngine->GetPluginOperations("AdvancedEngine"));
+  }
+}
+
+//=============================================================================
+//  getSTLPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getSTLPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::ISTLOperations interface
+  if (CORBA::is_nil(mySTLOp)) {
+    mySTLOp = GEOM::ISTLOperations::_narrow(myGeomEngine->GetPluginOperations("STLPluginEngine"));
+  }
+}
+
+//=============================================================================
+//  getBREPPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getBREPPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM:IBREPOperations interface
+  if (CORBA::is_nil(myBREPOp)) {
+    myBREPOp = GEOM::IBREPOperations::_narrow(myGeomEngine->GetPluginOperations("BREPPluginEngine"));
+  }
+}
+
+//=============================================================================
+//  getSTEPPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getSTEPPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::ISTEPOperations interface
+  if (CORBA::is_nil(mySTEPOp)) {
+    mySTEPOp = GEOM::ISTEPOperations::_narrow(myGeomEngine->GetPluginOperations("STEPPluginEngine"));
+  }
+}
+
+//=============================================================================
+//  getIGESPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getIGESPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::IIGESOperations interface
+  if (CORBA::is_nil(myIGESOp)) {
+    myIGESOp = GEOM::IIGESOperations::_narrow(myGeomEngine->GetPluginOperations("IGESPluginEngine"));
+  }
+}
+
+//=============================================================================
+//  getXAOPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getXAOPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::IXAOOperations interface
+  if (CORBA::is_nil(myXAOOp)) {
+    myXAOOp = GEOM::IXAOOperations::_narrow(myGeomEngine->GetPluginOperations("XAOPluginEngine"));
+  }
+}
+
+#ifdef WITH_VTK
+//=============================================================================
+//  getVTKPluginOp:
+//=============================================================================
+void GEOM_Superv_i::getVTKPluginOp()
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  // get GEOM::IVTKOperations interface
+  if (CORBA::is_nil(myVTKOp)) {
+    myVTKOp = GEOM::IVTKOperations::_narrow(myGeomEngine->GetPluginOperations("VTKPluginEngine"));
+  }
 }
+#endif
 
 //=============================================================================
 //  GetServant:
 //=============================================================================
 PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr       theObject,
-                                                         PortableServer::POA_ptr thePOA)
+                                                          PortableServer::POA_ptr thePOA)
 {
   if(CORBA::is_nil(theObject))  return NULL;
   PortableServer::Servant aServant = thePOA->reference_to_servant(theObject);
@@ -361,9 +419,9 @@ PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr
 // function : Save()
 // purpose  : save OCAF/Geom document
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
-                                      const char* theURL,
-                                      CORBA::Boolean isMultiFile)
+SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                       const char* /*theURL*/,
+                                       CORBA::Boolean /*isMultiFile*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -372,10 +430,10 @@ SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
 //============================================================================
 // function : SaveASCII()
 // purpose  :
-//============================================================================ 
-SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
-                                           const char* theURL,
-                                           CORBA::Boolean isMultiFile)
+//============================================================================
+SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                            const char* /*theURL*/,
+                                            CORBA::Boolean /*isMultiFile*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -384,11 +442,11 @@ SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponen
 //============================================================================
 // function : Load()
 // purpose  :
-//============================================================================ 
-CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
-                                  const SALOMEDS::TMPFile& theStream,
-                                  const char* theURL,
-                                  CORBA::Boolean isMultiFile)
+//============================================================================
+CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                   const SALOMEDS::TMPFile& /*theStream*/,
+                                   const char* /*theURL*/,
+                                   CORBA::Boolean /*isMultiFile*/)
 {
   return false;
 }
@@ -396,11 +454,11 @@ CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
 //============================================================================
 // function : LoadASCII()
 // purpose  :
-//============================================================================ 
-CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
-                                       const SALOMEDS::TMPFile& theStream,
-                                       const char* theURL,
-                                       CORBA::Boolean isMultiFile)
+//============================================================================
+CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                        const SALOMEDS::TMPFile& /*theStream*/,
+                                        const char* /*theURL*/,
+                                        CORBA::Boolean /*isMultiFile*/)
 {
   return false;
 }
@@ -409,7 +467,7 @@ CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
 // function : Close()
 // purpose  :
 //============================================================================
-void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
+void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr /*theComponent*/)
 {
 }
 
@@ -426,10 +484,10 @@ char* GEOM_Superv_i::ComponentDataType()
 // function : IORToLocalPersistentID()
 // purpose  :
 //============================================================================
-char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
-                                           const char* IORString,
-                                           CORBA::Boolean isMultiFile,
-                                           CORBA::Boolean isASCII)
+char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr /*theSObject*/,
+                                            const char* /*IORString*/,
+                                            CORBA::Boolean /*isMultiFile*/,
+                                            CORBA::Boolean /*isASCII*/)
 {
   return 0;
 }
@@ -440,17 +498,17 @@ char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
 //          : Used when a study is loaded
 //          : The IOR (IORName) of object created is returned
 //============================================================================
-char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
-                                           const char* aLocalPersistentID,
-                                           CORBA::Boolean isMultiFile,
-                                           CORBA::Boolean isASCII)
+char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr /*theSObject*/,
+                                            const char* /*aLocalPersistentID*/,
+                                            CORBA::Boolean /*isMultiFile*/,
+                                            CORBA::Boolean /*isASCII*/)
 {
   return 0;
 }
 
 //============================================================================
 // function : CanPublishInStudy
-// purpose  : 
+// purpose  :
 //============================================================================
 CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
 {
@@ -461,23 +519,35 @@ CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
 
 //============================================================================
 // function : PublishInStudy
-// purpose  : 
+// purpose  :
+//============================================================================
+SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
+                                                    CORBA::Object_ptr theObject,
+                                                    const char* theName) 
+{
+  if (CORBA::is_nil(myGeomEngine))
+    setGeomEngine();
+  return myGeomEngine->PublishInStudy(theSObject, theObject, theName);
+}
+
+//============================================================================
+// function : PublishNamedShapesInStudy
+// purpose  :
 //============================================================================
-SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
-                                                   SALOMEDS::SObject_ptr theSObject,
-                                                   CORBA::Object_ptr theObject,
-                                                   const char* theName) throw (SALOME::SALOME_Exception)
+GEOM::ListOfGO*
+GEOM_Superv_i::PublishNamedShapesInStudy(//SALOMEDS::SObject_ptr theSObject,
+                                         CORBA::Object_ptr theObject)
 {
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
-  return myGeomEngine->PublishInStudy(theStudy, theSObject, theObject, theName);
+  return myGeomEngine->PublishNamedShapesInStudy(theObject);
 }
 
 //============================================================================
 // function : CanCopy()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
+CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr /*theObject*/)
 {
   return false;
 }
@@ -486,7 +556,7 @@ CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
 // function : CopyFrom()
 // purpose  :
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
+SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr /*theObject*/, CORBA::Long& /*theObjectID*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -496,7 +566,7 @@ SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORB
 // function : CanPaste()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
+CORBA::Boolean GEOM_Superv_i::CanPaste(const char* /*theComponentName*/, CORBA::Long /*theObjectID*/)
 {
   return false;
 }
@@ -505,9 +575,9 @@ CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long
 // function : PasteInto()
 // purpose  :
 //============================================================================
-SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
-                                              CORBA::Long theObjectID,
-                                              SALOMEDS::SObject_ptr theObject)
+SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& /*theStream*/,
+                                               CORBA::Long /*theObjectID*/,
+                                               SALOMEDS::SObject_ptr /*theObject*/)
 {
   SALOMEDS::SObject_var aNewSO;
   return aNewSO._retn();
@@ -518,8 +588,8 @@ SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStrea
 //  MakePointXYZ:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
-                                                 CORBA::Double theY,
-                                                 CORBA::Double theZ)
+                                                  CORBA::Double theY,
+                                                  CORBA::Double theZ)
 {
   beginService( " GEOM_Superv_i::MakePointXYZ" );
   MESSAGE("GEOM_Superv_i::MakePointXYZ");
@@ -534,9 +604,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointXYZ(CORBA::Double theX,
 //  MakePointWithReference:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
-                                                            CORBA::Double theX, 
-                                                            CORBA::Double theY, 
-                                                            CORBA::Double theZ)
+                                                             CORBA::Double theX,
+                                                             CORBA::Double theY,
+                                                             CORBA::Double theZ)
 {
   beginService( " GEOM_Superv_i::MakePointWithReference" );
   MESSAGE("GEOM_Superv_i::MakePointWithReference");
@@ -550,21 +620,88 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointWithReference (GEOM::GEOM_Object_p
 //  MakePointOnCurve:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
-                                                      CORBA::Double theParameter)
+                                                       CORBA::Double theParameter)
 {
   beginService( " GEOM_Superv_i::MakePointOnCurve" );
   MESSAGE("GEOM_Superv_i::MakePointOnCurve");
   getBasicOp();
-  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter);
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurve(theRefCurve, theParameter, false);
   endService( " GEOM_Superv_i::MakePointOnCurve" );
   return anObj;
 }
 
+//=============================================================================
+//  MakePointOnCurveByLength:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
+                                                               CORBA::Double theLength,
+                                                               GEOM::GEOM_Object_ptr theStartPoint)
+{
+  beginService( " GEOM_Superv_i::MakePointOnCurveByLength" );
+  MESSAGE("GEOM_Superv_i::MakePointOnCurveByLength");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePointOnCurveByLength(theRefCurve, theLength, theStartPoint);
+  endService( " GEOM_Superv_i::MakePointOnCurveByLength" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakePointOnCurveByCoord
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theRefCurve,
+                                                              CORBA::Double theXParameter,
+                                                              CORBA::Double theYParameter,
+                                                              CORBA::Double theZParameter)
+{
+  beginService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
+  MESSAGE("GEOM_Superv_i::MakePointOnCurveByCoord");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBasicOp->MakePointOnCurveByCoord(theRefCurve, theXParameter,
+                                theYParameter, theZParameter);
+  endService( " GEOM_Superv_i::MakePointOnCurveByCoord" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakePointOnSurface:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurface (GEOM::GEOM_Object_ptr theRefSurface,
+                                                         CORBA::Double theUParameter,
+                                                         CORBA::Double theVParameter)
+{
+  beginService( " GEOM_Superv_i::MakePointOnSurface" );
+  MESSAGE("GEOM_Superv_i::MakePointOnSurface");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBasicOp->MakePointOnSurface(theRefSurface, theUParameter, theVParameter);
+  endService( " GEOM_Superv_i::MakePointOnSurface" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakePointOnSurfaceByCoord
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theRefSurface,
+                                                                CORBA::Double theXParameter,
+                                                                CORBA::Double theYParameter,
+                                                                CORBA::Double theZParameter)
+{
+  beginService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
+  MESSAGE("GEOM_Superv_i::MakePointOnSurfaceByCoord");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBasicOp->MakePointOnSurfaceByCoord(theRefSurface, theXParameter,
+                                theYParameter, theZParameter);
+  endService( " GEOM_Superv_i::MakePointOnSurfaceByCoord" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakePointOnLinesIntersection:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theRefLine1,
-                                                                  GEOM::GEOM_Object_ptr theRefLine2)
+                                                                   GEOM::GEOM_Object_ptr theRefLine2)
 {
   beginService( " GEOM_Superv_i::MakePointOnLinesIntersection" );
   MESSAGE("GEOM_Superv_i::MakePointOnLinesIntersection");
@@ -578,7 +715,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePointOnLinesIntersection (GEOM::GEOM_Ob
 //  MakeTangentOnCurve:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
-                                                        CORBA::Double theParameter)
+                                                         CORBA::Double theParameter)
 {
   beginService( " GEOM_Superv_i::MakeTangentOnCurve" );
   MESSAGE("GEOM_Superv_i::MakeTangentOnCurve");
@@ -592,8 +729,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentOnCurve (GEOM::GEOM_Object_ptr t
 //  MakeVectorDXDYDZ:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
-                                                      CORBA::Double theDY,
-                                                      CORBA::Double theDZ)
+                                                       CORBA::Double theDY,
+                                                       CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::MakeVectorDXDYDZ" );
   MESSAGE("GEOM_Superv_i::MakeVectorDXDYDZ");
@@ -607,7 +744,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorDXDYDZ (CORBA::Double theDX,
 //  MakeVectorTwoPnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                      GEOM::GEOM_Object_ptr thePnt2)
+                                                       GEOM::GEOM_Object_ptr thePnt2)
 {
   beginService( " GEOM_Superv_i::MakeVectorTwoPnt" );
   MESSAGE("GEOM_Superv_i::MakeVector");
@@ -621,7 +758,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeVectorTwoPnt (GEOM::GEOM_Object_ptr the
 //  MakeLineTwoPnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                    GEOM::GEOM_Object_ptr thePnt2)
+                                                     GEOM::GEOM_Object_ptr thePnt2)
 {
   beginService( " GEOM_Superv_i::MakeLineTwoPnt");
   MESSAGE("GEOM_Superv_i::MakeLineTwoPnt");
@@ -635,7 +772,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePn
 //  MakeLineTwoFaces:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
-                                                      GEOM::GEOM_Object_ptr theFace2)
+                                                       GEOM::GEOM_Object_ptr theFace2)
 {
   beginService( " GEOM_Superv_i::MakeLineTwoFaces");
   MESSAGE("GEOM_Superv_i::MakeLineTwoFaces");
@@ -649,9 +786,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeLineTwoFaces (GEOM::GEOM_Object_ptr the
 //  MakePlaneThreePnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                       GEOM::GEOM_Object_ptr thePnt2,
-                                                       GEOM::GEOM_Object_ptr thePnt3,
-                                                       CORBA::Double theTrimSize)
+                                                        GEOM::GEOM_Object_ptr thePnt2,
+                                                        GEOM::GEOM_Object_ptr thePnt3,
+                                                        CORBA::Double theTrimSize)
 {
   beginService( " GEOM_Superv_i::MakePlaneThreePnt");
   MESSAGE("GEOM_Superv_i::MakePlaneThreePnt");
@@ -665,9 +802,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneThreePnt (GEOM::GEOM_Object_ptr th
 //  MakePlanePntVec:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
-                                                     GEOM::GEOM_Object_ptr theVec,
-                                                     CORBA::Double theTrimSize)
-{ 
+                                                      GEOM::GEOM_Object_ptr theVec,
+                                                      CORBA::Double theTrimSize)
+{
   beginService( " GEOM_Superv_i::MakePlanePntVec" );
   MESSAGE("GEOM_Superv_i::MakePlanePntVec");
   getBasicOp();
@@ -680,7 +817,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlanePntVec (GEOM::GEOM_Object_ptr theP
 //  MakePlaneFace:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
-                                                   CORBA::Double theTrimSize)
+                                                    CORBA::Double theTrimSize)
 {
   beginService( " GEOM_Superv_i::MakePlaneFace" );
   MESSAGE("GEOM_Superv_i::MakePlaneFace");
@@ -690,10 +827,40 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneFace (GEOM::GEOM_Object_ptr theFac
   return anObj;
 }
 
+//=============================================================================
+//  MakePlane2Vec:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
+                                                    GEOM::GEOM_Object_ptr theVec2,
+                                                    CORBA::Double theTrimSize)
+{
+  beginService( " GEOM_Superv_i::MakePlane2Vec" );
+  MESSAGE("GEOM_Superv_i::MakePlane2Vec");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlane2Vec(theVec1, theVec2, theTrimSize);
+  endService( " GEOM_Superv_i::MakePlane2Vec" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakePlaneLCS:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
+                                                   CORBA::Double theTrimSize,
+                                                   CORBA::Double theOrientation)
+{
+  beginService( " GEOM_Superv_i::MakePlaneLCS" );
+  MESSAGE("GEOM_Superv_i::MakePlaneLCS");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakePlaneLCS(theLCS, theTrimSize, theOrientation);
+  endService( " GEOM_Superv_i::MakePlaneLCS" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakeMarker:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker 
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
 (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
  CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
  CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ)
@@ -706,13 +873,41 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarker
   return anObj;
 }
 
+//=============================================================================
+//  MakeMarkerFromShape:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape)
+{
+  beginService( " GEOM_Superv_i::MakeMarkerFromShape" );
+  MESSAGE("GEOM_Superv_i::MakeMarkerFromShape");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerFromShape(theShape);
+  endService( " GEOM_Superv_i::MakeMarkerFromShape" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakeMarkerPntTwoVec:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin,
+                                                          GEOM::GEOM_Object_ptr theXVec,
+                                                          GEOM::GEOM_Object_ptr theYVec)
+{
+  beginService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
+  MESSAGE("GEOM_Superv_i::MakeMarkerPntTwoVec");
+  getBasicOp();
+  GEOM::GEOM_Object_ptr anObj = myBasicOp->MakeMarkerPntTwoVec(theOrigin, theXVec, theYVec);
+  endService( " GEOM_Superv_i::MakeMarkerPntTwoVec" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakeTangentPlaneOnFace:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace, 
-                                                CORBA::Double theParameterU,
-                                                CORBA::Double theParameterV,
-                                                CORBA::Double theTrimSize)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
+                                                 CORBA::Double theParameterU,
+                                                 CORBA::Double theParameterV,
+                                                 CORBA::Double theTrimSize)
 {
   beginService( " GEOM_Superv_i::MakeTangentPlaneOnFace" );
   MESSAGE("GEOM_Superv_i::MakeTangentPlaneOnFace");
@@ -727,18 +922,18 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTangentPlaneOnFace (GEOM::GEOM_Object_p
 //  MakeBox:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
-                                             CORBA::Double theY1,
-                                             CORBA::Double theZ1,
-                                             CORBA::Double theX2,
-                                             CORBA::Double theY2,
-                                             CORBA::Double theZ2)
+                                              CORBA::Double theY1,
+                                              CORBA::Double theZ1,
+                                              CORBA::Double theX2,
+                                              CORBA::Double theY2,
+                                              CORBA::Double theZ2)
 {
   beginService( " GEOM_Superv_i::MakeBox" );
   MESSAGE("GEOM_Superv_i::MakeBox");
   getBasicOp();
   get3DPrimOp();
   GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeBoxTwoPnt(myBasicOp->MakePointXYZ(theX1, theY1, theZ1),
-                                                         myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
+                                                          myBasicOp->MakePointXYZ(theX2, theY2, theZ2));
   endService( " GEOM_Superv_i::MakeBox" );
   return anObj;
 }
@@ -746,9 +941,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBox (CORBA::Double theX1,
 //=============================================================================
 //  MakeBoxDXDYDZ:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX, 
-                                                   CORBA::Double theDY, 
-                                                   CORBA::Double theDZ)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
+                                                    CORBA::Double theDY,
+                                                    CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::MakeBoxDXDYDZ" );
   MESSAGE("GEOM_Superv_i::MakeBoxDXDYDZ");
@@ -761,8 +956,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxDXDYDZ (CORBA::Double theDX,
 //=============================================================================
 //  MakeBoxTwoPnt:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1, 
-                                                   GEOM::GEOM_Object_ptr thePnt2)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
+                                                    GEOM::GEOM_Object_ptr thePnt2)
 {
   beginService( " GEOM_Superv_i::MakeBoxTwoPnt" );
   MESSAGE("GEOM_Superv_i::MakeBoxTwoPnt");
@@ -776,8 +971,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt
 //  MakeFaceHW:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
-                                                CORBA::Double theW,
-                                                CORBA::Short  theOrientation)
+                                                 CORBA::Double theW,
+                                                 CORBA::Short  theOrientation)
 {
   beginService( " GEOM_Superv_i::MakeFaceHW" );
   MESSAGE("GEOM_Superv_i::MakeFaceHW");
@@ -790,9 +985,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceHW (CORBA::Double theH,
 //=============================================================================
 //  MakeFaceObjHW:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj, 
-                                                   CORBA::Double theH,
-                                                   CORBA::Double theW)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
+                                                    CORBA::Double theH,
+                                                    CORBA::Double theW)
 {
   beginService( " GEOM_Superv_i::MakeFaceObjHW" );
   MESSAGE("GEOM_Superv_i::MakeFaceObjHW");
@@ -806,8 +1001,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj
 //  MakeDiskPntVecR:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
-                                                     GEOM::GEOM_Object_ptr theVector,
-                                                     CORBA::Double theR)
+                                                      GEOM::GEOM_Object_ptr theVector,
+                                                      CORBA::Double theR)
 {
   beginService( " GEOM_Superv_i::MakeDiskPntVecR" );
   MESSAGE("GEOM_Superv_i::MakeDiskPntVecR");
@@ -821,8 +1016,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskPntVecR (GEOM::GEOM_Object_ptr theC
 //  MakeDiskThreePnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                      GEOM::GEOM_Object_ptr thePnt2,
-                                                      GEOM::GEOM_Object_ptr thePnt3)
+                                                       GEOM::GEOM_Object_ptr thePnt2,
+                                                       GEOM::GEOM_Object_ptr thePnt3)
 {
   beginService( " GEOM_Superv_i::MakeDiskThreePnt" );
   MESSAGE("GEOM_Superv_i::MakeDiskThreePnt");
@@ -836,7 +1031,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskThreePnt (GEOM::GEOM_Object_ptr the
 //  MakeDiskR:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
-                                               CORBA::Short  theOrientation)
+                                                CORBA::Short  theOrientation)
 {
   beginService( " GEOM_Superv_i::MakeDiskR" );
   MESSAGE("GEOM_Superv_i::MakeDiskR");
@@ -850,9 +1045,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDiskR (CORBA::Double theR,
 //  MakeCylinderPntVecRH:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
-                                                          GEOM::GEOM_Object_ptr theAxis,
-                                                          CORBA::Double theRadius,
-                                                          CORBA::Double theHeight)
+                                                           GEOM::GEOM_Object_ptr theAxis,
+                                                           CORBA::Double theRadius,
+                                                           CORBA::Double theHeight)
 {
   beginService( " GEOM_Superv_i::MakeCylinderPntVecRH" );
   MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRH");
@@ -865,24 +1060,56 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr
 //=============================================================================
 //  MakeCylinderRH:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR, 
-                                                    CORBA::Double theH)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRH (CORBA::Double theR,
+                                                     CORBA::Double theH)
 {
   beginService( " GEOM_Superv_i::MakeCylinderRH" );
   MESSAGE("GEOM_Superv_i::MakeCylinderRH");
   get3DPrimOp();
   GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRH(theR, theH);
   endService( " GEOM_Superv_i::MakeCylinderRH" );
-  return anObj; 
+  return anObj;
+}
+
+//=============================================================================
+//  MakeCylinderPntVecRHA:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderPntVecRHA (GEOM::GEOM_Object_ptr thePnt,
+                                                           GEOM::GEOM_Object_ptr theAxis,
+                                                           CORBA::Double theRadius,
+                                                           CORBA::Double theHeight,
+                                                           CORBA::Double theAngle)
+{
+  beginService( " GEOM_Superv_i::MakeCylinderPntVecRHA" );
+  MESSAGE("GEOM_Superv_i::MakeCylinderPntVecRHA");
+  get3DPrimOp();
+  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderPntVecRHA(thePnt, theAxis, theRadius, theHeight, theAngle);
+  endService( " GEOM_Superv_i::MakeCylinderPntVecRHA" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakeCylinderRHA:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCylinderRHA (CORBA::Double theR,
+                                                     CORBA::Double theH,
+                                                     CORBA::Double theA)
+{
+  beginService( " GEOM_Superv_i::MakeCylinderRHA" );
+  MESSAGE("GEOM_Superv_i::MakeCylinderRHA");
+  get3DPrimOp();
+  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeCylinderRHA(theR, theH, theA);
+  endService( " GEOM_Superv_i::MakeCylinderRHA" );
+  return anObj;
 }
 
 //=============================================================================
 //  MakeSphere:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere  (CORBA::Double theX,
-                                                 CORBA::Double theY,
-                                                 CORBA::Double theZ,
-                                                 CORBA::Double theRadius)
+                                                  CORBA::Double theY,
+                                                  CORBA::Double theZ,
+                                                  CORBA::Double theRadius)
 {
   beginService( " GEOM_Superv_i::MakeSphepe" );
   MESSAGE("GEOM_Superv_i::MakeSphepe");
@@ -909,8 +1136,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphereR (CORBA::Double theR)
 //=============================================================================
 //  MakeSpherePntR:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt, 
-                                                    CORBA::Double theR)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
+                                                     CORBA::Double theR)
 {
   beginService( " GEOM_Superv_i::MakeSpherePntR" );
   MESSAGE("GEOM_Superv_i::MakeSpherePntR");
@@ -924,9 +1151,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSpherePntR (GEOM::GEOM_Object_ptr thePn
 //  MakeTorusPntVecRR:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr thePnt,
-                                                       GEOM::GEOM_Object_ptr theVec,
-                                                       CORBA::Double theRMajor,
-                                                       CORBA::Double theRMinor)
+                                                        GEOM::GEOM_Object_ptr theVec,
+                                                        CORBA::Double theRMajor,
+                                                        CORBA::Double theRMinor)
 {
   beginService( " GEOM_Superv_i::MakeTorusPntVecRR" );
   MESSAGE("GEOM_Superv_i::MakeTorusPntVecRR");
@@ -940,7 +1167,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusPntVecRR (GEOM::GEOM_Object_ptr th
 //  MakeTorusRR:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
-                                                 CORBA::Double theRMinor)
+                                                  CORBA::Double theRMinor)
 {
   beginService( " GEOM_Superv_i::MakeTorusRR" );
   MESSAGE("GEOM_Superv_i::MakeTorusRR");
@@ -954,10 +1181,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeTorusRR (CORBA::Double theRMajor,
 //  MakeConePntVecR1R2H:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
-                                                         GEOM::GEOM_Object_ptr theAxis,
-                                                         CORBA::Double theR1,
-                                                         CORBA::Double theR2,
-                                                         CORBA::Double theHeight)
+                                                          GEOM::GEOM_Object_ptr theAxis,
+                                                          CORBA::Double theR1,
+                                                          CORBA::Double theR2,
+                                                          CORBA::Double theHeight)
 {
   beginService( " GEOM_Superv_i::MakeConePntVecR1R2H" );
   MESSAGE("GEOM_Superv_i::MakeConePntVecR1R2H");
@@ -970,9 +1197,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr
 //=============================================================================
 //  MakeConeR1R2H:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1, 
-                                                   CORBA::Double theR2, 
-                                                   CORBA::Double theHeight)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
+                                                    CORBA::Double theR2,
+                                                    CORBA::Double theHeight)
 {
   beginService( " GEOM_Superv_i::MakeConeR1R2H" );
   MESSAGE("GEOM_Superv_i::MakeConeR1R2H");
@@ -986,8 +1213,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeConeR1R2H (CORBA::Double theR1,
 //  MakePrismVecH:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
-                                                   GEOM::GEOM_Object_ptr theVec,
-                                                   CORBA::Double         theH)
+                                                    GEOM::GEOM_Object_ptr theVec,
+                                                    CORBA::Double         theH)
 {
   beginService( " GEOM_Superv_i::MakePrismVecH" );
   MESSAGE("GEOM_Superv_i::MakePrismVecH");
@@ -1001,8 +1228,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH (GEOM::GEOM_Object_ptr theBas
 //  MakePrismVecH2Ways:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
-                                                        GEOM::GEOM_Object_ptr theVec,
-                                                        CORBA::Double         theH)
+                                                         GEOM::GEOM_Object_ptr theVec,
+                                                         CORBA::Double         theH)
 {
   beginService( " GEOM_Superv_i::MakePrismVecH2Ways" );
   MESSAGE("GEOM_Superv_i::MakePrismVecH2Ways");
@@ -1016,8 +1243,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismVecH2Ways (GEOM::GEOM_Object_ptr t
 //  MakePrismTwoPnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
-                                                     GEOM::GEOM_Object_ptr thePoint1,
-                                                     GEOM::GEOM_Object_ptr thePoint2)
+                                                      GEOM::GEOM_Object_ptr thePoint1,
+                                                      GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::MakePrismTwoPnt" );
   MESSAGE("GEOM_Superv_i::MakePrismTwoPnt");
@@ -1031,8 +1258,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt (GEOM::GEOM_Object_ptr theB
 //  MakePrismTwoPnt2Ways:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
-                                                          GEOM::GEOM_Object_ptr thePoint1,
-                                                          GEOM::GEOM_Object_ptr thePoint2)
+                                                           GEOM::GEOM_Object_ptr thePoint1,
+                                                           GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::MakePrismTwoPnt2Ways" );
   MESSAGE("GEOM_Superv_i::MakePrismTwoPnt2Ways");
@@ -1046,7 +1273,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr
 //  MakePrismDXDYDZ:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
-                     CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
+                      CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::MakePrismDXDYDZ" );
   MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ");
@@ -1060,7 +1287,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theB
 //  MakePrismDXDYDZ:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
-                     CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
+                      CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::MakePrismDXDYDZ2Ways" );
   MESSAGE("GEOM_Superv_i::MakePrismDXDYDZ2Ways");
@@ -1073,23 +1300,23 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr
 //=============================================================================
 //  MakePipe:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase, 
-                                              GEOM::GEOM_Object_ptr thePath)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipe (GEOM::GEOM_Object_ptr theBase,
+                                               GEOM::GEOM_Object_ptr thePath)
 {
   beginService( " GEOM_Superv_i::MakePipe" );
   MESSAGE("GEOM_Superv_i::MakePipe");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipe(theBase, thePath);
+  GEOM::ListOfGO_var aList = my3DPrimOp->MakePipe(theBase, thePath, false);
   endService( " GEOM_Superv_i::MakePipe" );
-  return anObj;
+  return aList[0];
 }
 
 //=============================================================================
 //  MakeRevolutionAxisAngle:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
-                                                             GEOM::GEOM_Object_ptr theAxis,
-                                                             CORBA::Double theAngle)
+                                                              GEOM::GEOM_Object_ptr theAxis,
+                                                              CORBA::Double theAngle)
 {
   beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle" );
   MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle");
@@ -1103,8 +1330,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle (GEOM::GEOM_Object_
 //  MakeRevolutionAxisAngle:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
-                                                                  GEOM::GEOM_Object_ptr theAxis,
-                                                                  CORBA::Double theAngle)
+                                                                   GEOM::GEOM_Object_ptr theAxis,
+                                                                   CORBA::Double theAngle)
 {
   beginService( " GEOM_Superv_i::MakeRevolutionAxisAngle2Ways" );
   MESSAGE("GEOM_Superv_i::MakeRevolutionAxisAngle2Ways");
@@ -1118,14 +1345,23 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Ob
 //  MakeFilling:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape,
-                                                 CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
-                                                 CORBA::Double theTol2D, CORBA::Double theTol3D,
-                                                 CORBA::Long theNbIter, CORBA::Boolean theApprox)
+                                                  CORBA::Long theMinDeg,
+                                                  CORBA::Long theMaxDeg,
+                                                  CORBA::Double theTol2D,
+                                                  CORBA::Double theTol3D,
+                                                  CORBA::Long theNbIter,
+                                                  GEOM::filling_oper_method theMethod,
+                                                  CORBA::Boolean theApprox)
 {
   beginService( " GEOM_Superv_i::MakeFilling" );
   MESSAGE("GEOM_Superv_i::MakeFilling");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeFilling(theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D, theNbIter, theApprox);
+  GEOM::ListOfGO_var objList = new GEOM::ListOfGO;
+  objList->length( 1 );
+  objList[0] = theShape;
+  GEOM::GEOM_Object_ptr anObj =
+    my3DPrimOp->MakeFilling(objList, theMinDeg, theMaxDeg, theTol2D, theTol3D,
+                            theNbIter, theMethod, theApprox);
   endService( " GEOM_Superv_i::MakeFilling" );
   return anObj;
 }
@@ -1134,16 +1370,18 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilling (GEOM::GEOM_Object_ptr theShape
 //=============================================================================
 //  MakeBoolean:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape1,
-                                                 GEOM::GEOM_Object_ptr theShape2,
-                                                 CORBA::Long theOperation)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean
+                                        (GEOM::GEOM_Object_ptr theShape1,
+                                         GEOM::GEOM_Object_ptr theShape2,
+                                         CORBA::Long           theOperation)
 {
   beginService( " GEOM_Superv_i::MakeBoolean" );
   // theOperation indicates the operation to be done:
   // 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section
   MESSAGE("GEOM_Superv_i::MakeBoolean");
   getBoolOp();
-  GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, theOperation);
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeBoolean(theShape1, theShape2, theOperation, false);
   endService( " GEOM_Superv_i::MakeBoolean" );
   return anObj;
 }
@@ -1152,9 +1390,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeBoolean (GEOM::GEOM_Object_ptr theShape
 //  MakeThruSections:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theSeqSections,
-                                        CORBA::Boolean theModeSolid,
-                                        CORBA::Double thePreci,
-                                        CORBA::Boolean theRuled)
+                                         CORBA::Boolean theModeSolid,
+                                         CORBA::Double thePreci,
+                                         CORBA::Boolean theRuled)
 {
   beginService( " GEOM_Superv_i::MakeThruSections" );
   MESSAGE("GEOM_Superv_i::MakeThruSections");
@@ -1169,17 +1407,17 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeThruSections(const GEOM::ListOfGO& theS
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
                      (const GEOM::ListOfGO& theBases,
-                     const GEOM::ListOfGO& theLocations,
-                     GEOM::GEOM_Object_ptr thePath,
-                     CORBA::Boolean theWithContact,
-                     CORBA::Boolean theWithCorrections)
+                      const GEOM::ListOfGO& theLocations,
+                      GEOM::GEOM_Object_ptr thePath,
+                      CORBA::Boolean theWithContact,
+                      CORBA::Boolean theWithCorrections)
 {
   beginService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
   MESSAGE("GEOM_Superv_i::MakePipeWithDifferentSections");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections);
+  GEOM::ListOfGO_var aList = my3DPrimOp->MakePipeWithDifferentSections(theBases,theLocations, thePath,theWithContact,theWithCorrections, false, false);
   endService( " GEOM_Superv_i::MakePipeWithDifferentSections" );
-  return anObj;
+  return aList[0];
 }
 
 
@@ -1188,21 +1426,22 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithDifferentSections
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
                    (const GEOM::ListOfGO& theBases,
-                   const GEOM::ListOfGO& theSubBases,
-                   const GEOM::ListOfGO& theLocations,
-                   GEOM::GEOM_Object_ptr thePath,
-                   CORBA::Boolean theWithContact,
-                   CORBA::Boolean theWithCorrections)
+                    const GEOM::ListOfGO& theSubBases,
+                    const GEOM::ListOfGO& theLocations,
+                    GEOM::GEOM_Object_ptr thePath,
+                    CORBA::Boolean theWithContact,
+                    CORBA::Boolean theWithCorrections)
 {
   beginService( " GEOM_Superv_i::MakePipeWithShellSections" );
   MESSAGE("GEOM_Superv_i::MakePipeWithShellSections");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj =
+  GEOM::ListOfGO_var aList =
     my3DPrimOp->MakePipeWithShellSections(theBases, theSubBases,
-                                         theLocations, thePath,
-                                         theWithContact, theWithCorrections);
+                                          theLocations, thePath,
+                                          theWithContact, theWithCorrections,
+                                          false);
   endService( " GEOM_Superv_i::MakePipeWithShellSections" );
-  return anObj;
+  return aList[0];
 }
 
 
@@ -1211,81 +1450,119 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeWithShellSections
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeShellsWithoutPath
                    (const GEOM::ListOfGO& theBases,
-                   const GEOM::ListOfGO& theLocations)
+                    const GEOM::ListOfGO& theLocations)
 {
   beginService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
   MESSAGE("GEOM_Superv_i::MakePipeShellsWithoutPath");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj =
-    my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations);
+  GEOM::ListOfGO_var aList =
+    my3DPrimOp->MakePipeShellsWithoutPath(theBases,theLocations, false);
   endService( " GEOM_Superv_i::MakePipeShellsWithoutPath" );
-  return anObj;
+  return aList[0];
 }
 
 
 //=============================================================================
 //  MakePipe:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector 
-                                                (GEOM::GEOM_Object_ptr theBase, 
-                                                GEOM::GEOM_Object_ptr thePath, 
-                                                GEOM::GEOM_Object_ptr theVec)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePipeBiNormalAlongVector
+                                                (GEOM::GEOM_Object_ptr theBase,
+                                                 GEOM::GEOM_Object_ptr thePath,
+                                                 GEOM::GEOM_Object_ptr theVec)
 {
   beginService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
   MESSAGE("GEOM_Superv_i::MakePipeBiNormalAlongVector");
   get3DPrimOp();
-  GEOM::GEOM_Object_ptr anObj = 
-    my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec);
+  GEOM::ListOfGO_var aList =
+    my3DPrimOp->MakePipeBiNormalAlongVector(theBase, thePath, theVec, false);
   endService( " GEOM_Superv_i::MakePipeBiNormalAlongVector" );
-  return anObj;
+  return aList[0];
 }
 
 
 //=============================================================================
 //  MakeFuse:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse (GEOM::GEOM_Object_ptr theShape1,
-                                              GEOM::GEOM_Object_ptr theShape2)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFuse
+                                        (GEOM::GEOM_Object_ptr theShape1,
+                                         GEOM::GEOM_Object_ptr theShape2)
 {
   beginService( " GEOM_Superv_i::MakeFuse" );
   MESSAGE("GEOM_Superv_i::MakeFuse");
   getBoolOp();
-  GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeBoolean(theShape1, theShape2, 3);
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeBoolean(theShape1, theShape2, 3, false);
   endService( " GEOM_Superv_i::MakeFuse" );
   return anObj;
 }
 
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCommon (GEOM::GEOM_Object_ptr theShape1,
+                                                GEOM::GEOM_Object_ptr theShape2)
+{
+  beginService( " GEOM_Superv_i::MakeCommon" );
+  MESSAGE("GEOM_Superv_i::MakeCommon");
+  getBoolOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeBoolean(theShape1, theShape2, 1, false);
+  endService( " GEOM_Superv_i::MakeCommon" );
+  return anObj;
+}
+
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCut (GEOM::GEOM_Object_ptr theShape1,
+                                             GEOM::GEOM_Object_ptr theShape2)
+{
+  beginService( " GEOM_Superv_i::MakeCut" );
+  MESSAGE("GEOM_Superv_i::MakeCut");
+  getBoolOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeBoolean(theShape1, theShape2, 2, false);
+  endService( " GEOM_Superv_i::MakeCut" );
+  return anObj;
+}
+
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSection (GEOM::GEOM_Object_ptr theShape1,
+                                                 GEOM::GEOM_Object_ptr theShape2)
+{
+  beginService( " GEOM_Superv_i::MakeCut" );
+  MESSAGE("GEOM_Superv_i::MakeCut");
+  getBoolOp();
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeBoolean(theShape1, theShape2, 4, false);
+  endService( " GEOM_Superv_i::MakeCut" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakePartition:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr   theShapes,
-                                                   GEOM::GEOM_List_ptr   theTools,
-                                                   GEOM::GEOM_List_ptr   theKeepInside,
-                                                   GEOM::GEOM_List_ptr   theRemoveInside,
-                                                   CORBA::Short      theLimit,
-                                                   CORBA::Boolean    theRemoveWebs,
-                                                   GEOM::GEOM_List_ptr theMaterials,
-                                                   CORBA::Short theKeepNonlimitShapes)
+                                                    GEOM::GEOM_List_ptr   theTools,
+                                                    GEOM::GEOM_List_ptr   theKeepInside,
+                                                    GEOM::GEOM_List_ptr   theRemoveInside,
+                                                    CORBA::Short      theLimit,
+                                                    CORBA::Boolean    theRemoveWebs,
+                                                    GEOM::GEOM_List_ptr theMaterials,
+                                                    CORBA::Short theKeepNonlimitShapes)
 {
   beginService( " GEOM_Superv_i::MakePartition" );
   MESSAGE("GEOM_Superv_i::MakePartition");
-  GEOM_List_i<GEOM::ListOfGO>* aListImplS = 
+  GEOM_List_i<GEOM::ListOfGO>* aListImplS =
     dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in());
-  GEOM_List_i<GEOM::ListOfGO>* aListImplT = 
+  GEOM_List_i<GEOM::ListOfGO>* aListImplT =
     dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theTools, myPOA).in());
-  GEOM_List_i<GEOM::ListOfGO>* aListImplKI = 
+  GEOM_List_i<GEOM::ListOfGO>* aListImplKI =
     dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theKeepInside, myPOA).in());
-  GEOM_List_i<GEOM::ListOfGO>* aListImplRI = 
+  GEOM_List_i<GEOM::ListOfGO>* aListImplRI =
     dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theRemoveInside, myPOA).in());
-  GEOM_List_i<GEOM::ListOfLong>* aListImplM = 
+  GEOM_List_i<GEOM::ListOfLong>* aListImplM =
     dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theMaterials, myPOA).in());
   if (aListImplS && aListImplT && aListImplKI && aListImplRI && aListImplM) {
     getBoolOp();
     GEOM::GEOM_Object_ptr anObj =
-      myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(), 
-                             aListImplKI->GetList(), aListImplRI->GetList(),
-                             theLimit, theRemoveWebs, aListImplM->GetList(),
-                             theKeepNonlimitShapes);
+      myBoolOp->MakePartition(aListImplS->GetList(), aListImplT->GetList(),
+                              aListImplKI->GetList(), aListImplRI->GetList(),
+                              theLimit, theRemoveWebs, aListImplM->GetList(),
+                              theKeepNonlimitShapes);
     endService( " GEOM_Superv_i::MakePartition" );
     return anObj;
   }
@@ -1297,12 +1574,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePartition (GEOM::GEOM_List_ptr   theSha
 //  MakeHalfPartition:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHalfPartition (GEOM::GEOM_Object_ptr theShape,
-                                                       GEOM::GEOM_Object_ptr thePlane)
+                                                        GEOM::GEOM_Object_ptr thePlane)
 {
   beginService( " GEOM_Superv_i::MakeHalfPartition" );
   MESSAGE("GEOM_Superv_i::MakeHalfPartition");
   getBoolOp();
-  GEOM::GEOM_Object_ptr anObj = myBoolOp->MakeHalfPartition(theShape, thePlane);
+  GEOM::GEOM_Object_ptr anObj =
+    myBoolOp->MakeHalfPartition(theShape, thePlane);
   endService( " GEOM_Superv_i::MakeHalfPartition" );
   return anObj;
 }
@@ -1324,9 +1602,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCopy (GEOM::GEOM_Object_ptr theOriginal
 //=============================================================================
 //  Export:
 //=============================================================================
-void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject, 
-                           const char*           theFileName, 
-                           const char*           theFormatName)
+void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
+                            const char*           theFileName,
+                            const char*           theFormatName)
 {
   beginService( " GEOM_Superv_i::Export" );
   MESSAGE("GEOM_Superv_i::Export");
@@ -1338,41 +1616,21 @@ void GEOM_Superv_i::Export (GEOM::GEOM_Object_ptr theObject,
 //=============================================================================
 //  Import:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::Import (const char* theFileName, 
-                                            const char* theFormatName)
-{
-  beginService( " GEOM_Superv_i::Import" );
-  MESSAGE("GEOM_Superv_i::Import");
-  getInsOp();
-  GEOM::GEOM_Object_ptr anObj = myInsOp->Import(theFileName, theFormatName);
-  endService( " GEOM_Superv_i::Import" );
-  return anObj;
-}
-
-//=============================================================================
-//  ImportTranslators:
-//=============================================================================
-void GEOM_Superv_i::ImportTranslators (GEOM::string_array_out theFormats,
-                                      GEOM::string_array_out thePatterns)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportFile (const char* theFileName,
+                                                 const char* theFormatName)
 {
-  beginService( " GEOM_Superv_i::ImportTranslators" );
-  MESSAGE("GEOM_Superv_i::ImportTranslators");
+  beginService( " GEOM_Superv_i::ImportFile" );
+  MESSAGE("GEOM_Superv_i::ImportFile");
   getInsOp();
-  myInsOp->ImportTranslators(theFormats, thePatterns);
-  endService( " GEOM_Superv_i::ImportTranslators" );
-}
+  GEOM::ListOfGBO_var aSeq = myInsOp->ImportFile(theFileName, theFormatName);
+  GEOM::GEOM_Object_var anObj;
+  
+  if (aSeq->length() > 0) {
+    anObj = GEOM::GEOM_Object::_narrow(aSeq[0]);
+  }
 
-//=============================================================================
-//  ExportTranslators:
-//=============================================================================
-void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
-                                      GEOM::string_array_out thePatterns)
-{
-  beginService( " GEOM_Superv_i::ExportTranslators" );
-  MESSAGE("GEOM_Superv_i::ExportTranslators");
-  getInsOp();
-  myInsOp->ExportTranslators(theFormats, thePatterns);
-  endService( " GEOM_Superv_i::ExportTranslators" );
+  endService( " GEOM_Superv_i::ImportFile" );
+  return anObj._retn();
 }
 
 //============================= TransformOperations ===========================
@@ -1380,8 +1638,8 @@ void GEOM_Superv_i::ExportTranslators (GEOM::string_array_out theFormats,
 //  TranslateTwoPoints:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
-                                                        GEOM::GEOM_Object_ptr thePoint1,
-                                                        GEOM::GEOM_Object_ptr thePoint2)
+                                                         GEOM::GEOM_Object_ptr thePoint1,
+                                                         GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::TranslateTwoPoints" );
   MESSAGE("GEOM_Superv_i::TranslateTwoPoints");
@@ -1395,8 +1653,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPoints (GEOM::GEOM_Object_ptr t
 //  TranslateTwoPointsCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
-                                                            GEOM::GEOM_Object_ptr thePoint1,
-                                                            GEOM::GEOM_Object_ptr thePoint2)
+                                                             GEOM::GEOM_Object_ptr thePoint1,
+                                                             GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::TranslateTwoPointsCopy" );
   MESSAGE("GEOM_Superv_i::TranslateTwoPointsCopy");
@@ -1410,9 +1668,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateTwoPointsCopy (GEOM::GEOM_Object_p
 //  TranslateDXDYDZ:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
-                                                     CORBA::Double theDX, 
-                                                     CORBA::Double theDY, 
-                                                     CORBA::Double theDZ)
+                                                      CORBA::Double theDX,
+                                                      CORBA::Double theDY,
+                                                      CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::TranslateDXDYDZ" );
   MESSAGE("GEOM_Superv_i::TranslateDXDYDZ");
@@ -1426,9 +1684,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZ (GEOM::GEOM_Object_ptr theO
 //  TranslateDXDYDZCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
-                                                         CORBA::Double theDX, 
-                                                         CORBA::Double theDY, 
-                                                         CORBA::Double theDZ)
+                                                          CORBA::Double theDX,
+                                                          CORBA::Double theDY,
+                                                          CORBA::Double theDZ)
 {
   beginService( " GEOM_Superv_i::TranslateDXDYDZCopy" );
   MESSAGE("GEOM_Superv_i::TranslateDXDYDZCopy");
@@ -1442,7 +1700,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr
 //  TranslateVector:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theObject,
-                                                     GEOM::GEOM_Object_ptr theVector)
+                                                      GEOM::GEOM_Object_ptr theVector)
 {
   beginService( " GEOM_Superv_i::TranslateVector" );
   MESSAGE("GEOM_Superv_i::TranslateVector");
@@ -1456,7 +1714,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVector (GEOM::GEOM_Object_ptr theO
 //  TranslateVectorCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
-                                                         GEOM::GEOM_Object_ptr theVector)
+                                                          GEOM::GEOM_Object_ptr theVector)
 {
   beginService( " GEOM_Superv_i::TranslateVectorCopy" );
   MESSAGE("GEOM_Superv_i::TranslateVectorCopy");
@@ -1470,15 +1728,15 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorCopy (GEOM::GEOM_Object_ptr
 //  TranslateVectorDistance:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
-                                                             GEOM::GEOM_Object_ptr theVector,
-                                                             CORBA::Double theDistance,
-                                                             CORBA::Boolean theCopy)
+                                                              GEOM::GEOM_Object_ptr theVector,
+                                                              CORBA::Double theDistance,
+                                                              CORBA::Boolean theCopy)
 {
   beginService( " GEOM_Superv_i::TranslateVectorDistance" );
   MESSAGE("GEOM_Superv_i::TranslateVectorDistance");
   getTransfOp();
-  GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject, 
-                                                                   theVector, theDistance, theCopy);
+  GEOM::GEOM_Object_ptr anObj = myTransfOp->TranslateVectorDistance(theObject,
+                                                                    theVector, theDistance, theCopy);
   endService( " GEOM_Superv_i::TranslateVectorDistance" );
   return anObj;
 }
@@ -1487,9 +1745,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::TranslateVectorDistance (GEOM::GEOM_Object_
 //  MultiTranslate1D:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
-                                                      GEOM::GEOM_Object_ptr theVector,
-                                                      CORBA::Double theStep,
-                                                      CORBA::Long theNbTimes)
+                                                       GEOM::GEOM_Object_ptr theVector,
+                                                       CORBA::Double theStep,
+                                                       CORBA::Long theNbTimes)
 {
   beginService( " GEOM_Superv_i::MultiTranslate1D" );
   MESSAGE("GEOM_Superv_i::MultiTranslate1D");
@@ -1503,18 +1761,18 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate1D (GEOM::GEOM_Object_ptr the
 //  MultiTranslate2D:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
-                                                      GEOM::GEOM_Object_ptr theVector1,
-                                                      CORBA::Double theStep1,
-                                                      CORBA::Long theNbTimes1,
-                                                      GEOM::GEOM_Object_ptr theVector2,
-                                                      CORBA::Double theStep2,
-                                                      CORBA::Long theNbTimes2)
+                                                       GEOM::GEOM_Object_ptr theVector1,
+                                                       CORBA::Double theStep1,
+                                                       CORBA::Long theNbTimes1,
+                                                       GEOM::GEOM_Object_ptr theVector2,
+                                                       CORBA::Double theStep2,
+                                                       CORBA::Long theNbTimes2)
 {
   beginService( " GEOM_Superv_i::MultiTranslate2D" );
   MESSAGE("GEOM_Superv_i::MultiTranslate2D");
   getTransfOp();
   GEOM::GEOM_Object_ptr anObj = myTransfOp->MultiTranslate2D(theObject, theVector1, theStep1, theNbTimes1,
-                                                            theVector2, theStep2, theNbTimes2);
+                                                             theVector2, theStep2, theNbTimes2);
   endService( " GEOM_Superv_i::MultiTranslate2D" );
   return anObj;
 }
@@ -1523,8 +1781,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiTranslate2D (GEOM::GEOM_Object_ptr the
 //  Rotate:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
-                                            GEOM::GEOM_Object_ptr theAxis,
-                                            CORBA::Double theAngle)
+                                             GEOM::GEOM_Object_ptr theAxis,
+                                             CORBA::Double theAngle)
 {
   beginService( " GEOM_Superv_i::Rotate" );
   MESSAGE("GEOM_Superv_i::Rotate");
@@ -1538,8 +1796,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::Rotate (GEOM::GEOM_Object_ptr theObject,
 //  RotateCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject,
-                                                GEOM::GEOM_Object_ptr theAxis,
-                                                CORBA::Double theAngle)
+                                                 GEOM::GEOM_Object_ptr theAxis,
+                                                 CORBA::Double theAngle)
 {
   beginService( " GEOM_Superv_i::RotateCopy" );
   MESSAGE("GEOM_Superv_i::RotateCopy");
@@ -1552,9 +1810,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateCopy (GEOM::GEOM_Object_ptr theObject
 //  RotateThreePoints:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
-                                                       GEOM::GEOM_Object_ptr theCentPoint,
-                                                       GEOM::GEOM_Object_ptr thePoint1,
-                                                       GEOM::GEOM_Object_ptr thePoint2)
+                                                        GEOM::GEOM_Object_ptr theCentPoint,
+                                                        GEOM::GEOM_Object_ptr thePoint1,
+                                                        GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::RotateThreePoints" );
   MESSAGE("GEOM_Superv_i::RotateThreePoints");
@@ -1568,9 +1826,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePoints (GEOM::GEOM_Object_ptr th
 //  RotateThreePointsCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
-                                                           GEOM::GEOM_Object_ptr theCentPoint,
-                                                           GEOM::GEOM_Object_ptr thePoint1,
-                                                           GEOM::GEOM_Object_ptr thePoint2)
+                                                            GEOM::GEOM_Object_ptr theCentPoint,
+                                                            GEOM::GEOM_Object_ptr thePoint1,
+                                                            GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::RotateThreePointsCopy" );
   MESSAGE("GEOM_Superv_i::RotateThreePointsCopy");
@@ -1584,8 +1842,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::RotateThreePointsCopy (GEOM::GEOM_Object_pt
 //  MultiRotate1D:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
-                                                   GEOM::GEOM_Object_ptr theAxis,
-                                                   CORBA::Long theNbTimes)
+                                                    GEOM::GEOM_Object_ptr theAxis,
+                                                    CORBA::Long theNbTimes)
 {
   beginService( " GEOM_Superv_i::MultiRotate1D" );
   MESSAGE("GEOM_Superv_i::MultiRotate1D");
@@ -1599,11 +1857,11 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate1D (GEOM::GEOM_Object_ptr theObj
 //  MultiRotate2D:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
-                                                   GEOM::GEOM_Object_ptr theAxis,
-                                                   CORBA::Double theAngle,
-                                                   CORBA::Long theNbTimes1,
-                                                   CORBA::Double theStep,
-                                                   CORBA::Long theNbTimes2)
+                                                    GEOM::GEOM_Object_ptr theAxis,
+                                                    CORBA::Double theAngle,
+                                                    CORBA::Long theNbTimes1,
+                                                    CORBA::Double theStep,
+                                                    CORBA::Long theNbTimes2)
 {
   beginService( " GEOM_Superv_i::MultiRotate2D" );
   MESSAGE("GEOM_Superv_i::MultiRotate2D");
@@ -1616,8 +1874,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MultiRotate2D (GEOM::GEOM_Object_ptr theObj
 //=============================================================================
 //  MirrorPlane:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject, 
-                                                 GEOM::GEOM_Object_ptr thePlane)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObject,
+                                                  GEOM::GEOM_Object_ptr thePlane)
 {
   beginService( " GEOM_Superv_i::MirrorPlane" );
   MESSAGE("GEOM_Superv_i::MirrorPlane");
@@ -1630,8 +1888,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlane (GEOM::GEOM_Object_ptr theObjec
 //=============================================================================
 //  MirrorPlaneCopy:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject, 
-                                                     GEOM::GEOM_Object_ptr thePlane)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
+                                                      GEOM::GEOM_Object_ptr thePlane)
 {
   beginService( " GEOM_Superv_i::MirrorPlaneCopy" );
   MESSAGE("GEOM_Superv_i::MirrorPlaneCopy");
@@ -1644,8 +1902,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPlaneCopy (GEOM::GEOM_Object_ptr theO
 //=============================================================================
 //  MirrorAxis:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject, 
-                                                GEOM::GEOM_Object_ptr theAxis)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject,
+                                                 GEOM::GEOM_Object_ptr theAxis)
 {
   beginService( " GEOM_Superv_i::MirrorAxis" );
   MESSAGE("GEOM_Superv_i::MirrorAxis");
@@ -1658,8 +1916,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxis (GEOM::GEOM_Object_ptr theObject
 //=============================================================================
 //  MirrorAxisCopy:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject, 
-                                                    GEOM::GEOM_Object_ptr theAxis)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
+                                                     GEOM::GEOM_Object_ptr theAxis)
 {
   beginService( " GEOM_Superv_i::MirrorAxisCopy" );
   MESSAGE("GEOM_Superv_i::MirrorAxisCopy");
@@ -1672,8 +1930,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorAxisCopy (GEOM::GEOM_Object_ptr theOb
 //=============================================================================
 //  MirrorPoint:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject, 
-                                                 GEOM::GEOM_Object_ptr thePoint)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObject,
+                                                  GEOM::GEOM_Object_ptr thePoint)
 {
   beginService( " GEOM_Superv_i::MirrorPoint" );
   MESSAGE("GEOM_Superv_i::MirrorPoint");
@@ -1686,8 +1944,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPoint (GEOM::GEOM_Object_ptr theObjec
 //=============================================================================
 //  MirrorPointCopy:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject, 
-                                                     GEOM::GEOM_Object_ptr thePoint)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
+                                                      GEOM::GEOM_Object_ptr thePoint)
 {
   beginService( " GEOM_Superv_i::MirrorPoint" );
   MESSAGE("GEOM_Superv_i::MirrorPointCopy");
@@ -1700,13 +1958,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MirrorPointCopy (GEOM::GEOM_Object_ptr theO
 //=============================================================================
 //  OffsetShape:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject, 
-                                                 CORBA::Double theOffset)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObject,
+                                                  CORBA::Double theOffset)
 {
   beginService( " GEOM_Superv_i::OffsetShape" );
   MESSAGE("GEOM_Superv_i::OffsetShape");
   getTransfOp();
-  GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset);
+  GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShape(theObject, theOffset, true);
   endService( " GEOM_Superv_i::OffsetShape" );
   return anObj;
 }
@@ -1714,13 +1972,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShape (GEOM::GEOM_Object_ptr theObjec
 //=============================================================================
 //  OffsetShapeCopy:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject, 
-                                                     CORBA::Double theOffset)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
+                                                      CORBA::Double theOffset)
 {
   beginService( " GEOM_Superv_i::OffsetShapeCopy" );
   MESSAGE("GEOM_Superv_i::OffsetShapeCopy");
   getTransfOp();
-  GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset);
+  GEOM::GEOM_Object_ptr anObj = myTransfOp->OffsetShapeCopy(theObject, theOffset, true);
   endService( " GEOM_Superv_i::OffsetShapeCopy" );
   return anObj;
 }
@@ -1728,9 +1986,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::OffsetShapeCopy (GEOM::GEOM_Object_ptr theO
 //=============================================================================
 //  ScaleShape:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject, 
-                                                GEOM::GEOM_Object_ptr thePoint,
-                                                CORBA::Double theFactor)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject,
+                                                 GEOM::GEOM_Object_ptr thePoint,
+                                                 CORBA::Double theFactor)
 {
   beginService( " GEOM_Superv_i::ScaleShape" );
   MESSAGE("GEOM_Superv_i::ScaleShape");
@@ -1743,9 +2001,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShape (GEOM::GEOM_Object_ptr theObject
 //=============================================================================
 //  ScaleShapeCopy:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject, 
-                                                    GEOM::GEOM_Object_ptr thePoint,
-                                                    CORBA::Double theFactor)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
+                                                     GEOM::GEOM_Object_ptr thePoint,
+                                                     CORBA::Double theFactor)
 {
   beginService( " GEOM_Superv_i::ScaleShapeCopy" );
   MESSAGE("GEOM_Superv_i::ScaleShapeCopy");
@@ -1759,10 +2017,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeCopy (GEOM::GEOM_Object_ptr theOb
 //  ScaleShapeAlongAxes:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
-                                                         GEOM::GEOM_Object_ptr thePoint,
-                                                         CORBA::Double theFactorX,
-                                                         CORBA::Double theFactorY,
-                                                         CORBA::Double theFactorZ)
+                                                          GEOM::GEOM_Object_ptr thePoint,
+                                                          CORBA::Double theFactorX,
+                                                          CORBA::Double theFactorY,
+                                                          CORBA::Double theFactorZ)
 {
   beginService( " GEOM_Superv_i::ScaleShapeAlongAxes" );
   MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxes");
@@ -1777,10 +2035,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr
 //  ScaleShapeAlongAxesCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
-                                                             GEOM::GEOM_Object_ptr thePoint,
-                                                             CORBA::Double theFactorX,
-                                                             CORBA::Double theFactorY,
-                                                             CORBA::Double theFactorZ)
+                                                              GEOM::GEOM_Object_ptr thePoint,
+                                                              CORBA::Double theFactorX,
+                                                              CORBA::Double theFactorY,
+                                                              CORBA::Double theFactorZ)
 {
   beginService( " GEOM_Superv_i::ScaleShapeAlongAxesCopy" );
   MESSAGE("GEOM_Superv_i::ScaleShapeAlongAxesCopy");
@@ -1795,8 +2053,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_
 //  PositionShape:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObject,
-                                                   GEOM::GEOM_Object_ptr theStartLCS,
-                                                   GEOM::GEOM_Object_ptr theEndLCS)
+                                                    GEOM::GEOM_Object_ptr theStartLCS,
+                                                    GEOM::GEOM_Object_ptr theEndLCS)
 {
   beginService( " GEOM_Superv_i::PositionShape" );
   MESSAGE("GEOM_Superv_i::PositionShape");
@@ -1810,8 +2068,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShape (GEOM::GEOM_Object_ptr theObj
 //  PositionShapeCopy:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
-                                                       GEOM::GEOM_Object_ptr theStartLCS,
-                                                       GEOM::GEOM_Object_ptr theEndLCS)
+                                                        GEOM::GEOM_Object_ptr theStartLCS,
+                                                        GEOM::GEOM_Object_ptr theEndLCS)
 {
   beginService( " GEOM_Superv_i::PositionShapeCopy" );
   MESSAGE("GEOM_Superv_i::PositionShapeCopy");
@@ -1825,10 +2083,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionShapeCopy (GEOM::GEOM_Object_ptr th
 //  PositionAlongPath:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
-                                                       GEOM::GEOM_Object_ptr thePath,
-                                                       CORBA::Double         theDistance,
-                                                       CORBA::Boolean        theCopy,
-                                                       CORBA::Boolean        theReverse)
+                                                        GEOM::GEOM_Object_ptr thePath,
+                                                        CORBA::Double         theDistance,
+                                                        CORBA::Boolean        theCopy,
+                                                        CORBA::Boolean        theReverse)
 {
   beginService( " GEOM_Superv_i::PositionAlongPath" );
   MESSAGE("GEOM_Superv_i::PositionAlongPath");
@@ -1843,7 +2101,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::PositionAlongPath (GEOM::GEOM_Object_ptr th
 //  Make:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
-                                              GEOM::GEOM_Object_ptr thePnt2)
+                                               GEOM::GEOM_Object_ptr thePnt2)
 {
   beginService( " GEOM_Superv_i::MakeEdge" );
   MESSAGE("GEOM_Superv_i::MakeEdge");
@@ -1853,17 +2111,33 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
   return anObj;
 }
 
+//=============================================================================
+//  MakeEdgeOnCurveByLength:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theRefCurve,
+                                                              CORBA::Double theLength,
+                                                              GEOM::GEOM_Object_ptr theStartPoint)
+{
+  beginService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
+  MESSAGE("GEOM_Superv_i::MakeEdgeOnCurveByLength");
+  getShapesOp();
+  GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeEdgeOnCurveByLength(theRefCurve, theLength, theStartPoint);
+  endService( " GEOM_Superv_i::MakeEdgeOnCurveByLength" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakeWire:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWires,
+                                               CORBA::Double       theTolerance)
 {
   beginService( " GEOM_Superv_i::MakeWire" );
   MESSAGE("GEOM_Superv_i::MakeWire");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplEW =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theEdgesAndWires, myPOA).in())) {
     getShapesOp();
-    GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList());
+    GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeWire(aListImplEW->GetList(), theTolerance);
     endService( " GEOM_Superv_i::MakeWire" );
     return anObj;
   }
@@ -1875,7 +2149,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeWire (GEOM::GEOM_List_ptr theEdgesAndWi
 //  MakeFace:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
-                                              CORBA::Boolean isPlanarWanted)
+                                               CORBA::Boolean isPlanarWanted)
 {
   beginService( " GEOM_Superv_i::MakeFace" );
   MESSAGE("GEOM_Superv_i::MakeFace");
@@ -1889,11 +2163,11 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFace (GEOM::GEOM_Object_ptr theWire,
 //  MakeFaceWires:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires,
-                                                   CORBA::Boolean isPlanarWanted)
+                                                    CORBA::Boolean isPlanarWanted)
 {
   beginService( " GEOM_Superv_i::MakeFaceWires" );
   MESSAGE("GEOM_Superv_i::MakeFaceWires");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplW = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplW =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theWires, myPOA).in())) {
     getShapesOp();
     GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWires(aListImplW->GetList(), isPlanarWanted);
@@ -1904,6 +2178,24 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWires (GEOM::GEOM_List_ptr theWires
   return NULL;
 }
 
+//=============================================================================
+//  MakeFaceWithConstraints:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFaceWithConstraints (GEOM::GEOM_List_ptr theConstraints)
+{
+  beginService( " GEOM_Superv_i::MakeFaceWithConstraints" );
+  MESSAGE("GEOM_Superv_i::MakeFaceWithConstraints");
+  if (GEOM_List_i<GEOM::ListOfGO>* aConstraints =
+      dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theConstraints, myPOA).in())) {
+    getShapesOp();
+    GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeFaceWithConstraints(aConstraints->GetList());
+    endService( " GEOM_Superv_i::MakeFaceWithConstraints" );
+    return anObj;
+  }
+  endService( " GEOM_Superv_i::MakeFaceWithConstraints" );
+  return NULL;
+}
+
 //=============================================================================
 //  MakeShell:
 //=============================================================================
@@ -1911,7 +2203,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeShell (GEOM::GEOM_List_ptr theFacesAndS
 {
   beginService( " GEOM_Superv_i::MakeShell" );
   MESSAGE("GEOM_Superv_i::MakeShell");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplFS =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesAndShells, myPOA).in())) {
     getShapesOp();
     GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeShell(aListImplFS->GetList());
@@ -1942,7 +2234,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidShells (GEOM::GEOM_List_ptr theShe
 {
   beginService( " GEOM_Superv_i::MakeSolidShells" );
   MESSAGE("GEOM_Superv_i::MakeSolidShells");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplS = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplS =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShells, myPOA).in())) {
     getShapesOp();
     GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidShells(aListImplS->GetList());
@@ -1960,7 +2252,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes
 {
   beginService( " GEOM_Superv_i::MakeCompound" );
   MESSAGE("GEOM_Superv_i::MakeCompound");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImpl = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theShapes, myPOA).in())) {
     getShapesOp();
     GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeCompound(aListImpl->GetList());
@@ -1971,18 +2263,40 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCompound (GEOM::GEOM_List_ptr theShapes
   return NULL;
 }
 
+//=============================================================================
+//  MakeSolidFromConnectedFaces:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSolidFromConnectedFaces (GEOM::GEOM_List_ptr theFacesOrShells,
+                                                                  CORBA::Boolean isIntersect)
+{
+  beginService( " GEOM_Superv_i::MakeSolidFromConnectedFaces" );
+  MESSAGE("GEOM_Superv_i::MakeSolidFromConnectedFaces");
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImpl =
+      dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theFacesOrShells, myPOA).in())) {
+    getShapesOp();
+    GEOM::GEOM_Object_ptr anObj = myShapesOp->MakeSolidFromConnectedFaces(aListImpl->GetList(), isIntersect);
+    endService( " GEOM_Superv_i::MakeSolidFromConnectedFaces" );
+    return anObj;
+  }
+  endService( " GEOM_Superv_i::MakeSolidFromConnectedFaces" );
+  return NULL;
+}
+
 //=============================================================================
 //  MakeGlueFaces:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
-                                                   CORBA::Double   theTolerance,
-                                                   CORBA::Boolean doKeepNonSolids)
+                                                    CORBA::Double   theTolerance,
+                                                    CORBA::Boolean doKeepNonSolids)
 {
   beginService( " GEOM_Superv_i::MakeGlueFaces" );
   MESSAGE("GEOM_Superv_i::MakeGlueFaces");
   getShapesOp();
+  GEOM::ListOfGO_var objList = new GEOM::ListOfGO;
+  objList->length( 1 );
+  objList[0] = theShape;
   GEOM::GEOM_Object_ptr anObj =
-    myShapesOp->MakeGlueFaces(theShape, theTolerance, doKeepNonSolids);
+    myShapesOp->MakeGlueFaces(objList, theTolerance, doKeepNonSolids);
   endService( " GEOM_Superv_i::MakeGlueFaces" );
   return anObj;
 }
@@ -1991,12 +2305,15 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFaces (GEOM::GEOM_Object_ptr theSha
 //  GetGlueFaces:
 //=============================================================================
 GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
-                                                CORBA::Double theTolerance)
+                                                 CORBA::Double theTolerance)
 {
   beginService( " GEOM_Superv_i::GetGlueFaces" );
   MESSAGE("GEOM_Superv_i::GetGlueFaces");
   getShapesOp();
-  GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(theShape, theTolerance);
+  GEOM::ListOfGO_var objList = new GEOM::ListOfGO;
+  objList->length( 1 );
+  objList[0] = theShape;
+  GEOM::ListOfGO* aList = myShapesOp->GetGlueFaces(objList, theTolerance);
   GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aList));
   MESSAGE(" List of "<<aListPtr->GetList().length()<<" element(s)");
   endService( " GEOM_Superv_i::GetGlueFaces" );
@@ -2007,15 +2324,20 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
 //  MakeGlueFacesByList:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
-                                                         CORBA::Double theTolerance,
-                                                         const GEOM::ListOfGO& theFaces,
-                                                         CORBA::Boolean doKeepNonSolids)
+                                                          CORBA::Double theTolerance,
+                                                          const GEOM::ListOfGO& theFaces,
+                                                          CORBA::Boolean doKeepNonSolids,
+                                                          CORBA::Boolean doGlueAllEdges)
 {
   beginService( " GEOM_Superv_i::MakeGlueFacesByList" );
   MESSAGE("GEOM_Superv_i::MakeGlueFacesByList");
   getShapesOp();
+  GEOM::ListOfGO_var objList = new GEOM::ListOfGO;
+  objList->length( 1 );
+  objList[0] = theShape;
   GEOM::GEOM_Object_ptr anObj =
-    myShapesOp->MakeGlueFacesByList(theShape, theTolerance, theFaces, doKeepNonSolids);
+    myShapesOp->MakeGlueFacesByList(objList, theTolerance, theFaces,
+                                    doKeepNonSolids, doGlueAllEdges);
   endService( " GEOM_Superv_i::MakeGlueFacesByList" );
   return anObj;
 }
@@ -2024,8 +2346,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeGlueFacesByList (GEOM::GEOM_Object_ptr
 //  MakeExplode:
 //=============================================================================
 GEOM::GEOM_List_ptr GEOM_Superv_i::MakeExplode (GEOM::GEOM_Object_ptr theShape,
-                                                   CORBA::Long theShapeType,
-                                                   CORBA::Boolean isSorted)
+                                                    CORBA::Long theShapeType,
+                                                    CORBA::Boolean isSorted)
 {
   beginService( " GEOM_Superv_i::MakeExplode" );
   MESSAGE("GEOM_Superv_i::MakeExplode");
@@ -2084,9 +2406,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ChangeOrientation (GEOM::GEOM_Object_ptr th
 //=============================================================================
 GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
                                           (GEOM::GEOM_Object_ptr theCheckShape,
-                                          GEOM::GEOM_Object_ptr theShape,
-                                          CORBA::Short theShapeType,
-                                          GEOM::shape_state theState)
+                                           GEOM::GEOM_Object_ptr theShape,
+                                           CORBA::Short theShapeType,
+                                           GEOM::shape_state theState)
 {
   beginService( " GEOM_Superv_i::GetShapesOnShape" );
   MESSAGE("GEOM_Superv_i::GetShapesOnShape");
@@ -2105,14 +2427,14 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::GetShapesOnShape
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
                                           (GEOM::GEOM_Object_ptr theCheckShape,
-                                          GEOM::GEOM_Object_ptr theShape,
-                                          CORBA::Short theShapeType,
-                                          GEOM::shape_state theState)
+                                           GEOM::GEOM_Object_ptr theShape,
+                                           CORBA::Short theShapeType,
+                                           GEOM::shape_state theState)
 {
   beginService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
   MESSAGE("GEOM_Superv_i::GetShapesOnShapeAsCompound");
   getShapesOp();
-  GEOM::GEOM_Object_ptr anObj = 
+  GEOM::GEOM_Object_ptr anObj =
     myShapesOp->GetShapesOnShapeAsCompound(theCheckShape, theShape, theShapeType, theState);
   endService( " GEOM_Superv_i::GetShapesOnShapeAsCompound" );
   return anObj;
@@ -2124,9 +2446,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetShapesOnShapeAsCompound
 //  MakeQuad4Vertices:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr thePnt1,
-                                                       GEOM::GEOM_Object_ptr thePnt2,
-                                                       GEOM::GEOM_Object_ptr thePnt3,
-                                                       GEOM::GEOM_Object_ptr thePnt4)
+                                                        GEOM::GEOM_Object_ptr thePnt2,
+                                                        GEOM::GEOM_Object_ptr thePnt3,
+                                                        GEOM::GEOM_Object_ptr thePnt4)
 {
   beginService( " GEOM_Superv_i::MakeQuad4Vertices" );
   MESSAGE("GEOM_Superv_i::MakeQuad4Vertices");
@@ -2140,9 +2462,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad4Vertices (GEOM::GEOM_Object_ptr th
 //  MakeQuad:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
-                                              GEOM::GEOM_Object_ptr theEdge2,
-                                              GEOM::GEOM_Object_ptr theEdge3,
-                                              GEOM::GEOM_Object_ptr theEdge4)
+                                               GEOM::GEOM_Object_ptr theEdge2,
+                                               GEOM::GEOM_Object_ptr theEdge3,
+                                               GEOM::GEOM_Object_ptr theEdge4)
 {
   beginService( " GEOM_Superv_i::MakeQuad" );
   MESSAGE("GEOM_Superv_i::MakeQuad");
@@ -2156,7 +2478,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad (GEOM::GEOM_Object_ptr theEdge1,
 //  MakeQuad2Edges:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEdge1,
-                                                    GEOM::GEOM_Object_ptr theEdge2)
+                                                     GEOM::GEOM_Object_ptr theEdge2)
 {
   beginService( " GEOM_Superv_i::MakeQuad2Edges" );
   MESSAGE("GEOM_Superv_i::MakeQuad2Edges");
@@ -2170,11 +2492,11 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeQuad2Edges (GEOM::GEOM_Object_ptr theEd
 //  MakeHexa:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
-                                              GEOM::GEOM_Object_ptr theFace2,
-                                              GEOM::GEOM_Object_ptr theFace3,
-                                              GEOM::GEOM_Object_ptr theFace4,
-                                              GEOM::GEOM_Object_ptr theFace5,
-                                              GEOM::GEOM_Object_ptr theFace6)
+                                               GEOM::GEOM_Object_ptr theFace2,
+                                               GEOM::GEOM_Object_ptr theFace3,
+                                               GEOM::GEOM_Object_ptr theFace4,
+                                               GEOM::GEOM_Object_ptr theFace5,
+                                               GEOM::GEOM_Object_ptr theFace6)
 {
   beginService( " GEOM_Superv_i::MakeHexa" );
   MESSAGE("GEOM_Superv_i::MakeHexa");
@@ -2188,7 +2510,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa (GEOM::GEOM_Object_ptr theFace1,
 //  MakeHexa2Faces:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFace1,
-                                                    GEOM::GEOM_Object_ptr theFace2)
+                                                     GEOM::GEOM_Object_ptr theFace2)
 {
   beginService( " GEOM_Superv_i::MakeHexa2Faces" );
   MESSAGE("GEOM_Superv_i::MakeHexa2Faces");
@@ -2202,10 +2524,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeHexa2Faces (GEOM::GEOM_Object_ptr theFa
 //  GetPoint:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
-                                              CORBA::Double   theX,
-                                              CORBA::Double   theY,
-                                              CORBA::Double   theZ,
-                                              CORBA::Double   theEpsilon)
+                                               CORBA::Double   theX,
+                                               CORBA::Double   theY,
+                                               CORBA::Double   theZ,
+                                               CORBA::Double   theEpsilon)
 {
   beginService( " GEOM_Superv_i::GetPoint" );
   MESSAGE("GEOM_Superv_i::GetPoint");
@@ -2219,8 +2541,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetPoint (GEOM::GEOM_Object_ptr theShape,
 //  GetEdge:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
-                                             GEOM::GEOM_Object_ptr thePoint1,
-                                             GEOM::GEOM_Object_ptr thePoint2)
+                                              GEOM::GEOM_Object_ptr thePoint1,
+                                              GEOM::GEOM_Object_ptr thePoint2)
 {
   beginService( " GEOM_Superv_i::GetEdge" );
   MESSAGE("GEOM_Superv_i::GetEdge");
@@ -2234,7 +2556,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdge (GEOM::GEOM_Object_ptr theShape,
 //  GetEdgeNearPoint:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr theShape,
-                                                      GEOM::GEOM_Object_ptr thePoint)
+                                                       GEOM::GEOM_Object_ptr thePoint)
 {
   beginService( " GEOM_Superv_i::GetEdgeNearPoint" );
   MESSAGE("GEOM_Superv_i::GetEdgeNearPoint");
@@ -2248,10 +2570,10 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetEdgeNearPoint (GEOM::GEOM_Object_ptr the
 //  GetFaceByPoints:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theShape,
-                                                     GEOM::GEOM_Object_ptr thePoint1,
-                                                     GEOM::GEOM_Object_ptr thePoint2,
-                                                     GEOM::GEOM_Object_ptr thePoint3,
-                                                     GEOM::GEOM_Object_ptr thePoint4)
+                                                      GEOM::GEOM_Object_ptr thePoint1,
+                                                      GEOM::GEOM_Object_ptr thePoint2,
+                                                      GEOM::GEOM_Object_ptr thePoint3,
+                                                      GEOM::GEOM_Object_ptr thePoint4)
 {
   beginService( " GEOM_Superv_i::GetFaceByPoints" );
   MESSAGE("GEOM_Superv_i::GetFaceByPoints");
@@ -2265,8 +2587,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByPoints (GEOM::GEOM_Object_ptr theS
 //  GetFaceByEdges:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theShape,
-                                                    GEOM::GEOM_Object_ptr theEdge1,
-                                                    GEOM::GEOM_Object_ptr theEdge2)
+                                                     GEOM::GEOM_Object_ptr theEdge1,
+                                                     GEOM::GEOM_Object_ptr theEdge2)
 {
   beginService( " GEOM_Superv_i::GetFaceByEdges" );
   MESSAGE("GEOM_Superv_i::GetFaceByEdges");
@@ -2280,7 +2602,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByEdges (GEOM::GEOM_Object_ptr theSh
 //  GetOppositeFace:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theBlock,
-                                                     GEOM::GEOM_Object_ptr theFace)
+                                                      GEOM::GEOM_Object_ptr theFace)
 {
   beginService( " GEOM_Superv_i::GetOppositeFace" );
   MESSAGE("GEOM_Superv_i::GetOppositeFace");
@@ -2294,7 +2616,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetOppositeFace (GEOM::GEOM_Object_ptr theB
 //  GetFaceNearPoint:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr theShape,
-                                                      GEOM::GEOM_Object_ptr thePoint)
+                                                       GEOM::GEOM_Object_ptr thePoint)
 {
   beginService( " GEOM_Superv_i::GetFaceNearPoint" );
   MESSAGE("GEOM_Superv_i::GetFaceNearPoint");
@@ -2308,7 +2630,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceNearPoint (GEOM::GEOM_Object_ptr the
 //  GetFaceByNormale:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr theBlock,
-                                                      GEOM::GEOM_Object_ptr theVector)
+                                                       GEOM::GEOM_Object_ptr theVector)
 {
   beginService( " GEOM_Superv_i::GetFaceByNormale" );
   MESSAGE("GEOM_Superv_i::GetFaceByNormale");
@@ -2322,9 +2644,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetFaceByNormale (GEOM::GEOM_Object_ptr the
 //  IsCompoundOfBlocks:
 //=============================================================================
 CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
-                                                 CORBA::Long     theMinNbFaces,
-                                                 CORBA::Long     theMaxNbFaces,
-                                                 CORBA::Long&          theNbBlocks)
+                                                  CORBA::Long     theMinNbFaces,
+                                                  CORBA::Long     theMaxNbFaces,
+                                                  CORBA::Long&          theNbBlocks)
 {
   beginService( " GEOM_Superv_i::IsCompoundOfBlocks" );
   MESSAGE("GEOM_Superv_i::IsCompoundOfBlocks");
@@ -2337,14 +2659,14 @@ CORBA::Boolean GEOM_Superv_i::IsCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompo
 //=============================================================================
 //  CheckCompoundOfBlocks:
 //=============================================================================
-CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks 
+CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
 (GEOM::GEOM_Object_ptr theCompound,
  GEOM::GEOM_IBlocksOperations::BCErrors_out theErrors)
 {
   beginService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
   MESSAGE("GEOM_Superv_i::CheckCompoundOfBlocks");
   getBlocksOp();
-  CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, theErrors);
+  CORBA::Boolean aRes = myBlocksOp->CheckCompoundOfBlocks(theCompound, -1., theErrors);
   endService( " GEOM_Superv_i::CheckCompoundOfBlocks" );
   return aRes;
 }
@@ -2353,7 +2675,7 @@ CORBA::Boolean GEOM_Superv_i::CheckCompoundOfBlocks
 //  PrintBCErrors:
 //=============================================================================
 char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
-                                   const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
+                                    const GEOM::GEOM_IBlocksOperations::BCErrors& theErrors)
 {
   beginService( " GEOM_Superv_i::PrintBCErrors" );
   MESSAGE("GEOM_Superv_i::PrintBCErrors");
@@ -2367,8 +2689,8 @@ char* GEOM_Superv_i::PrintBCErrors (GEOM::GEOM_Object_ptr theCompound,
 //  ExplodeCompoundOfBlocks:
 //=============================================================================
 GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_ptr theCompound,
-                                                               CORBA::Long     theMinNbFaces,
-                                                               CORBA::Long     theMaxNbFaces)
+                                                                CORBA::Long     theMinNbFaces,
+                                                                CORBA::Long     theMaxNbFaces)
 {
   beginService( " GEOM_Superv_i::ExplodeCompoundOfBlocks" );
   MESSAGE("GEOM_Superv_i::ExplodeCompoundOfBlocks");
@@ -2383,7 +2705,7 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::ExplodeCompoundOfBlocks (GEOM::GEOM_Object_pt
 //  GetBlockNearPoint:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr theCompound,
-                                                       GEOM::GEOM_Object_ptr thePoint)
+                                                        GEOM::GEOM_Object_ptr thePoint)
 {
   beginService( " GEOM_Superv_i::GetBlockNearPoint" );
   MESSAGE("GEOM_Superv_i::GetBlockNearPoint");
@@ -2397,11 +2719,11 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockNearPoint (GEOM::GEOM_Object_ptr th
 //  GetBlockByParts:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theCompound,
-                                                     GEOM::GEOM_List_ptr theParts)
+                                                      GEOM::GEOM_List_ptr theParts)
 {
   beginService( " GEOM_Superv_i::GetBlockByParts" );
   MESSAGE("GEOM_Superv_i::GetBlockByParts");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
     getBlocksOp();
     GEOM::GEOM_Object_ptr anObj = myBlocksOp->GetBlockByParts(theCompound, aListImplP->GetList());
@@ -2416,14 +2738,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::GetBlockByParts (GEOM::GEOM_Object_ptr theC
 //  GetBlocksByParts:
 //=============================================================================
 GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCompound,
-                                                        GEOM::GEOM_List_ptr theParts)
+                                                         GEOM::GEOM_List_ptr theParts)
 {
   beginService( " GEOM_Superv_i::GetBlocksByParts" );
   MESSAGE("GEOM_Superv_i::GetBlocksByParts");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(theParts, myPOA).in())) {
     getBlocksOp();
-    
+
     GEOM::ListOfGO* aBlocks = myBlocksOp->GetBlocksByParts(theCompound, aListImplP->GetList());
     GEOM_List_i<GEOM::ListOfGO>* aListPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aBlocks));
     endService( " GEOM_Superv_i::GetBlocksByParts" );
@@ -2437,9 +2759,9 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::GetBlocksByParts (GEOM::GEOM_Object_ptr theCo
 //  MakeMultiTransformation1D:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Object_ptr theBlock,
-                                                               CORBA::Long     theDirFace1,
-                                                               CORBA::Long     theDirFace2,
-                                                               CORBA::Long     theNbTimes)
+                                                                CORBA::Long     theDirFace1,
+                                                                CORBA::Long     theDirFace2,
+                                                                CORBA::Long     theNbTimes)
 {
   beginService( " GEOM_Superv_i::MakeMultiTransformation1D" );
   MESSAGE("GEOM_Superv_i::MakeMultiTransformation1D");
@@ -2452,7 +2774,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation1D (GEOM::GEOM_Objec
 //=============================================================================
 //  MakeMultiTransformation2D:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D 
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
 (GEOM::GEOM_Object_ptr theBlock,
  CORBA::Long     theDirFace1U,
  CORBA::Long     theDirFace2U,
@@ -2464,9 +2786,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
   beginService( " GEOM_Superv_i::MakeMultiTransformation2D" );
   MESSAGE("GEOM_Superv_i::MakeMultiTransformation2D");
   getBlocksOp();
-  GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock, 
-                                                                     theDirFace1U, theDirFace2U, theNbTimesU,
-                                                                     theDirFace1V, theDirFace2V, theNbTimesV);
+  GEOM::GEOM_Object_ptr anObj = myBlocksOp->MakeMultiTransformation2D(theBlock,
+                                                                      theDirFace1U, theDirFace2U, theNbTimesU,
+                                                                      theDirFace1V, theDirFace2V, theNbTimesV);
   endService( " GEOM_Superv_i::MakeMultiTransformation2D" );
   return anObj;
 }
@@ -2476,8 +2798,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeMultiTransformation2D
 //  MakeCirclePntVecR:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr theCenter,
-                                                       GEOM::GEOM_Object_ptr theVector,
-                                                       CORBA::Double theR)
+                                                        GEOM::GEOM_Object_ptr theVector,
+                                                        CORBA::Double theR)
 {
   beginService( " GEOM_Superv_i::MakeCirclePntVecR" );
   MESSAGE("GEOM_Superv_i::MakeCirclePntVecR");
@@ -2491,8 +2813,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCirclePntVecR (GEOM::GEOM_Object_ptr th
 //  MakeCircleThreePnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                        GEOM::GEOM_Object_ptr thePnt2,
-                                                        GEOM::GEOM_Object_ptr thePnt3)
+                                                         GEOM::GEOM_Object_ptr thePnt2,
+                                                         GEOM::GEOM_Object_ptr thePnt3)
 {
   beginService( " GEOM_Superv_i::MakeCircleThreePnt" );
   MESSAGE("GEOM_Superv_i::MakeCircleThreePnt");
@@ -2505,8 +2827,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleThreePnt (GEOM::GEOM_Object_ptr t
 //  MakeCircleCenter2Pnt:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr thePnt1,
-                                                          GEOM::GEOM_Object_ptr thePnt2,
-                                                          GEOM::GEOM_Object_ptr thePnt3)
+                                                             GEOM::GEOM_Object_ptr thePnt2,
+                                                           GEOM::GEOM_Object_ptr thePnt3)
 {
   beginService( " GEOM_Superv_i::MakeCircleCenter2Pnt" );
   MESSAGE("GEOM_Superv_i::MakeCircleCenter2Pnt");
@@ -2520,9 +2842,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeCircleCenter2Pnt (GEOM::GEOM_Object_ptr
 //  MakeEllipse:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCenter,
-                                                 GEOM::GEOM_Object_ptr theVector,
-                                                 CORBA::Double theRMajor, 
-                                                 CORBA::Double theRMinor)
+                                                  GEOM::GEOM_Object_ptr theVector,
+                                                  CORBA::Double theRMajor,
+                                                  CORBA::Double theRMinor)
 {
   beginService( " GEOM_Superv_i::MakeEllipse" );
   MESSAGE("GEOM_Superv_i::MakeEllipse");
@@ -2532,12 +2854,29 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipse (GEOM::GEOM_Object_ptr theCente
   return anObj;
 }
 
+//=============================================================================
+//  MakeEllipseVec:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeEllipseVec (GEOM::GEOM_Object_ptr theCenter,
+                                                     GEOM::GEOM_Object_ptr theVector,
+                                                     CORBA::Double theRMajor,
+                                                     CORBA::Double theRMinor,
+                                                     GEOM::GEOM_Object_ptr theVectorMajor)
+{
+  beginService( " GEOM_Superv_i::MakeEllipseVec" );
+  MESSAGE("GEOM_Superv_i::MakeEllipseVec");
+  getCurvesOp();
+  GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeEllipseVec(theCenter, theVector, theRMajor, theRMinor, theVectorMajor);
+  endService( " GEOM_Superv_i::MakeEllipseVec" );
+  return anObj;
+}
+
 //=============================================================================
 //  MakeArc:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArc (GEOM::GEOM_Object_ptr thePnt1,
-                                             GEOM::GEOM_Object_ptr thePnt2,
-                                             GEOM::GEOM_Object_ptr thePnt3)
+                                              GEOM::GEOM_Object_ptr thePnt2,
+                                              GEOM::GEOM_Object_ptr thePnt3)
 {
   beginService( " GEOM_Superv_i::MakeArc" );
   MESSAGE("GEOM_Superv_i::MakeArc");
@@ -2567,8 +2906,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcCenter (GEOM::GEOM_Object_ptr theCen
 //  MakeArcOfEllipse:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr thePnt1,
-                                                      GEOM::GEOM_Object_ptr thePnt2,
-                                                      GEOM::GEOM_Object_ptr thePnt3)
+                                                       GEOM::GEOM_Object_ptr thePnt2,
+                                                       GEOM::GEOM_Object_ptr thePnt3)
 {
   beginService( " GEOM_Superv_i::MakeArcOfEllipse" );
   MESSAGE("GEOM_Superv_i::MakeArcOfEllipse");
@@ -2581,14 +2920,15 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArcOfEllipse (GEOM::GEOM_Object_ptr the
 //=============================================================================
 //  MakePolyline:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints,
+                                                   CORBA::Boolean      theIsClosed)
 {
   beginService( " GEOM_Superv_i::MakePolyline" );
   MESSAGE("GEOM_Superv_i::MakePolyline");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
     getCurvesOp();
-    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList());
+    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakePolyline(aListImplP->GetList(), theIsClosed);
     endService( " GEOM_Superv_i::MakePolyline" );
     return anObj;
   }
@@ -2599,14 +2939,15 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakePolyline (GEOM::GEOM_List_ptr thePoints
 //=============================================================================
 //  MakeSplineBezier:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePoints,
+                                                       CORBA::Boolean      theIsClosed)
 {
   beginService( " GEOM_Superv_i::MakeSplineBezier" );
   MESSAGE("GEOM_Superv_i::MakeSplineBezier");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
     getCurvesOp();
-    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList());
+    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineBezier(aListImplP->GetList(), theIsClosed);
     endService( " GEOM_Superv_i::MakeSplineBezier" );
     return anObj;
   }
@@ -2617,14 +2958,16 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineBezier (GEOM::GEOM_List_ptr thePo
 //=============================================================================
 //  MakeSplineInterpolation:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_ptr thePoints,
+                                                              CORBA::Boolean      theIsClosed,
+                                                              CORBA::Boolean      theDoReordering)
 {
   beginService( " GEOM_Superv_i::MakeSplineInterpolation" );
   MESSAGE("GEOM_Superv_i::MakeSplineInterpolation");
-  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP = 
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thePoints, myPOA).in())) {
     getCurvesOp();
-    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList());
+    GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSplineInterpolation(aListImplP->GetList(), theIsClosed, theDoReordering);
     endService( " GEOM_Superv_i::MakeSplineInterpolation" );
     return anObj;
   }
@@ -2635,12 +2978,12 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSplineInterpolation (GEOM::GEOM_List_pt
 //=============================================================================
 //  MakeSketcher:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand, 
-                                                  GEOM::GEOM_List_ptr theWorkingPlane)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSketcher (const char* theCommand,
+                                                   GEOM::GEOM_List_ptr theWorkingPlane)
 {
   beginService( " GEOM_Superv_i::MakeSketcher" );
   MESSAGE("GEOM_Superv_i::MakeSketcher");
-  if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP = 
+  if (GEOM_List_i<GEOM::ListOfDouble>* aListImplWP =
       dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theWorkingPlane, myPOA).in())) {
     getCurvesOp();
     GEOM::GEOM_Object_ptr anObj = myCurvesOp->MakeSketcher(theCommand, aListImplWP->GetList());
@@ -2658,7 +3001,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoo
 {
   beginService( " GEOM_Superv_i::Make3DSketcher" );
   MESSAGE("GEOM_Superv_i::Make3DSketcher");
-  if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl = 
+  if (GEOM_List_i<GEOM::ListOfDouble>* aListImpl =
       dynamic_cast<GEOM_List_i<GEOM::ListOfDouble>*>(GetServant(theCoordinates, myPOA).in())) {
     getCurvesOp();
     GEOM::GEOM_Object_ptr anObj = myCurvesOp->Make3DSketcher(aListImpl->GetList());
@@ -2674,7 +3017,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::Make3DSketcher ( GEOM::GEOM_List_ptr theCoo
 //  MakeFilletAll:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theShape,
-                                                   CORBA::Double theR)
+                                                    CORBA::Double theR)
 {
   beginService( " GEOM_Superv_i::MakeFilletAll" );
   MESSAGE("GEOM_Superv_i::MakeFilletAllMakeSketcher");
@@ -2687,13 +3030,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletAll (GEOM::GEOM_Object_ptr theSha
 //=============================================================================
 //  MakeFilletEdges:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape, 
-                                                     CORBA::Double theR,
-                                                     GEOM::GEOM_List_ptr theEdges)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theShape,
+                                                      CORBA::Double theR,
+                                                      GEOM::GEOM_List_ptr theEdges)
 {
   beginService( " GEOM_Superv_i::MakeFilletEdges" );
   MESSAGE("GEOM_Superv_i::MakeFilletEdges");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplE = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdges(theShape, theR, aListImplE->GetList());
@@ -2707,14 +3050,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdges (GEOM::GEOM_Object_ptr theS
 //=============================================================================
 //  MakeFilletEdges R1 R2:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape, 
-                                                         CORBA::Double theR1,
-                                                         CORBA::Double theR2,
-                                                         GEOM::GEOM_List_ptr theEdges)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr theShape,
+                                                          CORBA::Double theR1,
+                                                          CORBA::Double theR2,
+                                                          GEOM::GEOM_List_ptr theEdges)
 {
   beginService( " GEOM_Superv_i::MakeFilletEdgesR1R2" );
   MESSAGE("GEOM_Superv_i::MakeFilletEdgesR1R2");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplE = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplE =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletEdgesR1R2(theShape, theR1,
@@ -2729,13 +3072,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletEdgesR1R2 (GEOM::GEOM_Object_ptr
 //=============================================================================
 //  MakeFilletFaces:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape, 
-                                                     CORBA::Double theR,
-                                                     GEOM::GEOM_List_ptr theFaces)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theShape,
+                                                      CORBA::Double theR,
+                                                      GEOM::GEOM_List_ptr theFaces)
 {
   beginService( " GEOM_Superv_i::MakeFilletFaces" );
   MESSAGE("GEOM_Superv_i::MakeFilletFaces");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFaces(theShape, theR, aListImplF->GetList());
@@ -2749,14 +3092,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFaces (GEOM::GEOM_Object_ptr theS
 //=============================================================================
 //  MakeFilletFaces R1 R2:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape, 
-                                                         CORBA::Double theR1,
-                                                         CORBA::Double theR2,
-                                                         GEOM::GEOM_List_ptr theFaces)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr theShape,
+                                                          CORBA::Double theR1,
+                                                          CORBA::Double theR2,
+                                                          GEOM::GEOM_List_ptr theFaces)
 {
   beginService( " GEOM_Superv_i::MakeFilletFacesR1R2" );
   MESSAGE("GEOM_Superv_i::MakeFilletFacesR1R2");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFilletFacesR1R2(theShape, theR1, theR2,
@@ -2771,13 +3114,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFilletFacesR1R2 (GEOM::GEOM_Object_ptr
 //=============================================================================
 //  MakeFillet2D:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape, 
-                                                  CORBA::Double theR,
-                                                  GEOM::GEOM_List_ptr theVertexes)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShape,
+                                                   CORBA::Double theR,
+                                                   GEOM::GEOM_List_ptr theVertexes)
 {
   beginService( " GEOM_Superv_i::MakeFillet2D" );
   MESSAGE("GEOM_Superv_i::MakeFillet2D");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplV = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet2D(theShape, theR, aListImplV->GetList());
@@ -2788,6 +3131,28 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet2D (GEOM::GEOM_Object_ptr theShap
   return NULL;
 }
 
+//=============================================================================
+//  MakeFillet1D:
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeFillet1D (GEOM::GEOM_Object_ptr theShape,
+                                                   CORBA::Double theR,
+                                                   GEOM::GEOM_List_ptr theVertexes,
+                                                   CORBA::Boolean doIgnoreSecantVertices)
+{
+  beginService( " GEOM_Superv_i::MakeFillet1D" );
+  MESSAGE("GEOM_Superv_i::MakeFillet1D");
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplV =
+      dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theVertexes, myPOA).in())) {
+    getLocalOp();
+    GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeFillet1D
+      (theShape, theR, aListImplV->GetList(), doIgnoreSecantVertices);
+    endService( " GEOM_Superv_i::MakeFillet1D" );
+    return anObj;
+  }
+  endService( " GEOM_Superv_i::MakeFillet1D" );
+  return NULL;
+}
+
 //=============================================================================
 //  MakeChamferAll:
 //=============================================================================
@@ -2800,13 +3165,13 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferAll (GEOM::GEOM_Object_ptr theSh
   endService( " GEOM_Superv_i::MakeChamferAll" );
   return anObj;
 }
-  
+
 //=============================================================================
 //  MakeChamferEdge:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theShape,
-                                                     CORBA::Double theD1, CORBA::Double theD2,
-                                                     CORBA::Long theFace1, CORBA::Long theFace2)
+                                                      CORBA::Double theD1, CORBA::Double theD2,
+                                                      CORBA::Long theFace1, CORBA::Long theFace2)
 {
   beginService( " GEOM_Superv_i::MakeChamferEdge" );
   MESSAGE("GEOM_Superv_i::MakeChamferEdge");
@@ -2820,8 +3185,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdge (GEOM::GEOM_Object_ptr theS
 //  MakeChamferEdgeAD:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr theShape,
-                                                       CORBA::Double theD, CORBA::Double theAngle,
-                                                       CORBA::Long theFace1, CORBA::Long theFace2)
+                                                        CORBA::Double theD, CORBA::Double theAngle,
+                                                        CORBA::Long theFace1, CORBA::Long theFace2)
 {
   beginService( " GEOM_Superv_i::MakeChamferEdgeAD" );
   MESSAGE("GEOM_Superv_i::MakeChamferEdgeAD");
@@ -2835,12 +3200,12 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgeAD (GEOM::GEOM_Object_ptr th
 //  MakeChamferFaces:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr theShape,
-                                                      CORBA::Double theD1, CORBA::Double theD2,
-                                                      GEOM::GEOM_List_ptr theFaces)
+                                                       CORBA::Double theD1, CORBA::Double theD2,
+                                                       GEOM::GEOM_List_ptr theFaces)
 {
   beginService( " GEOM_Superv_i::MakeChamferFaces" );
   MESSAGE("GEOM_Superv_i::MakeChamferFaces");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFaces(theShape, theD1, theD2, aListImplF->GetList());
@@ -2855,12 +3220,12 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFaces (GEOM::GEOM_Object_ptr the
 //  MakeChamferFacesAD:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr theShape,
-                                                        CORBA::Double theD, CORBA::Double theAngle,
-                                                        GEOM::GEOM_List_ptr theFaces)
+                                                         CORBA::Double theD, CORBA::Double theAngle,
+                                                         GEOM::GEOM_List_ptr theFaces)
 {
   beginService( " GEOM_Superv_i::MakeChamferFacesAD" );
   MESSAGE("GEOM_Superv_i::MakeChamferFacesAD");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theFaces, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferFacesAD(theShape, theD, theAngle, aListImplF->GetList());
@@ -2875,12 +3240,12 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferFacesAD (GEOM::GEOM_Object_ptr t
 //  MakeChamferEdges:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr theShape,
-                                                      CORBA::Double theD1, CORBA::Double theD2,
-                                                      GEOM::GEOM_List_ptr theEdges)
+                                                       CORBA::Double theD1, CORBA::Double theD2,
+                                                       GEOM::GEOM_List_ptr theEdges)
 {
   beginService( " GEOM_Superv_i::MakeChamferEdges" );
   MESSAGE("GEOM_Superv_i::MakeChamferEdges");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdges(theShape, theD1, theD2, aListImplF->GetList());
@@ -2895,12 +3260,12 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdges (GEOM::GEOM_Object_ptr the
 //  MakeChamferEdgesAD:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr theShape,
-                                                        CORBA::Double theD, CORBA::Double theAngle,
-                                                        GEOM::GEOM_List_ptr theEdges)
+                                                         CORBA::Double theD, CORBA::Double theAngle,
+                                                         GEOM::GEOM_List_ptr theEdges)
 {
   beginService( " GEOM_Superv_i::MakeChamferEdgesAD" );
   MESSAGE("GEOM_Superv_i::MakeChamferEdgesAD");
-  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF = 
+  if (GEOM_List_i<GEOM::ListOfLong>* aListImplF =
       dynamic_cast<GEOM_List_i<GEOM::ListOfLong>*>(GetServant(theEdges, myPOA).in())) {
     getLocalOp();
     GEOM::GEOM_Object_ptr anObj = myLocalOp->MakeChamferEdgesAD(theShape, theD, theAngle, aListImplF->GetList());
@@ -2915,9 +3280,9 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeChamferEdgesAD (GEOM::GEOM_Object_ptr t
 //  MakeArchimede:
 //=============================================================================
 GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theShape,
-                                                   CORBA::Double theWeight,
-                                                   CORBA::Double theWaterDensity,
-                                                   CORBA::Double theMeshingDeflection)
+                                                    CORBA::Double theWeight,
+                                                    CORBA::Double theWaterDensity,
+                                                    CORBA::Double theMeshingDeflection)
 {
   beginService( " GEOM_Superv_i::MakeArchimede" );
   MESSAGE("GEOM_Superv_i::MakeArchimede");
@@ -2931,7 +3296,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeArchimede (GEOM::GEOM_Object_ptr theSha
 //  GetSubShapeIndexMakeFilletAll:
 //=============================================================================
 CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
-                                            GEOM::GEOM_Object_ptr theSubShape)
+                                             GEOM::GEOM_Object_ptr theSubShape)
 {
   beginService( " GEOM_Superv_i::GetSubShapeIndex" );
   MESSAGE("GEOM_Superv_i::GetSubShapeIndexMakeArchimede");
@@ -2945,8 +3310,8 @@ CORBA::Long GEOM_Superv_i::GetSubShapeIndex (GEOM::GEOM_Object_ptr theShape,
 //=============================================================================
 //  CreateGroup:
 //=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape, 
-                                                 CORBA::Long theShapeType)
+GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainShape,
+                                                  CORBA::Long theShapeType)
 {
   beginService( " GEOM_Superv_i::CreateGroup" );
   MESSAGE("GEOM_Superv_i::CreateGroup");
@@ -2959,8 +3324,8 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::CreateGroup (GEOM::GEOM_Object_ptr theMainS
 //=============================================================================
 //  AddObject:
 //=============================================================================
-void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup, 
-                              CORBA::Long theSubShapeId)
+void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
+                               CORBA::Long theSubShapeId)
 {
   beginService( " GEOM_Superv_i::AddObject" );
   MESSAGE("GEOM_Superv_i::AddObject");
@@ -2972,8 +3337,8 @@ void GEOM_Superv_i::AddObject (GEOM::GEOM_Object_ptr theGroup,
 //=============================================================================
 //  RemoveObject:
 //=============================================================================
-void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup, 
-                                 CORBA::Long theSubShapeId)
+void GEOM_Superv_i::RemoveObject (GEOM::GEOM_Object_ptr theGroup,
+                                  CORBA::Long theSubShapeId)
 {
   beginService( " GEOM_Superv_i::RemoveObject" );
   MESSAGE("GEOM_Superv_i::RemoveObject");
@@ -3024,16 +3389,374 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::GetObjects (GEOM::GEOM_Object_ptr theGroup)
   return aListPtr->_this();
 }
 
+//=============================== Import/Export Operations =============================
+//=============================================================================
+//  Export STL
+//=============================================================================
+void GEOM_Superv_i::ExportSTL( GEOM::GEOM_Object_ptr theObject,
+                               const char*           theFileName,
+                               const bool            theIsASCII,
+                               CORBA::Double         theDeflection,
+                               const bool            theIsRelative )
+{
+  beginService( " GEOM_Superv_i::ExportSTL" );
+  MESSAGE("GEOM_Superv_i::ExportSTL");
+  getSTLPluginOp();
+  mySTLOp->ExportSTL( theObject, theFileName, theIsASCII, theDeflection, theIsRelative );
+  endService( " GEOM_Superv_i::ExportSTL" );
+}
+
+//=============================================================================
+//  Import STL
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportSTL( const char* theFileName )
+{
+  beginService( " GEOM_Superv_i::ImportSTL" );
+  MESSAGE("GEOM_Superv_i::ImportSTL");
+  getSTLPluginOp();
+  GEOM::ListOfGO* aSeq = mySTLOp->ImportSTL(theFileName );
+  GEOM::GEOM_Object_var anObj;
+
+  if (aSeq->length() > 0) {
+    anObj = aSeq->operator[](0);
+  }
+
+  endService( " GEOM_Superv_i::ImportSTL" );
+  return anObj._retn();
+}
+
+//=============================================================================
+//  Export BREP
+//=============================================================================
+void GEOM_Superv_i::ExportBREP( GEOM::GEOM_Object_ptr theObject,
+                                const char*           theFileName )
+{
+  beginService( " GEOM_Superv_i::ExportBREP" );
+  MESSAGE("GEOM_Superv_i::ExportBREP");
+  getBREPPluginOp();
+  myBREPOp->ExportBREP( theObject, theFileName );
+  endService( " GEOM_Superv_i::ExportBREP" );
+}
+
+//=============================================================================
+//  Import BREP
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportBREP( const char* theFileName )
+{
+  beginService( " GEOM_Superv_i::ImportBREP" );
+  MESSAGE("GEOM_Superv_i::ImportBREP");
+  getBREPPluginOp();
+  GEOM::ListOfGO* aSeq = myBREPOp->ImportBREP(theFileName );
+  GEOM::GEOM_Object_var anObj;
+
+  if (aSeq->length() > 0) {
+    anObj = aSeq->operator[](0);
+  }
+
+  endService( " GEOM_Superv_i::ImportBREP" );
+  return anObj._retn();
+}
+
+//=============================================================================
+//  Export STEP
+//=============================================================================
+void GEOM_Superv_i::ExportSTEP( GEOM::GEOM_Object_ptr theObject,
+                                const char*           theFileName )
+{
+  beginService( " GEOM_Superv_i::ExportSTEP" );
+  MESSAGE("GEOM_Superv_i::ExportSTEP");
+  getSTEPPluginOp();
+
+  const GEOM::length_unit aUnit = GEOM::LU_METER;
+
+  mySTEPOp->ExportSTEP( theObject, theFileName, aUnit );
+  endService( " GEOM_Superv_i::ExportSTEP" );
+}
+
+//=============================================================================
+//  Import STEP
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportSTEP( const char* theFileName,
+                                                 const bool  theIsIgnoreUnits )
+{
+  beginService( " GEOM_Superv_i::ImportSTEP" );
+  MESSAGE("GEOM_Superv_i::ImportSTEP");
+  getSTEPPluginOp();
+  GEOM::ListOfGO* aSeq = mySTEPOp->ImportSTEP(theFileName, theIsIgnoreUnits, false );
+  GEOM::GEOM_Object_var anObj;
+
+  if (aSeq->length() > 0) {
+    anObj = aSeq->operator[](0);
+  }
+
+  endService( " GEOM_Superv_i::ImportSTEP" );
+  return anObj._retn();
+}
+
+//=============================================================================
+//  Export IGES
+//=============================================================================
+void GEOM_Superv_i::ExportIGES( GEOM::GEOM_Object_ptr theObject,
+                                const char*           theFileName,
+                                const char*           theVersion )
+{
+  beginService( " GEOM_Superv_i::ExportIGES" );
+  MESSAGE("GEOM_Superv_i::ExportIGES");
+  getIGESPluginOp();
+  myIGESOp->ExportIGES( theObject, theFileName, theVersion );
+  endService( " GEOM_Superv_i::ExportIGES" );
+}
+
+//=============================================================================
+//  Import IGES
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportIGES( const char* theFileName,
+                                                 const bool  theIsIgnoreUnits )
+{
+  beginService( " GEOM_Superv_i::ImportIGES" );
+  MESSAGE("GEOM_Superv_i::ImportIGES");
+  getIGESPluginOp();
+  GEOM::ListOfGO* aSeq = myIGESOp->ImportIGES(theFileName, theIsIgnoreUnits );
+  GEOM::GEOM_Object_var anObj;
+
+  if (aSeq->length() > 0) {
+    anObj = aSeq->operator[](0);
+  }
+
+  endService( " GEOM_Superv_i::ImportIGES" );
+  return anObj._retn();
+}
+
+//=============================================================================
+//  Export XAO
+//=============================================================================
+CORBA::Boolean GEOM_Superv_i::ExportXAO( GEOM::GEOM_Object_ptr shape,
+                                         const GEOM::ListOfGO& groups,
+                                         const GEOM::ListOfFields& fields,
+                                         const char* author,
+                                         const char* fileName,
+                                         const char* shapeFileName )
+{
+  beginService( " GEOM_Superv_i::ExportXAO" );
+  MESSAGE("GEOM_Superv_i::ExportXAO");
+  getXAOPluginOp();
+  CORBA::Boolean isGood = myXAOOp->ExportXAO( shape, groups, fields, author, fileName, shapeFileName );
+  endService( " GEOM_Superv_i::ExportXAO" );
+  return isGood;
+}
+
+//=============================================================================
+//  Import XAO
+//=============================================================================
+CORBA::Boolean GEOM_Superv_i::ImportXAO( const char* /*fileName*/,
+                                         GEOM::GEOM_Object_out /*shape*/,
+                                         GEOM::ListOfGO_out /*subShapes*/,
+                                         GEOM::ListOfGO_out /*groups*/,
+                                         GEOM::ListOfFields_out /*fields*/ )
+{
+  return false;
+}
+
+
+//=============================================================================
+//  Export VTK
+//=============================================================================
+void GEOM_Superv_i::ExportVTK(  GEOM::GEOM_Object_ptr theObject,
+                               const char*           theFileName,
+                               CORBA::Double         theDeflection )
+{
+  #ifdef WITH_VTK
+  beginService( " GEOM_Superv_i::ExportVTK" );
+  MESSAGE("GEOM_Superv_i::ExportVTK");
+  getVTKPluginOp();
+  myVTKOp->ExportVTK( theObject, theFileName, theDeflection );
+  endService( " GEOM_Superv_i::ExportVTK" );
+#else
+  std::string message("GEOM_Superv_i::ExportVTK functionality is unavailable");
+  THROW_SALOME_CORBA_EXCEPTION(message.c_str(), SALOME::INTERNAL_ERROR);
+#endif
+}
+
+//=============================== Advanced Operations =============================
+//=============================================================================
+//  MakePipeTShape
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShape
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
+                     CORBA::Boolean theHexMesh)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShape" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShape");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShape(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShape" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakePipeTShapeWithPosition
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeWithPosition
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2, CORBA::Boolean theHexMesh,
+                     GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShapeWithPosition");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh, theP1, theP2, theP3);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShapeWithPosition" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakePipeTShapeChamfer
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamfer
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
+                     CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShapeChamfer");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamfer(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShapeChamfer" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakePipeTShapeChamferWithPosition
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeChamferWithPosition
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
+                     CORBA::Double theH, CORBA::Double theW, CORBA::Boolean theHexMesh,
+                     GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShapeChamferWithPosition");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeChamferWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh, theP1, theP2, theP3);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShapeChamferWithPosition" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakePipeTShapeFillet
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFillet
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
+                     CORBA::Double theRF, CORBA::Boolean theHexMesh)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShapeFillet" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShapeFillet");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFillet(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShapeFillet" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakePipeTShapeFilletWithPosition
+//=============================================================================
+GEOM::GEOM_List_ptr GEOM_Superv_i::MakePipeTShapeFilletWithPosition
+                    (CORBA::Double theR1, CORBA::Double theW1, CORBA::Double theL1,
+                     CORBA::Double theR2, CORBA::Double theW2, CORBA::Double theL2,
+                     CORBA::Double theRF, CORBA::Boolean theHexMesh,
+                     GEOM::GEOM_Object_ptr theP1, GEOM::GEOM_Object_ptr theP2, GEOM::GEOM_Object_ptr theP3)
+{
+  beginService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
+  MESSAGE("GEOM_Superv_i::MakePipeTShapeFilletWithPosition");
+  getAdvancedOp();
+
+  GEOM::ListOfGO* aSeq = myAdvancedOp->MakePipeTShapeFilletWithPosition(theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh, theP1, theP2, theP3);
+  GEOM_List_i<GEOM::ListOfGO>* aSeqPtr = new GEOM_List_i<GEOM::ListOfGO>(*(aSeq));
+  MESSAGE(" List of "<<aSeqPtr->GetList().length()<<" element(s)");
+  endService( " GEOM_Superv_i::MakePipeTShapeFilletWithPosition" );
+  return aSeqPtr->_this();
+}
+
+//=============================================================================
+//  MakeDividedDisk
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedDisk (CORBA::Double theR, CORBA::Double theRatio, 
+                                                      CORBA::Short theOrientation, GEOM::pattern thePattern)
+{
+  beginService( " GEOM_Superv_i::MakeDividedDisk" );
+  MESSAGE("GEOM_Superv_i::MakeDividedDisk");
+  getAdvancedOp();
+  GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedDisk(theR, theRatio, theOrientation, thePattern);
+  endService( " GEOM_Superv_i::MakeDividedDisk" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakeDividedCylinder
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeDividedCylinder (CORBA::Double theR, 
+                                                          CORBA::Double theH,
+                                                          GEOM::pattern thePattern)
+{
+  beginService( " GEOM_Superv_i::MakeDividedCylinder" );
+  MESSAGE("GEOM_Superv_i::MakeDividedCylinder");
+  getAdvancedOp();
+  GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeDividedCylinder(theR, theH, thePattern);
+  endService( " GEOM_Superv_i::MakeDividedCylinder" );
+  return anObj;
+}
+
+//=============================================================================
+//  MakeSmoothingSurface
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSmoothingSurface (GEOM::GEOM_List_ptr thelPoints)
+{
+  beginService( " GEOM_Superv_i::MakeSmoothingSurface" );
+  MESSAGE("GEOM_Superv_i::MakeSmoothingSurface");
+  getAdvancedOp();
+  if (GEOM_List_i<GEOM::ListOfGO>* aListImplP =
+      dynamic_cast<GEOM_List_i<GEOM::ListOfGO>*>(GetServant(thelPoints, myPOA).in())) {
+    getCurvesOp();
+    GEOM::GEOM_Object_ptr anObj = myAdvancedOp->MakeSmoothingSurface(aListImplP->GetList(), 2, 8, 0.);
+    endService( " GEOM_Superv_i::MakeSmoothingSurface" );
+    return anObj;
+  }
+  endService( " GEOM_Superv_i::MakeSmoothingSurface" );
+  return NULL;
+}
+
+/*@@ insert new functions before this line @@ do not remove this line @@*/
+
 //=====================================================================================
 // EXPORTED METHODS
 //=====================================================================================
 extern "C"
 {
+#ifdef WIN32
+  __declspec( dllexport )
+#endif
   PortableServer::ObjectId * GEOM_SupervEngine_factory(CORBA::ORB_ptr orb,
-                                                     PortableServer::POA_ptr poa, 
-                                                     PortableServer::ObjectId * contId,
-                                                     const char *instanceName, 
-                                                     const char * interfaceName)
+                                                       PortableServer::POA_ptr poa,
+                                                       PortableServer::ObjectId * contId,
+                                                       const char *instanceName,
+                                                       const char * interfaceName)
   {
     GEOM_Superv_i * myGEOM_Superv_i = new GEOM_Superv_i(orb, poa, contId, instanceName, interfaceName);
     //Don't understand the reason why this component is registered ???