The issue was the pointer to the filestream was being set to NULL after all reading finished, so when RequestData was called it quite rightly returned a 0. Thanks for the pointer, Utkarsh.
=================================== Adriano Gagliardi MEng PhD Project Scientist Computational Aerodynamics Aircraft Research Association Ltd. Manton Lane Bedford Tel: 01234 32 4644 E-mail: [email protected] Url: www.ara.co.uk -----Original Message----- From: Utkarsh Ayachit [mailto:[email protected]] Sent: 11 February 2010 15:51 To: [email protected] Cc: ParaView Subject: Re: [Paraview] Problem using Generate Surface Normals More likely than not, your vtkTestReader::RequestData() returned a '0'. You might want to put a break point in vtkTestReader::RequestData() and see why it's returning a 0. Utkarsh On Thu, Feb 11, 2010 at 10:34 AM, Adriano Gagliardi <[email protected]> wrote: > > Dear All, > > I have a custom reader that works fine and loads mesh and data in as I > require. However, when I try to execute 'Generate Surface Normals' on > it, I get the error below. The process I am following is: > > -> Read in mesh and data(multi-block data-set, vtkUnstructuredGrid > -> stored in > each block) > -> Extract blocks > -> Extract surface (outputs vtkPolyData) Generate Surface Normals > -> Error message > > ERROR: In /usr/Paraview/ParaView3/VTK/Filtering/vtkExecutive.cxx, line > 757 vtkCompositeDataPipeline (0x8135e40): Algorithm > vtkTestReader(0x7ecf280) returned failure for request: vtkInformation > (0x1c9cf730) > Debug: Off > Modified Time: 369530 > Reference Count: 1 > Registered Events: (none) > Request: REQUEST_DATA > FORWARD_DIRECTION: 0 > ALGORITHM_AFTER_FORWARD: 1 > FROM_OUTPUT_PORT: 0 > > Notably, after this happens the data in the entire pipeline is messed up. > Can someone point me to something that may be missing in my reader? > > Best regards, > > Adriano > > =================================== > > Adriano Gagliardi MEng PhD > Project Scientist > Computational Aerodynamics > Aircraft Research Association Ltd. > Manton Lane > Bedford > > Tel: 01234 32 4644 > E-mail: [email protected] > Url: www.ara.co.uk > > > --------------------------- > This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender. > Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons. > Aircraft Research Association Ltd. Registered in England, > Registration No 503668 Registered Office: Manton Lane, Bedford MK41 > 7PF England VAT No GB 196351245 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > --------------------------- This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender. Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons. Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
