File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
include/pcl/visualization/impl Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1787,7 +1787,7 @@ pcl::visualization::PCLVisualizer::updatePolygonMesh (
1787
1787
return (false );
1788
1788
1789
1789
// Get the current poly data
1790
- vtkSmartPointer<vtkPolyData> polydata = dynamic_cast <vtkPolyDataMapper *>(am_it->second .actor ->GetMapper ()) ->GetInput ();
1790
+ vtkSmartPointer<vtkPolyData> polydata = dynamic_cast <vtkPolyData *>(am_it->second .actor ->GetMapper ()->GetInput () );
1791
1791
if (!polydata)
1792
1792
return (false );
1793
1793
vtkSmartPointer<vtkCellArray> cells = polydata->GetPolys ();
Original file line number Diff line number Diff line change 45
45
#include < vtkLODActor.h>
46
46
#include < vtkPolyData.h>
47
47
#include < vtkPolyDataMapper.h>
48
+ #include < vtkDataSetMapper.h>
48
49
#include < vtkCellArray.h>
49
50
#include < vtkTextProperty.h>
50
51
#include < vtkAbstractPropPicker.h>
@@ -666,7 +667,7 @@ pcl::visualization::PCLVisualizerInteractorStyle::OnKeyDown ()
666
667
data->SetPoints (points);
667
668
data->SetVerts (vertices);
668
669
// Modify the mapper
669
- auto * mapper = dynamic_cast <vtkPolyDataMapper *>(act.actor ->GetMapper ());
670
+ auto * mapper = dynamic_cast <vtkDataSetMapper *>(act.actor ->GetMapper ());
670
671
mapper->SetInputData (data);
671
672
// Modify the actor
672
673
act.actor ->SetMapper (mapper);
@@ -696,7 +697,7 @@ pcl::visualization::PCLVisualizerInteractorStyle::OnKeyDown ()
696
697
auto *data = dynamic_cast <vtkPolyData*>(act.actor ->GetMapper ()->GetInput ());
697
698
data->GetPointData ()->SetScalars (scalars);
698
699
// Modify the mapper
699
- auto * mapper = dynamic_cast <vtkPolyDataMapper *>(act.actor ->GetMapper ());
700
+ auto * mapper = dynamic_cast <vtkDataSetMapper *>(act.actor ->GetMapper ());
700
701
mapper->SetScalarRange (minmax);
701
702
mapper->SetScalarModeToUsePointData ();
702
703
mapper->SetInputData (data);
Original file line number Diff line number Diff line change @@ -2963,7 +2963,7 @@ pcl::visualization::PCLVisualizer::updateColorHandlerIndex (const std::string &i
2963
2963
auto *data = dynamic_cast <vtkPolyData*>(am_it->second .actor ->GetMapper ()->GetInput ());
2964
2964
data->GetPointData ()->SetScalars (scalars);
2965
2965
// Modify the mapper
2966
- auto * mapper = dynamic_cast <vtkPolyDataMapper *>(am_it->second .actor ->GetMapper ());
2966
+ auto * mapper = dynamic_cast <vtkDataSetMapper *>(am_it->second .actor ->GetMapper ());
2967
2967
mapper->SetScalarRange (minmax);
2968
2968
mapper->SetScalarModeToUsePointData ();
2969
2969
mapper->SetInputData (data);
@@ -3120,7 +3120,7 @@ pcl::visualization::PCLVisualizer::updatePolygonMesh (
3120
3120
std::vector<pcl::Vertices> verts (poly_mesh.polygons ); // copy vector
3121
3121
3122
3122
// Get the current poly data
3123
- vtkSmartPointer<vtkPolyData> polydata = dynamic_cast <vtkPolyDataMapper *>(am_it->second .actor ->GetMapper ()) ->GetInput ();
3123
+ vtkSmartPointer<vtkPolyData> polydata = dynamic_cast <vtkPolyData *>(am_it->second .actor ->GetMapper ()->GetInput () );
3124
3124
if (!polydata)
3125
3125
return (false );
3126
3126
vtkSmartPointer<vtkCellArray> cells = polydata->GetStrips ();
You can’t perform that action at this time.
0 commit comments