mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-22 03:15:36 +05:00
Issue 0020226: [CEA 329] Invalid glyphs position in vector fields on polyhedrons cell.
This commit is contained in:
parent
e350ffef91
commit
47134513c5
@ -30,6 +30,7 @@
|
||||
#include "SMESH_DeviceActor.h"
|
||||
#include "SMESH_ObjectDef.h"
|
||||
#include "SMESH_ControlsDef.hxx"
|
||||
#include "VTKViewer_CellCenters.h"
|
||||
#include "VTKViewer_ExtractUnstructuredGrid.h"
|
||||
#include "VTKViewer_FramedTextActor.h"
|
||||
#include "SALOME_InteractiveObject.hxx"
|
||||
@ -59,7 +60,6 @@
|
||||
#include <vtkProperty2D.h>
|
||||
#include <vtkPolyData.h>
|
||||
#include <vtkMaskPoints.h>
|
||||
#include <vtkCellCenters.h>
|
||||
#include <vtkTextProperty.h>
|
||||
#include <vtkLabeledDataMapper.h>
|
||||
#include <vtkSelectVisiblePoints.h>
|
||||
@ -428,7 +428,7 @@ SMESH_ActorDef::SMESH_ActorDef()
|
||||
//---------------------------------------
|
||||
myCellsNumDataSet = vtkUnstructuredGrid::New();
|
||||
|
||||
myCellCenters = vtkCellCenters::New();
|
||||
myCellCenters = VTKViewer_CellCenters::New();
|
||||
myCellCenters->SetInput(myCellsNumDataSet);
|
||||
|
||||
myClsMaskPoints = vtkMaskPoints::New();
|
||||
|
@ -63,7 +63,6 @@ class vtkPolyData;
|
||||
class vtkMapper;
|
||||
class vtkActor2D;
|
||||
class vtkMaskPoints;
|
||||
class vtkCellCenters;
|
||||
class vtkLabeledDataMapper;
|
||||
class vtkSelectVisiblePoints;
|
||||
|
||||
@ -75,6 +74,8 @@ class vtkImplicitBoolean;
|
||||
|
||||
class vtkTimeStamp;
|
||||
|
||||
class VTKViewer_CellCenters;
|
||||
|
||||
class SMESH_DeviceActor;
|
||||
|
||||
|
||||
@ -271,7 +272,7 @@ class SMESH_ActorDef : public SMESH_Actor
|
||||
vtkUnstructuredGrid* myCellsNumDataSet;
|
||||
vtkActor2D *myCellsLabels;
|
||||
vtkMaskPoints* myClsMaskPoints;
|
||||
vtkCellCenters* myCellCenters;
|
||||
VTKViewer_CellCenters* myCellCenters;
|
||||
vtkLabeledDataMapper* myClsLabeledDataMapper;
|
||||
vtkSelectVisiblePoints* myClsSelectVisiblePoints;
|
||||
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "SUIT_Session.h"
|
||||
#include "SUIT_ResourceMgr.h"
|
||||
|
||||
#include <VTKViewer_CellCenters.h>
|
||||
|
||||
#include <vtkCellData.h>
|
||||
#include <vtkDataSet.h>
|
||||
#include <vtkPolyData.h>
|
||||
@ -33,7 +35,6 @@
|
||||
#include <vtkFloatArray.h>
|
||||
#include <vtkCellArray.h>
|
||||
#include <vtkMaskPoints.h>
|
||||
#include <vtkCellCenters.h>
|
||||
#include <vtkGlyph3D.h>
|
||||
#include <vtkGlyphSource2D.h>
|
||||
|
||||
@ -59,7 +60,7 @@ SMESH_FaceOrientationFilter::SMESH_FaceOrientationFilter()
|
||||
|
||||
myFacePolyData = vtkPolyData::New();
|
||||
|
||||
myFaceCenters = vtkCellCenters::New();
|
||||
myFaceCenters = VTKViewer_CellCenters::New();
|
||||
myFaceCenters->SetInput(myFacePolyData);
|
||||
|
||||
myFaceMaskPoints = vtkMaskPoints::New();
|
||||
|
@ -24,11 +24,12 @@
|
||||
|
||||
#include <vtkPolyDataAlgorithm.h>
|
||||
|
||||
class vtkCellCenters;
|
||||
class vtkGlyph3D;
|
||||
class vtkGlyphSource2D;
|
||||
class vtkMaskPoints;
|
||||
|
||||
class VTKViewer_CellCenters;
|
||||
|
||||
class SMESHOBJECT_EXPORT SMESH_FaceOrientationFilter : public vtkPolyDataAlgorithm
|
||||
{
|
||||
public:
|
||||
@ -63,7 +64,7 @@ private:
|
||||
vtkFloatingPointType myOrientationScale;
|
||||
vtkPolyData* myArrowPolyData;
|
||||
vtkPolyData* myFacePolyData;
|
||||
vtkCellCenters* myFaceCenters;
|
||||
VTKViewer_CellCenters* myFaceCenters;
|
||||
vtkMaskPoints* myFaceMaskPoints;
|
||||
vtkGlyphSource2D* myGlyphSource;
|
||||
vtkGlyph3D* myBaseGlyph;
|
||||
|
Loading…
Reference in New Issue
Block a user