Salome HOME
Fix for the "0021861: EDF 2226 : Documentation of numeric functor option in split...
authoreap <eap@opencascade.com>
Thu, 8 Nov 2012 14:02:30 +0000 (14:02 +0000)
committereap <eap@opencascade.com>
Thu, 8 Nov 2012 14:02:30 +0000 (14:02 +0000)
   Fix conversion of "QuadToTriObject"

src/SMESH_I/SMESH_2smeshpy.cxx

index 05e266c386252ed71fcaa1aefd39d892aadaf8d0..4dc84a2a15083b369efa9098fc46631bdc267555 100644 (file)
@@ -818,7 +818,7 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
     }
   }
 
-  // objects erasing creation command if no more it's commands invoked:
+  // objects erasing creation command if no more its commands invoked:
   // SMESH_Pattern, FilterManager
   if ( method == "GetPattern" ||
        method == "CreateFilterManager" ||
@@ -1978,7 +1978,8 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand)
     const char * names[] = {
       "RemoveElements","RemoveNodes","RemoveOrphanNodes","AddNode","Add0DElement","AddEdge","AddFace","AddPolygonalFace","AddBall",
       "AddVolume","AddPolyhedralVolume","AddPolyhedralVolumeByFaces","MoveNode", "MoveClosestNodeToPoint",
-      "InverseDiag","DeleteDiag","Reorient","ReorientObject","TriToQuad","SplitQuad","SplitQuadObject",
+      "InverseDiag","DeleteDiag","Reorient","ReorientObject",
+      "TriToQuad","TriToQuadObject", "SplitQuad","SplitQuadObject",
       "BestSplit","Smooth","SmoothObject","SmoothParametric","SmoothParametricObject",
       "ConvertToQuadratic","ConvertFromQuadratic","RenumberNodes","RenumberElements",
       "RotationSweep","RotationSweepObject","RotationSweepObject1D","RotationSweepObject2D",
@@ -2127,15 +2128,13 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand)
       theCommand->SetArg( 3, face );
   }
 
-  if(method == "QuadToTri" || method == "QuadToTriObject")\r
-  {\r
-    int crit_arg = theCommand->GetNbArgs();\r
-    _AString crit = theCommand->GetArg(crit_arg);\r
-    if(crit.Search("MaxElementLength2D") != -1)\r
-    {\r
-      theCommand->SetArg(crit_arg, "");\r
-      isPyMeshMethod = true;\r
-    }\r
+  if ( method == "QuadToTri" || method == "QuadToTriObject" )
+  {
+    isPyMeshMethod = true;
+    int crit_arg = theCommand->GetNbArgs();
+    const _AString& crit = theCommand->GetArg(crit_arg);
+    if (crit.Search("MaxElementLength2D") != -1)
+      theCommand->SetArg(crit_arg, "");
   }
 
   if ( isPyMeshMethod )