[vtk-developers] Examples Guidelines

David Doria daviddoria+vtk at gmail.com
Tue Dec 22 08:04:12 EST 2009


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_delimited_file_into_a_polydata>
http://www.cmake.org/Wiki/Read_a_simple_"xyz"_file_of_points<http://www.cmake.org/Wiki/Read_a_simple_%22xyz%22_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.
<http://www.cmake.org/Wiki/Read_a_simple_%22xyz%22_file_of_points>
Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091222/8018efc5/attachment.html>


More information about the vtk-developers mailing list