Remarks for issue 17291 EDF 591 SMESH : Visualization of the orientation of the normal vector of the mesh faces

This commit is contained in:
ouv 2008-09-30 11:38:46 +00:00
parent 1856f1d72e
commit 94d935e6a0

View 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();