Salome HOME
size of image is limited by 7000 pixels
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Polyline.cxx
index b7d58e0160632db4d1bead0c1b631aa1f3ca0b7a..035e0ca3df1edf80d984c1fc17808bb54fa18186 100644 (file)
@@ -197,7 +197,10 @@ void HYDROGUI_Arrow::Compute( const Handle(PrsMgr_PresentationManager3d)& aPrese
     // if size==0, then the arrow length is proportional to curve length
     arrowLen = curveLen/10;
   else
-    arrowLen = qMin( curveLen/10, (double)mySize );
+  {
+    //arrowLen = qMin( curveLen/10, (double)mySize );
+    arrowLen = (double)mySize;
+  }
 
   double t = ( anAdaptor.FirstParameter() + anAdaptor.LastParameter() ) / 2;
   gp_Pnt P, P1;
@@ -218,7 +221,11 @@ void HYDROGUI_Arrow::Compute( const Handle(PrsMgr_PresentationManager3d)& aPrese
     P1 = gp_Pnt();
   }
   else
+  {
+    aPrs->SetTransformation( Handle(Geom_Transformation)() );
+    SetTransformPersistence( Handle(Graphic3d_TransformPers)() );
     P1 = P;
+  }
 
   Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup( aPrs );
   Quantity_Color aColor;