update reader after setting file name
This commit is contained in:
parent
3da7dd9849
commit
e4b13f2ef0
@ -17,6 +17,7 @@ cv::viz::Widget cv::viz::Widget::fromPlyFile(const String &file_name)
|
||||
{
|
||||
vtkSmartPointer<vtkPLYReader> reader = vtkSmartPointer<vtkPLYReader>::New ();
|
||||
reader->SetFileName (file_name.c_str ());
|
||||
reader->Update();
|
||||
|
||||
vtkSmartPointer<vtkDataSet> data = reader->GetOutput();
|
||||
CV_Assert(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user