<div><div class="gmail_quote">On Tue, Dec 22, 2009 at 7:51 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br>
For the simple points reader I would be inclined to rework it using<br>
vtkParticleReader instead of vtkSimplePointsReader for the simple<br>
reason that that the vtkParticleReader class reads x,y,z and an<br>
optional scalar in both binary or ASCII format.<br>
<br>
Here is the link to a small converter I posted a while back:<br>
<a href="http://public.kitware.com/pipermail/vtk-developers/2007-October/004746.html" target="_blank">http://public.kitware.com/pipermail/vtk-developers/2007-October/004746.html</a><br>
<br>
Feel free to add this one to if you like it.<br>
<br>
<br>
Regards<br>
<font color="#888888">   Andrew<br>
</font><div><div></div><div class="h5"><br>
<br>
On Wed, Dec 23, 2009 at 12:04 AM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>> wrote:<br>
> On Mon, Dec 21, 2009 at 11:37 PM, Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Bill,<br>
>><br>
>> The guidelines look Ok, just one comment: Is there a reason for not<br>
>> specifying the std:: namespace? E.g. I just like to make it explicit<br>
>> that for example I am using std::cerr and not cerr.<br>
>><br>
>> If you would like it I am happy to submit an example that reads<br>
>> x,y,z, r,g,b,a point cloud data and produces a vtp file, I would call<br>
>> it ReadXYZRGBA. Just tell me where you would like it and I will write<br>
>> it up.<br>
>> It will demonstrate a templated parser that skips comments and how to<br>
>> create and fill a vtkPolyData structure.<br>
>> Users should be able to easily modify if for reading in x,y,z, scalar<br>
>> or x,y,z, scalar, r,g,b,a etc. I'll leave some hints in the code!<br>
>><br>
>>  Regards<br>
>>   Andrew<br>
><br>
> Andrew,<br>
><br>
> I have already added something similar -<br>
> <a href="http://www.cmake.org/Wiki/Read_a_delimited_file_into_a_polydata" target="_blank">http://www.cmake.org/Wiki/Read_a_delimited_file_into_a_polydata</a><br>
> <a href="http://www.cmake.org/Wiki/Read_a_simple_" target="_blank">http://www.cmake.org/Wiki/Read_a_simple_</a>"xyz"_file_of_points<br>
> though it is not templated. A templated version is welcome, but I'd leave<br>
> those simple examples, too, for the "non-c++ expert" type user that is<br>
> trying to use VTK.<br>
> Bill,<br>
> You have definitely captured my vision in this guideline, well written! I<br>
> agree to all points.<br>
> Thanks,<br>
><br>
> David<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
><br>
<br>
</div><div class="h5"><br></div></div></blockquote><div><br></div><div>Thanks Andrew, I added the example (simplified) here: <a href="http://www.cmake.org/Wiki/VTK/Examples/ReadXYZAFile">http://www.cmake.org/Wiki/VTK/Examples/ReadXYZAFile</a></div>
<div><br></div><div>David</div></div></div>