In case you prefer using ParaView 3.10.1 and not the development version, here's a recipe to backport the patches (which are intended for the development version after the Collaboration branch merge) to 3.10.1. (To avoid confusion w.r.t. mail-induced line breaks the recipe as an attachment, not inline.)
Sven David E DeMarle wrote, On 05/02/11 14:49: > Please keep discussions on the mailing list so everyone can contribute > and benefit. > > Sorry I assumed git clone would obtain a particular branch from a url > directly, so my instructions were not detailed enough. > Try this command instead: > git clone --recursive -b vector-graphics-export > https://github.com/demarle/ParaView > > David E DeMarle > Kitware, Inc. > R&D Engineer > 28 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-371-3971 x109 > > > > On Sat, Apr 30, 2011 at 6:07 PM, Nima Emadi <deeep...@gmail.com> wrote: >> Thanks David, >> I've a problem when I do git clone. the error message is: >> fatal: >> https://github.com/demarle/ParaView/branches/vector-graphics-export/info/refs >> not found: did you run git update-server-info on the server? >> >> Am I doing something wrong? >> >> Best, >> Nima >> >> >> On Fri, Apr 29, 2011 at 8:49 PM, David E DeMarle <dave.dema...@kitware.com> >> wrote: >>> >>> I've just pushed Sven's patches to github. >>> >>> You can git clone from: >>> https://github.com/demarle/ParaView/branches/vector-graphics-export >>> To get it. >>> >>> And then build from source. >>> When you do, turn on VTK_USE_GL2PS in cmake. >>> >>> Once built, save screen shot will have new ps, eps and svg vector >>> graphic formats. >>> >>> Thanks for the patch Sven! >>> >>> David E DeMarle >>> Kitware, Inc. >>> R&D Engineer >>> 28 Corporate Drive >>> Clifton Park, NY 12065-8662 >>> Phone: 518-371-3971 x109 >>> >>> >>> >>> On Fri, Apr 29, 2011 at 1:00 PM, Nima Emadi <deeep...@gmail.com> wrote: >>>> Sven, >>>> Could you please give me instruction on how to use of your patch in >>>> order to >>>> export vector images? >>>> >>>> Thanks, >>>> Nima >>>> >>>> On Wed, Apr 13, 2011 at 5:57 PM, Nima Emadi <deeep...@gmail.com> wrote: >>>>> >>>>> Apparently Paraview does not generate vectorial images at the moment. >>>>> >>>>> Would it be possible to generate such an image by first exporting to a >>>>> 3D format (like POV or X3D) and then converting the scene to a >>>>> vectorial format using another application? any suggestion ...? >>>>> >>>>> Best, >>>>> Nima >>>>> >>>>> On Thu, Mar 31, 2011 at 3:51 PM, David E DeMarle >>>>> <dave.dema...@kitware.com> wrote: >>>>>> Sven, >>>>>> >>>>>> Despite the limitations, would you please push that patch to github? >>>>>> Once there distribution, upkeep and maintenance will be easier. >>>>>> >>>>>> thanks, >>>>>> >>>>>> David E DeMarle >>>>>> Kitware, Inc. >>>>>> R&D Engineer >>>>>> 28 Corporate Drive >>>>>> Clifton Park, NY 12065-8662 >>>>>> Phone: 518-371-3971 x109 >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Mar 31, 2011 at 8:23 AM, Sven Buijssen >>>>>> <sven.buijs...@tu-dortmund.de> wrote: >>>>>>> Hi, >>>>>>> >>>>>>> I happen to have a small patch for the git master branch that adds >>>>>>> vector >>>>>>> graphics output (EPS, PS and SVG) to the Save Screenshot dialog and >>>>>>> uses >>>>>>> vtkGL2PSExporter as a backend, too. Actually, it's just an updated >>>>>>> version of >>>>>>> the patch for this matter I posted on this list back in 2007. But as >>>>>>> holds for >>>>>>> the Python approach it has a few drawbacks: >>>>>>> >>>>>>> * Only 3D View support >>>>>>> * Builtin mode and client/server mode support (but using merely 1 >>>>>>> server >>>>>>> process, empty file when using more) >>>>>>> * No support for Manta/EyeDom/other views >>>>>>> * No multi-view support >>>>>>> * No support for mandelbrot source >>>>>>> * No support for text/annotate time source (a rectangular box is >>>>>>> drawn >>>>>>> instead), >>>>>>> one can resort to a 3D Text source, though >>>>>>> * No support for Volume rendering >>>>>>> * No support for Slice representation (try Surface representation of >>>>>>> a >>>>>>> slice >>>>>>> filter output) >>>>>>> * No support for PointSprite representation >>>>>>> * No support for SurfaceLIC representation, even crashes ParaView on >>>>>>> export >>>>>>> * In display tab of object inspector, "Interpolate scalars" needs to >>>>>>> be >>>>>>> ticked >>>>>>> off for every visible object; otherwise object is rendered gray >>>>>>> (see http://www.vtk.org/Bug/view.php?id=1630) >>>>>>> * Requires an old version of the colorbar implementation or colorbar >>>>>>> will be >>>>>>> rendered gray >>>>>>> >>>>>>> So, don't get your hopes up too much about vtkGL2PSExporter. >>>>>>> >>>>>>> Sven >>>>>>> >>>>>>> >>>>>>> Hom Nath Gharti wrote, On 03/31/11 14:05: >>>>>>>> You might try to run the script below to see if your image quality >>>>>>>> is >>>>>>>> good >>>>>>>> enough to use vtkGL2PSExporter >>>>>>>> >>>>>>>> rw=GetActiveView().GetRenderWindow() >>>>>>>> exp=paraview.vtk.vtkInstantiator.CreateInstance('vtkGL2PSExporter') >>>>>>>> exp.SetRenderWindow(rw) >>>>>>>> exp.SetDrawBackground(0) >>>>>>>> exp.SetSortToSimple() >>>>>>>> exp.SetFileFormatToEPS() >>>>>>>> exp.SetFilePrefix("test") >>>>>>>> #exp.Write3DPropsAsRasterImageOn() >>>>>>>> exp.Write() >>>>>>>> >>>>>>>> On Wed, Mar 30, 2011 at 6:41 PM, David E DeMarle >>>>>>>> <dave.dema...@kitware.com >>>>>>>> <mailto:dave.dema...@kitware.com>> wrote: >>>>>>>> >>>>>>>> Sorry, ParaView doesn't have true vector graphics output. >>>>>>>> Please >>>>>>>> add >>>>>>>> your vote to the existing user voice request for it. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> (http://paraview.uservoice.com/forums/11350-general/suggestions/313565-add-vector-graphics-output-i-e-postscript-?ref=title) >>>>>>>> >>>>>>>> The pdf writer in ParaView uses Qt to write a raster image. >>>>>>>> VTK's >>>>>>>> vtkGL2PSExporter is not exercised by ParaView at all and it is >>>>>>>> likely >>>>>>>> not to support many of our rendering techniques if it was added >>>>>>>> as >>>>>>>> an >>>>>>>> new exporter option. 2D views are more likely to be supported, >>>>>>>> but >>>>>>>> we >>>>>>>> haven't yet had the time to do so. >>>>>>>> >>>>>>>> David E DeMarle >>>>>>>> Kitware, Inc. >>>>>>>> R&D Engineer >>>>>>>> 28 Corporate Drive >>>>>>>> Clifton Park, NY 12065-8662 >>>>>>>> Phone: 518-371-3971 <tel:518-371-3971> x109 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Fri, Mar 25, 2011 at 10:00 AM, Nima Emadi >>>>>>>> <deeep...@gmail.com >>>>>>>> <mailto:deeep...@gmail.com>> wrote: >>>>>>>> > Dear all, >>>>>>>> > I'd like to export a paraview vector field plot into a >>>>>>>> vectorial >>>>>>>> image >>>>>>>> > format (e.g. eps) to generate high quality images which are >>>>>>>> not >>>>>>>> huge >>>>>>>> > in size for publication purposes. >>>>>>>> > I already compiled paraview 3.10 with gl2ps=on. So according >>>>>>>> to >>>>>>>> old >>>>>>>> > messages in the email list I should be able to save vectorial >>>>>>>> images. >>>>>>>> > Could anybody give me instructions how to do that? >>>>>>>> > >>>>>>>> > Thanks, >>>>>>>> > Nima. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>>> >>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>> http://www.paraview.org/mailman/listinfo/paraview >>>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://www.paraview.org/mailman/listinfo/paraview >>>>>> >>>> >>>> >> >> > _______________________________________________ > 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 > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview
wget http://www.paraview.org/files/v3.10/ParaView-3.10.1.tar.gz tar -xzf ParaView-3.10.1.tar.gz wget --no-check-certificate https://github.com/demarle/ParaView/commit/de96b0eac2b38b6f44872a91a7f8a836762a47a1.patch -O 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch sed -i -e '10s/applicable to the ParaView Collaboration branch as of/applicable to ParaView 3.10.1 and PV git until/' 0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch wget --no-check-certificate https://github.com/demarle/ParaView/commit/8b498fde544e3dde5061d83d5bc90edf95776371.patch -O 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch sed -i -e 's,ParaViewCore/VTKExtensions/,Servers/Filters/,g' 0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch cd ParaView-3.10.1 patch -p1 < ../0001-ENH-Patches-to-add-vectorgraphics-Postscript-output-.patch patch -p1 < ../0002-BUG-Revert-PVScalarBarActor-to-pre-November-2008-ver.patch cd .. mkdir build && cd build cmake ../ParaView-3.10.1 -DVTK_USE_GL2PS:BOOL=ON make
_______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview