$NetBSD: patch-apps_src_render__views__tesselated__sphere.cpp,v 1.1 2021/05/07 11:36:29 thor Exp $ Support VTK 9, from PR 4262 --- apps/src/render_views_tesselated_sphere.cpp.orig 2020-08-14 12:23:03.000000000 +0000 +++ apps/src/render_views_tesselated_sphere.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -26,6 +27,7 @@ #include #include #include +#include #include @@ -34,7 +36,8 @@ pcl::apps::RenderViewsTesselatedSphere:: { // center object double CoM[3]; - vtkIdType npts_com = 0, *ptIds_com = nullptr; + vtkIdType npts_com = 0; + vtkCellPtsPtr ptIds_com = nullptr; vtkSmartPointer cells_com = polydata_->GetPolys(); double center[3], p1_com[3], p2_com[3], p3_com[3], totalArea_com = 0; @@ -95,7 +98,8 @@ pcl::apps::RenderViewsTesselatedSphere:: // * Compute area of the mesh ////////////////////////////// vtkSmartPointer cells = mapper->GetInput()->GetPolys(); - vtkIdType npts = 0, *ptIds = nullptr; + vtkIdType npts = 0; + vtkCellPtsPtr ptIds = nullptr; double p1[3], p2[3], p3[3], totalArea = 0; for (cells->InitTraversal(); cells->GetNextCell(npts, ptIds);) { @@ -363,7 +367,8 @@ pcl::apps::RenderViewsTesselatedSphere:: polydata->BuildCells(); vtkSmartPointer cells = polydata->GetPolys(); - vtkIdType npts = 0, *ptIds = nullptr; + vtkIdType npts = 0; + vtkCellPtsPtr ptIds = nullptr; double p1[3], p2[3], p3[3], area, totalArea = 0; for (cells->InitTraversal(); cells->GetNextCell(npts, ptIds);) {