<div dir="ltr">Thanks David!<div><br></div><div>Wish you could have made it. Next time perhaps.</div><div><br><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Thu, Apr 27, 2017 at 2:03 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@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">I just wanted to say that I was very excited to see this event! It seems like it's going well already - high five to all involved!<div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><div><div class="m_-1843136202141398138gmail_signature" data-smartmail="gmail_signature"><br>David</div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Thu, Apr 27, 2017 at 11:40 AM, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</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"><div>Hi,<br>although the example in this case does not seem too long to me, reaching a consensus in terms of what results in a too long code or an overly complicated example may be hard.<br><br>There is already some sort of regression/baseline testing if the test produces an output in terms of an image/file, right?<br><br>Without harm to the idea of steadily adding more tests to/improving the existing ones, if the examples are the entry-point for newcomers, I wouldn't add explicit regression in their code.<br><br>I'd favor the idea of making clear in the examples what is essential for a VTK class to be used. Otherwise, if a given class requires a couple or a few examples to show all of its potential or essential features, I'd add them as needed.<br><br></div>JON HAITZ<br><div><div class="gmail_extra"><br clear="all"><div><div class="m_-1843136202141398138m_-7811380157010000918gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><table style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium" cellspacing="0" cellpadding="0" border="0" align="center"><tbody><tr><td></td></tr></tbody></table><pre style="color:rgb(0,0,0);white-space:pre-wrap">--<br></pre></div></div></div></div></div></div></div></div></div></div><div><div class="m_-1843136202141398138h5"><div class="gmail_quote">On 27 April 2017 at 18:03, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>A thought on these tests -- I'd like to add minimal testing to some of them. The thought here being that we both show good coding practice as well as verify that the examples work as expected. The concern though is that this could make the examples too long and obfuscate what we're trying to demonstrate in an example. <br><br></div>Below is what I was thinking for the XMLPUnstructuredGridWriter example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter" target="_blank">http://www.vtk.org/Wiki/VTK/E<wbr>xamples/Cxx/IO/XMLPUnstructure<wbr>dGridWriter</a>). It roughly doubles the amount of lines in the example file.<br><br></div>Thoughts on this? At the VTK hackathon it seems to generally be thought of as a good idea but I thought I'd put it out to the full dev list.<br><br></div>Thanks,<br></div>Andy<br><div><div><br><div>================<br>#include <vtkDelaunay3D.h><br>#include <vtkSmartPointer.h><br>#include <vtkSphereSource.h><br>#include <vtkUnstructuredGrid.h><br>#include <vtkXMLPUnstructuredGridReader<wbr>.h><br>#include <vtkXMLPUnstructuredGridWriter<wbr>.h><br>#include <vtkXMLUnstructuredGridReader.<wbr>h><br><br>int main(int, char *[])<br>{<br>  vtkSmartPointer<vtkSphereSourc<wbr>e> sphereSource =<br>    vtkSmartPointer<vtkSphereSourc<wbr>e>::New();<br>  sphereSource->Update();<br><br>  vtkSmartPointer<vtkDelaunay3D> delaunay =<br>    vtkSmartPointer<vtkDelaunay3D><wbr>::New();<br>  delaunay->SetInputConnection(s<wbr>phereSource->GetOutputPort());<br>  delaunay->Update();<br><br>  vtkSmartPointer<vtkXMLPUnstruc<wbr>turedGridWriter> writer =<br>    vtkSmartPointer<vtkXMLPUnstruc<wbr>turedGridWriter>::New();<br>  writer->SetInputConnection(del<wbr>aunay->GetOutputPort());<br>  writer->SetFileName("Test.pvtu<wbr>");<br>  writer->SetNumberOfPieces(4);<br>  writer->SetStartPiece(0);<br>  writer->SetEndPiece(3);<br>  writer->Update();<br><br>  // We should have created a Test.pvtu and Test_[0-3].vtu.<br>  // Check that the files exist and have the expected number of cells.<br>  vtkSmartPointer<vtkXMLPUnstruc<wbr>turedGridReader> preader =<br>    vtkSmartPointer<vtkXMLPUnstruc<wbr>turedGridReader>::New();<br>  preader->SetFileName("Test.pvt<wbr>u");<br>  preader->Update();<br>  if (preader->GetOutput()->GetNumb<wbr>erOfCells() != 152)<br>  {<br>    cout << "Should have written out 152 cells but got "<br>         << preader->GetOutput()->GetNumbe<wbr>rOfCells() << endl;<br>    return EXIT_FAILURE;<br>  }<br>  for (int i=0;i<4;i++)<br>  {<br>    vtkSmartPointer<vtkXMLUnstruct<wbr>uredGridReader> reader =<br>      vtkSmartPointer<vtkXMLUnstruct<wbr>uredGridReader>::New();<br>    std::string fileName = "Test_" + std::to_string(i) + ".vtu";<br>    reader->SetFileName(fileName.c<wbr>_str());<br>    reader->Update();<br>    if (reader->GetOutput()->GetNumbe<wbr>rOfCells() != 38)<br>    {<br>      cout << "Should have written out 38 cells but got "<br>           << reader->GetOutput()->GetNumber<wbr>OfCells() << endl;<br>      return EXIT_FAILURE;<br>    }<br>  }<br>  return EXIT_SUCCESS;<br>}<br>=====================<br></div></div></div></div><div class="m_-1843136202141398138m_-7811380157010000918gmail-HOEnZb"><div class="m_-1843136202141398138m_-7811380157010000918gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 24, 2017 at 4:24 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dave,<br>
<br>
For those attending the hackathon I suggest they fork the VTK wiki<br>
examples repo at <a href="https://github.com/lorensen/VTKWikiExamples" rel="noreferrer" target="_blank">https://github.com/lorensen/VT<wbr>KWikiExamples</a> and build<br>
them.<br>
<br>
Also, I'd like to give a short talk at the beginning of the hackathon<br>
to describe the current wiki example background and mechanisms.<br>
<br>
Thanks,<br>
<br>
Bill<br>
<br>
<br>
On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle<br>
<div><div class="m_-1843136202141398138m_-7811380157010000918gmail-m_-5762440739425571520h5"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:<br>
> I've started a shared doc with some suggestions of things we might work on.<br>
> Please improve the list as you see fit.<br>
><br>
> <a href="https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0CBN78LM91yg7oaKgOZ8/edit?usp=sharing" rel="noreferrer" target="_blank">https://docs.google.com/docume<wbr>nt/d/1U6NTAXWkdebcZp_ZhQo2LJm0<wbr>CBN78LM91yg7oaKgOZ8/edit?usp=s<wbr>haring</a><br>
><br>
><br>
> David E DeMarle<br>
> Kitware, Inc.<br>
> R&D Engineer<br>
> 21 Corporate Drive<br>
> Clifton Park, NY 12065-8662<br>
> Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
><br>
> On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> Just a quick reminder about the upcoming VTK hackathon.<br>
>><br>
>> The focus area will be VTK examples. Two different sets of which can be<br>
>> found<br>
>> here:<br>
>> <a href="https://gitlab.kitware.com/vtk/vtk/tree/master/Examples" rel="noreferrer" target="_blank">https://gitlab.kitware.com/vtk<wbr>/vtk/tree/master/Examples</a><br>
>> and here:<br>
>> <a href="http://www.vtk.org/Wiki/VTK/Examples" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK/Ex<wbr>amples</a><br>
>><br>
>> We'll start at 9:30 EST time. If you happen to be near Clifton Park, NY,<br>
>> USA, drop me a line asap and I'll get you in to the building.<br>
>><br>
>> Otherwise you can meet up with everyone online here:<br>
>> <a href="https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle" rel="noreferrer" target="_blank">https://hangouts.google.com/ha<wbr>ngouts/_/kitware.com/dave-dema<wbr>rle</a><br>
>><br>
>> David E DeMarle<br>
>> Kitware, Inc.<br>
>> R&D Engineer<br>
>> 21 Corporate Drive<br>
>> Clifton Park, NY 12065-8662<br>
>> Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
><br>
><br>
<span class="m_-1843136202141398138m_-7811380157010000918gmail-m_-5762440739425571520HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
</font></span></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br></div>