]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Remarks for issue 17291 EDF 591 SMESH : Visualization of the orientation of the norma...
authorouv <ouv@opencascade.com>
Tue, 30 Sep 2008 11:38:46 +0000 (11:38 +0000)
committerouv <ouv@opencascade.com>
Tue, 30 Sep 2008 11:38:46 +0000 (11:38 +0000)
src/OBJECT/SMESH_FaceOrientationFilter.cxx

index e3d312e0362b19e990892ed373a5b288b1d01972..63dbf84433f83773a17282a96dfc74cc13e5fabf 100644 (file)
@@ -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();