[Paraview] Vector export in ParaView

Magician f_magician at mac.com
Mon Sep 24 11:54:58 EDT 2012


Hi Pieter,


There are two considerable issue.
Both of them are not faults of ParaView.
Your ParaView may be working good.

The first is anti-aliasing.
The edges of vector format graphics are smoothed with
some kind of anti-aliasing algorithm.
These algorithms usually can't treat contacts of
vector polygons exactly, so we can find tiny gaps.

# Usually two 50% transparent layers can't make a solid layer.
# If you have Photoshop or other Graphics softwares, let's try it.

The second is round-off errors between OpenGL and SVG.
General SVG exporters' precisions are 3 decimal places.
The lowest numbers may have some errors, so some polygons
do not keep contacts between themselves.


If I were you, I may write some scripts to merging
side-by-side polygons.
I think this is the most certain way.


Magician


On 2012/09/24, at 18:24, paraview-request at paraview.org wrote:

> Message: 3
> Date: Mon, 24 Sep 2012 11:16:02 +0200
> From: Pieter Barendrecht <p.j.barendrecht at student.tue.nl>
> Subject: Re: [Paraview] Vector export in ParaView
> To: "paraview at paraview.org" <paraview at paraview.org>
> Message-ID: <20120924111602.542fc1eb at student.tue.nl>
> Content-Type: text/plain; charset="utf-8"
> 
> Good to know! I attached the OBJ file and the exported SVG.
> 
> Best regards,
> Pieter
> 
> 
> On Mon, 24 Sep 2012 04:41:03 +0200
> David E DeMarle <dave.demarle at kitware.com> wrote:
> 
>> Small attachments are fine. Please also post images that show the gaps.
>> 
>> 
>> On Sunday, September 23, 2012, Pieter Barendrecht wrote:
>> Thanks David. I downloaded the source and compiled ParaView for my 32bit Arch Linux system (resulting in a directory with over 39.000 files totaling about 2 GB, I didn't expect it to be this extensive...!).
>> 
>> Using "File" ? "Export Scene..." it is possible to save the scene in a couple of different vector formats. Exporting to SVG works quite nicely, however, the exported polygons don't link together in a completely seamless way. That means that there is a very small gap between all of them. Is this behavior intended (i.e. is it a feature or a bug)?
>> 
>> I'm not sure what the policies are regarding attachments in this mailing list? If allowed I could attach the original .OBJ file, which is about 5 kB.
>> 
>> Best regards,
>> Pieter
>> 
>> 
>> On Fri, 21 Sep 2012 17:08:45 +0200
>> David E DeMarle <dave.demarle at kitware.com<javascript:;>> wrote:
>> 
>>> SVG export will be coming in PV4.0 for both scivis and chart views.
>>> 
>>> You can try it now by building git master, or more simply by
>>> downloading the nightly binary package from one of the machines in the
>>> superbuild section of the paraview dashboard at:
>>> http://open.cdash.org/index.php?project=ParaView
>>> 
>>> David E DeMarle
>>> Kitware, Inc.
>>> R&D Engineer
>>> 21 Corporate Drive
>>> Clifton Park, NY 12065-8662
>>> Phone: 518-881-4909
>>> 
>>> 
>>> On Fri, Sep 21, 2012 at 10:49 AM, Pieter Barendrecht
>>> <p.j.barendrecht at student.tue.nl<javascript:;>> wrote:
>>>> Hi,
>>>> 
>>>> I'm wondering what the possibilities are for exporting a model/design/geometry in vector format (preferably in SVG)? I read something about a patch written by Sven Buijssen, and supposedly there used to be a branch which included this patch (https://github.com/demarle/ParaView/branches/vector-graphics-export), but it appears not to be in use anymore.
>>>> 
>>>> Basically, I'd like to use it for two purposes:
>>>> 
>>>> 1.) Saving 3D models in vector format. I know SVG is 2D, so saving a 3D model as SVG would mean saving only a certain viewpoint. But this is fine, since I'll only use the vector images for reports and presentations.
>>>> 
>>>> 2.) Saving plots in vector format. Right now I use MATLAB to plot my data, and save it as SVG using a nice script from the MATLAB File Exchange. But I would be interested in using ParaView for this purpose as well, as long as I would be able to save the plots in vector format.
>>>> 
>>>> Best regards,
>>>> Pieter



More information about the ParaView mailing list