<div dir="ltr">Hi Julia,<div><br></div><div>You are more likely to get help if you post the compiler error you are getting.</div><div><br></div><div>Best,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 4:15 PM, Julia Fischer <span dir="ltr"><<a href="mailto:julia.ute.fischer@gmail.com" target="_blank">julia.ute.fischer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>