Salome HOME
correct the previous revision
authoreap <eap@opencascade.com>
Fri, 5 May 2006 08:35:17 +0000 (08:35 +0000)
committereap <eap@opencascade.com>
Fri, 5 May 2006 08:35:17 +0000 (08:35 +0000)
src/SMESH/SMESH_MeshEditor.cxx
src/SMESH/SMESH_MeshEditor.hxx

index 6ce462963e2f4892e6e964c93550b7b0287259e6..2c7a17f7e45e417d98214845e8bb84734fe60e75 100644 (file)
@@ -2481,6 +2481,9 @@ void SMESH_MeshEditor::Smooth (map<int,const SMDS_MeshElement*> & theElems,
     // move medium nodes of quadratic elements
     if ( isQuadratic )
     {
+      SMESH_MesherHelper helper( *GetMesh() );
+      if ( !face.IsNull() )
+        helper.SetSubShape( face );
       list< const SMDS_MeshElement* >::iterator elemIt = elemsOnFace.begin();
       for ( ; elemIt != elemsOnFace.end(); ++elemIt ) {
         const SMDS_QuadraticFaceOfNodes* QF =
index 65658bcc41d368ccb778a16123376380e99a7012..d09fb2de4b5595fb0ad006c2184b80ba36b4c23f 100644 (file)
@@ -399,8 +399,6 @@ class SMESH_MeshEditor {
 
   SMESHDS_Mesh * GetMeshDS() { return myMesh->GetMeshDS(); }
 
-  SMESHDS_Mesh * GetMeshDS() { return myMesh->GetMeshDS(); }
-
   SMESH_SequenceOfElemPtr GetLastCreatedNodes() { return myLastCreatedNodes; }
 
   SMESH_SequenceOfElemPtr GetLastCreatedElems() { return myLastCreatedElems; }