← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] VRML export rewritten

 

----- Original Message -----

> From: jp charras <jp.charras@xxxxxxxxxx>
> To: Cirilo Bernardo <cirilo_bernardo@xxxxxxxxx>; Ki Cad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Cc: 
> Sent: Sunday, June 8, 2014 8:39 PM
> Subject: Re: [Kicad-developers] [PATCH]  VRML export rewritten
> 
> Le 08/06/2014 09:58, Cirilo Bernardo a écrit :
> 
>>   I have rewritten the VRML export code so it shares the VRML
>>  construction code used by the idf2vrml tool.
>> 
>>   A number of cosmetic rendering defects have been fixed. Some
>>  cosmetic rendering defects still exist, but these also existed
>>  in the older exporter. The good news is that I now know what
>>  triggers these defects and that the issue is somewhere in the
>>  GLU tesselator's polygon merging code. The bad news is that I
>>  still can't produce these defects on demand, but I will look
>>  into schemes to bypass the problems. One possibility is to use
>>  KiCad's polygon routines as 3DView does; 3DView doesn't exhibit
>>  the same artifacts as the VRML exporter.
>> 
>>  The patch is in the file kicad_vrml_export.patch available from:
>>  https://github.com/cbernardo/kicad-patches
>> 
>>  The export code has been tested on all the KiCad demo projects and
>>  produces results which are as good as or better than the earlier code.
>> 
>>  This patch also includes a trivial patch to the IDF exporter code.
>> 
>>  - Cirilo
> 
> Thanks, Cirilo.
> 
> I committed you patch.
> 
> Your last Kicad Vrml export is rather good  (using FreeCAD to see it).
> 
> 


Thanks Jean-Pierre,

 The newer code is based mostly on the old code. When I was working on
the idf2vrml tool I decided to clean up the code and try to fix a few
bugs; my plan was to replace the old code when I have finished the
idf tool and made improvements to the code. I'll continue to work on
removing the remaining artifacts so we have prettier results.

- Cirilo



References