Hello,
I want to see my pointcloud from a .ply file comming from a 3D scanner. (no cells)
With the curren configuration I kan see something but not what desired.
I want to see every point as a small sphere or point.
Do you know any similar example?
Here is the code:
vtkNew<vtkNamedColors> colors;
std::string inputFilename = "C:/Users/Juan/Desktop/MSA1.ply";
vtkNew<vtkPLYReader> reader;
reader->SetFileName(inputFilename.c_str());
// Visualize
//vtkNew<vtkPolyDataMapper> mapper;
vtkNew<vtkPointGaussianMapper> mapper;
mapper->SetInputConnection(reader->GetOutputPort());
mapper->EmissiveOff();
vtkNew<vtkActor> actor;
actor->SetMapper(mapper);
actor->GetProperty()->SetColor(colors->GetColor3d("Black").GetData());
vtkNew<vtkRenderer> renderer;
vtkNew<vtkRenderWindow> renderWindow;
renderWindow->AddRenderer(renderer);
vtkNew<vtkRenderWindowInteractor> renderWindowInteractor;
renderWindowInteractor->SetRenderWindow(renderWindow);
renderer->AddActor(actor);
renderer->SetBackground(colors->GetColor3d("White").GetData());
renderWindow->SetWindowName("ReadPLY");
renderWindow->Render();
renderWindowInteractor->Start();