Salome HOME
52236: TC7.3.0 Operation "Extrusion along a path" brings to wrong results if field...
authoreap <eap@opencascade.com>
Fri, 6 Dec 2013 15:55:21 +0000 (15:55 +0000)
committereap <eap@opencascade.com>
Fri, 6 Dec 2013 15:55:21 +0000 (15:55 +0000)
Fix setting angles in MakeExtrElements()

src/SMESH/SMESH_MeshEditor.cxx

index cb23d28430fa5d52c259231aa682e2302e418470..c41509e9653ea262edd3c290bce77509480f9c20 100644 (file)
@@ -5463,7 +5463,7 @@ SMESH_MeshEditor::MakeExtrElements(TIDSortedElemSet&                 theElements
   for( ; itPP != fullList.end(); itPP++) {
     aPPs.push_back( *itPP );
     if ( theHasAngles && itAngles != theAngles.end() )
   for( ; itPP != fullList.end(); itPP++) {
     aPPs.push_back( *itPP );
     if ( theHasAngles && itAngles != theAngles.end() )
-      aPPs.back().SetAngle( *itAngles );
+      aPPs.back().SetAngle( *itAngles++ );
   }
 
   TNodeOfNodeListMap   mapNewNodes;
   }
 
   TNodeOfNodeListMap   mapNewNodes;