[Paraview] Isosurface and slicing with Catalyst in C++
Andy Bauer
andy.bauer at kitware.com
Wed Sep 2 15:01:37 EDT 2015
Hi Matthieu,
I would strongly recommend that you use a ParaView GUI generated Python
Catalyst pipeline script instead of hand-written C++ Catalyst pipeliine to
do what you want. There are a surprising amount of settings required to
output images from VTK. If you want to do that in parallel the complexity
goes up even more due to parallel compositing of the images. Everyone that
I've run across that wanted to avoid Python with their Catalyst
instrumented code quickly changed their mind after trying out the Python
generated scripts. The overhead of using Python really is negligible
compared to a pure C++ description of the Catalyst pipeline. Also, the
Catalyst Live and Cinema output are all driven by Python code as well.
The last and only time I tried doing rendering in parallel in VTK it took
me about 5 days and that was with constantly asking questions from other
people here at Kitware that knew how to do that.
That being said, if after reading this you're still set on doing all of
this in C++ then let us know and we'll see what can be done.
Regards,
Andy
On Wed, Sep 2, 2015 at 2:38 PM, Dorier, Matthieu <mdorier at anl.gov> wrote:
> Hi,
>
> I'm diving into Catalyst and try to build a pipeline in C++ for an simple
> example code. My use case is the following:
> I have a uniform 3D grid (converted into vtkImageData) on which I map a
> field of double values (wrapped into a vtkDoubleArray).
> By looking at the examples I managed to make the adaptor that creates the
> grid and maps the field on it. Now I would like to build pipelines for 2
> scenarios:
> - slicing the grid horizontally at a given level, apply a color map, and
> output the result in a PNG file;
> - building an isosurface from the 3d grid (with configurable isovalue) and
> print the result in a PNG file.
> In both cases I don't know which classes to look at in the Doxygen of VTK.
> Besides, I suppose for the second case there should be some concept of
> camera position and parameters...
>
> Any hint or examples would be appreciated.
> Thanks,
>
> Matthieu Dorier
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150902/ba11b151/attachment.html>
More information about the ParaView
mailing list