[vtkusers] Geometric object source examples

Bill Lorensen bill.lorensen at gmail.com
Sun Jan 3 15:46:32 EST 2010


I would vote against redundancy.  More files/pages to maintain. For
simple programs, just writing a file is good. Sample display programs
that read various types of files would be generally useful to look at
the results of the "write" examples. And paraview is also a great way
to look at the results and try various filters.

Bill


On Sun, Jan 3, 2010 at 3:24 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> Hi all,
>
> In the "Geometric Objects" section of the examples
> (http://www.cmake.org/Wiki/VTK/Examples#Geometric_Objects), you will
> notice quite a bit of redundancy between the "Display" section and the
> "Write to file" section. Let's take, for example, the Cube examples
> (http://www.cmake.org/Wiki/Cube and
> http://www.cmake.org/Wiki/VTK_Examples_Display_Cube). All of the
> "Display X" examples are actually demonstrating how to use
> vtkPolyDataMapper and setup a renderer/render window/interactor. It
> seemed much more compact to make a version of the example (simply
> "Cube" in this case) that did not have all of the display code, but
> rather simply wrote the object (the cube) to a file. As we start to
> move the wiki examples into the CVS, I think we should discuss this
> redundancy and the advantages and disadvantages of having it or
> removing it.
>
> With redundancy (a "write to file" example AND a display example)
> ------------
> * Display example - User can learn to use the vtk rendering classes at
> the same time as using the object source. User can feel instantly
> gratified by seeing a cube on the screen.
> * Write to file example - user may not be interested in actually using
> the VTK display functionality (which is the majority of the code in
> Display Cube), but would like to ensure their object has been created
> correctly so looking at the vtp file in paraview is the preferred
> method.
>
> Without redundancy (having only a Display Cube OR a "write to file Cube")
> -----------------
> * Fewer files (does this actually matter?)
> ?
>
> I'd like to gather some feedback on whether people would like to see
> one or both of these for all of the geometric object sources? If one,
> which one and why?
>
> Thanks,
>
> David
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list