[vtk-developers] Examples Guidelines
andrew.amaclean at gmail.com
Wed Dec 23 16:06:07 EST 2009
Thanks for doing this. This examples area is going to be really good!
Have a Merry Christmas and a Very Happy New Year.
On Thu, Dec 24, 2009 at 7:02 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Tue, Dec 22, 2009 at 7:51 PM, Andrew Maclean <andrew.amaclean at gmail.com>
>> Hi David,
>> For the simple points reader I would be inclined to rework it using
>> vtkParticleReader instead of vtkSimplePointsReader for the simple
>> reason that that the vtkParticleReader class reads x,y,z and an
>> optional scalar in both binary or ASCII format.
>> Here is the link to a small converter I posted a while back:
>> Feel free to add this one to if you like it.
>> On Wed, Dec 23, 2009 at 12:04 AM, David Doria <daviddoria+vtk at gmail.com>
>> > On Mon, Dec 21, 2009 at 11:37 PM, Andrew Maclean
>> > <andrew.amaclean at gmail.com>
>> > wrote:
>> >> Hi Bill,
>> >> The guidelines look Ok, just one comment: Is there a reason for not
>> >> specifying the std:: namespace? E.g. I just like to make it explicit
>> >> that for example I am using std::cerr and not cerr.
>> >> If you would like it I am happy to submit an example that reads
>> >> x,y,z, r,g,b,a point cloud data and produces a vtp file, I would call
>> >> it ReadXYZRGBA. Just tell me where you would like it and I will write
>> >> it up.
>> >> It will demonstrate a templated parser that skips comments and how to
>> >> create and fill a vtkPolyData structure.
>> >> Users should be able to easily modify if for reading in x,y,z, scalar
>> >> or x,y,z, scalar, r,g,b,a etc. I'll leave some hints in the code!
>> >> Regards
>> >> Andrew
>> > Andrew,
>> > I have already added something similar -
>> > http://www.cmake.org/Wiki/Read_a_delimited_file_into_a_polydata
>> > http://www.cmake.org/Wiki/Read_a_simple_"xyz"_file_of_points
>> > though it is not templated. A templated version is welcome, but I'd
>> > leave
>> > those simple examples, too, for the "non-c++ expert" type user that is
>> > trying to use VTK.
>> > Bill,
>> > You have definitely captured my vision in this guideline, well written!
>> > I
>> > agree to all points.
>> > Thanks,
>> > David
>> > _______________________________________________
>> > Powered by www.kitware.com
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtk-developers
> Thanks Andrew, I added the example (simplified)
> here: http://www.cmake.org/Wiki/VTK/Examples/ReadXYZAFile
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Follow this link to subscribe/unsubscribe:
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney 2006 NSW
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
More information about the vtk-developers