Salome HOME
Implement ConvertFromQuadratic()
[modules/smesh.git] / src / SMESH_I / SMESH_MeshEditor_i.cxx
index d85ee629583f5dc52507718c637a61aa0b3290a7..f17fbdd21ba1c929c5f90f63c53759c1ec993f32 100644 (file)
@@ -1743,5 +1743,19 @@ void SMESH_MeshEditor_i::ConvertToQuadratic(CORBA::Boolean theForce3d)
   anEditor.ConvertToQuadratic(theForce3d);
  // Update Python script
   TPythonDump() << this << ".ConvertToQuadratic( "
-                << theForce3d << ") ";
+                << theForce3d << " )";
+}
+
+//=======================================================================
+//function : ConvertFromQuadratic
+//purpose  :
+//=======================================================================
+
+CORBA::Boolean SMESH_MeshEditor_i::ConvertFromQuadratic()
+{
+  ::SMESH_MeshEditor anEditor( _myMesh );
+  CORBA::Boolean isDone = anEditor.ConvertFromQuadratic();
+  // Update Python script
+  TPythonDump() << this << ".ConvertFromQuadratic( )";
+  return isDone;
 }