From 94d935e6a05947bc141af461e6dd1b2339aa5f68 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 30 Sep 2008 11:38:46 +0000 Subject: [PATCH] Remarks for issue 17291 EDF 591 SMESH : Visualization of the orientation of the normal vector of the mesh faces --- src/OBJECT/SMESH_FaceOrientationFilter.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.39.2