<div dir="ltr">Somehow  I cant make work this piece of code , apparently the problem is in RequestData<br><br><br><br><div><br><br>int Reader::RequestData(vtkInformation *vtkNotUsed(request),<br>        vtkInformationVector **vtkNotUsed(inputVector),<br>        vtkInformationVector  outputVector) {<br><br>    // get the info object<br>    vtkInformation *outInfo = outputVector->GetInformationObject(0);<br><br>    // get the ouptut<br>    vtkUnstructuredGrid *output = vtkUnstructuredGrid::SafeDownCast(<br>            outInfo->Get(vtkDataObject::DATA_OBJECT()));<br><br>    if (!this->FileName) {<br>        vtkErrorMacro("No filename specified");<br>        return 0;<br>    }<br>    <br><br>    vtkSmartPointer < vtkUnstructuredGrid   > grid =vtkSmartPointer< vtkUnstructuredGrid>::New();<br><br>    ......<br><br>    vtkSmartPointer <vtkUnstructuredGrid>  <br>    outUG=vtkUnstructuredGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));<br><br><br>    vtkSmartPointer<vtkPoints> pts2=vtkSmartPointer<vtkPoints>:: New();<br><br>    cout<<"gg"<<grid->GetNumberOfPoints()<<endl;<br><br>    outUG->ShallowCopy(grid);<br><br><br><br><br><br><br>    return 1;<br><br>}<br></div></div>