]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesAPI/FeaturesAPI_Revolution.cpp
Salome HOME
Fix the revolution algorithm revolving an edge between faces.
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Revolution.cpp
index 51a1a1297ccd0c9cb338f59e388c652c15465d61..7799776da1eb65ea312e34b82861336f00421ef5 100644 (file)
@@ -57,9 +57,9 @@ FeaturesAPI_Revolution::FeaturesAPI_Revolution(
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    fillAttribute(theBaseObjects, mybaseObjects);
     if (!theSelectionType.empty())
       mybaseObjects->setSelectionType(theSelectionType);
+    fillAttribute(theBaseObjects, mybaseObjects);
     fillAttribute(theAxis, myaxis);
     setAngles(theToAngle, theFromAngle);
   }
@@ -78,9 +78,9 @@ FeaturesAPI_Revolution::FeaturesAPI_Revolution(
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    fillAttribute(theBaseObjects, mybaseObjects);
     if (!theSelectionType.empty())
       mybaseObjects->setSelectionType(theSelectionType);
+    fillAttribute(theBaseObjects, mybaseObjects);
     fillAttribute(theAxis, myaxis);
     setPlanesAndOffsets(theToObject, theToOffset, theFromObject, theFromOffset);
   }