From: ana Date: Wed, 9 Jan 2013 13:56:05 +0000 (+0000) Subject: Fix for the "0051563: TC6.6.0: Local coordinate system is shown wrong in VTK viewer... X-Git-Tag: V6_main_FINAL~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c749b0fe0f329556ed737f75ead4e0a53c5bbdf8;p=modules%2Fgeom.git Fix for the "0051563: TC6.6.0: Local coordinate system is shown wrong in VTK viewer" issue. --- diff --git a/src/OBJECT/GEOM_VTKTrihedron.cxx b/src/OBJECT/GEOM_VTKTrihedron.cxx index 28dc7720d..5c5259745 100644 --- a/src/OBJECT/GEOM_VTKTrihedron.cxx +++ b/src/OBJECT/GEOM_VTKTrihedron.cxx @@ -116,11 +116,15 @@ void GEOM_VTKTrihedronAxis::SetSize( vtkFloatingPointType theSize ) gp_Mat aRot = aTrsf.VectorialPart(); for ( int i = 1; i <= 3; i++ ) + { for ( int j = 1; j <= 3; j++ ) myMatrix->SetElement( i - 1, j - 1, aRot( i, j ) ); + + // Set Arrow Position + myMatrix->SetElement( i - 1 , 3, aPosition[ i - 1 ] ); + } myArrowActor->SetUserMatrix( myMatrix ); - myArrowActor->SetPosition( aPosition ); #ifdef IPAL21440 if( vtkCoordinate* aCoord = myLabelActor->GetPositionCoordinate()->GetReferenceCoordinate() ) @@ -428,3 +432,4 @@ void GEOM_VTKTrihedron::SetAxesColors( vtkFloatingPointType theColor[3], bool th myAxis[ 1 ]->SetColor( theIsDiffuse ? 0.0 : theColor[0], theColor[1], theIsDiffuse ? 0.0 : theColor[2] ); myAxis[ 2 ]->SetColor( theIsDiffuse ? 0.0 : theColor[0], theIsDiffuse ? 0.0 : theColor[1], theColor[2] ); } +