From: ouv Date: Tue, 30 Sep 2008 11:38:46 +0000 (+0000) Subject: Remarks for issue 17291 EDF 591 SMESH : Visualization of the orientation of the norma... X-Git-Tag: V5_1_0a3~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94d935e6a05947bc141af461e6dd1b2339aa5f68;p=modules%2Fsmesh.git Remarks for issue 17291 EDF 591 SMESH : Visualization of the orientation of the normal vector of the mesh faces --- diff --git a/src/OBJECT/SMESH_FaceOrientationFilter.cxx b/src/OBJECT/SMESH_FaceOrientationFilter.cxx index e3d312e03..63dbf8443 100644 --- a/src/OBJECT/SMESH_FaceOrientationFilter.cxx +++ b/src/OBJECT/SMESH_FaceOrientationFilter.cxx @@ -75,6 +75,8 @@ SMESH_FaceOrientationFilter::SMESH_FaceOrientationFilter() myBaseGlyph = vtkGlyph3D::New(); myBaseGlyph->SetInput(myFaceMaskPoints->GetOutput()); myBaseGlyph->SetVectorModeToUseVector(); + myBaseGlyph->SetScaleModeToDataScalingOff(); + myBaseGlyph->SetColorModeToColorByScalar(); myBaseGlyph->SetSource(my3dVectors ? myArrowPolyData : myGlyphSource->GetOutput()); } @@ -282,6 +284,7 @@ int SMESH_FaceOrientationFilter::RequestData( myFacePolyData->SetPolys(aFaces); aFaces->Delete(); + myFacePolyData->GetCellData()->SetScalars(0); myFacePolyData->GetCellData()->SetVectors(aVectors); aVectors->Delete();