Soren, If I get bold enough to try this, do I need to have source trees of both GRASS and VTK? And if so, do I need to have VTK compiled? I'm using a binary of Paraview but don't have VTK independent of that (AFAIK).
Also, do I need to put this anywhere in particular or will make install do it for me? Thanks Michael On Feb 14, 2012, at 1:17 PM, Sören Gebbert wrote: > Hi, > > 2012/2/14 Michael Barton <[email protected]>: >> Thanks Markus, >> >> But I don't quite understand how the bridge works. Do you run it from GRASS >> or ParaView, both or neither (i.e., from the terminal outside either >> program)? > > The vtk-grass-bridge is a C++ library and must be compiled. I did not > test the compilation on Windows or Mac, > but it should work ..... in theory. The library depends on VTK[1], > cmake[2] and of course on GRASS GIS 7. > A detailed compilation guide is available here: > http://code.google.com/p/vtk-grass-bridge/wiki/HowToCompile > > Once compiled, the C++ classes can be used together with VTK classes > in GRASS GIS Python modules. Hence, all the shiny data processing > algorithms available in ParaView can be used directly with GRASS GIS > raster, vector and raster3d. > Have a look at the Python examples[3, 4, 5, 6]. Since these modules > are regular GRASS "programs" they must be executed in a grass7 shell. > > [1] http://www.vtk.org/ > [2] http://www.cmake.org/ > [3] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/r3.gauss.smooth.py > [4] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/v.sample.rast.py > [5] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/r3.out.vtk2.py > [6] > http://code.google.com/p/vtk-grass-bridge/source/browse/trunk/Modules/Python/ > > Best regards > Soeren > >> >> Also, I assume it must be compiled. Do you (or someone) know if it has been >> compiled for Windows and Mac as well as Linux? >> >> Cheers >> Michael >> _____________________ >> C. Michael Barton >> Visiting Scientist, Integrated Science Program >> National Center for Atmospheric Research & >> University Consortium for Atmospheric Research >> 303-497-2889 (voice) >> >> Director, Center for Social Dynamics & Complexity >> Professor of Anthropology, School of Human Evolution & Social Change >> Arizona State University >> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu >> >> >> >> >> >> On Feb 14, 2012, at 11:21 AM, Markus Neteler wrote: >> >>> On Tue, Feb 14, 2012 at 7:13 PM, Michael Barton <[email protected]> >>> wrote: >>>> GRASS has r.out.vtk, v.out.vtk, and r3.out.vtk to export GRASS data to >>>> Paraview files. >>>> >>>> But how can I read Paraview files back into GRASS? >>> >>> Please see >>> http://grass.osgeo.org/wiki/GRASS_and_VTK >>> -> Import of VTK data into GRASS >>> >>> Markus >> >> _______________________________________________ >> grass-dev mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/grass-dev _____________________ C. Michael Barton Visiting Scientist, Integrated Science Program National Center for Atmospheric Research & University Corporation for Atmospheric Research 303-497-2889 (voice) Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Arizona State University www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
