]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix issue for nbStep and new icon
authorJérôme <jerome.lucas@cesgenslab.fr>
Tue, 13 Oct 2020 18:24:39 +0000 (20:24 +0200)
committerJérôme <jerome.lucas@cesgenslab.fr>
Thu, 3 Dec 2020 13:49:55 +0000 (14:49 +0100)
src/BuildPlugin/BuildPlugin_Interpolation.cpp
src/BuildPlugin/icons/feature_interpolation_analytical.png
src/BuildPlugin/icons/feature_interpolation_by_selection.png

index 7aa82f279fa9e9508b3e27b91a5e452563e5ff75..2fd4d48bc5140c1eff25780fbb12d8c6f1a935f9 100644 (file)
@@ -136,8 +136,8 @@ void BuildPlugin_Interpolation::updateCoods()
     double scale = (aMaxt - aMint )/aNbrStep;
     string(VARIABLE_ID())->setValue("t");
 
-    tables(VALUE_ID())->setSize(aNbrStep,4);
-    for( int step = 0; step < aNbrStep; step++ ){
+    tables(VALUE_ID())->setSize(aNbrStep+1,4);
+    for( int step = 0; step <= aNbrStep; step++ ){
       ModelAPI_AttributeTables::Value aVal;
       aVal.myDouble = step * scale + aMint;
       tables(VALUE_ID())->setValue(aVal,step,0);
@@ -240,11 +240,11 @@ void BuildPlugin_Interpolation::execute()
         ||string( YT_ID())->value() == ""
         ||string( ZT_ID())->value() == ""
         ||tables(VALUE_ID())->rows()== 0  )
-      return;
+      return false;
 
     if (!outErrorMessage.empty()){
-      setError("Error: Python interpreter " + outErrorMessage);
-      return;
+      setError("Error: Python interpreter " );
+      return false;
     }
     AttributeTablesPtr table = tables( VALUE_ID() );
     std::list<std::vector<double> > aCoodPoints;
index e5c5374b978367f79f571175cc13eb6bcfd99061..a47790fc6a73ec27869beb46de6d26c16befa50e 100644 (file)
Binary files a/src/BuildPlugin/icons/feature_interpolation_analytical.png and b/src/BuildPlugin/icons/feature_interpolation_analytical.png differ
index f2964c744f94c68e79bfac572cfc1f6d974d018d..e5c5374b978367f79f571175cc13eb6bcfd99061 100644 (file)
Binary files a/src/BuildPlugin/icons/feature_interpolation_by_selection.png and b/src/BuildPlugin/icons/feature_interpolation_by_selection.png differ