← Back to team overview

kicad-developers team mailing list archive

Re: 3D-Viewer new rendering and contributions.

 

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

> From: Mário Luzeiro <mrluzeiro@xxxxx>
> To: Nick Østergaard <oe.nick@xxxxxxxxx>
> Cc: "kicad-developers@xxxxxxxxxxxxxxxxxxx" <kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, July 31, 2014 3:48 AM
> Subject: Re: [Kicad-developers] 3D-Viewer new rendering and contributions.
> 
[snip]
> 

>>  I have problems with an older design, where the models are offset way
>>  too much. Some unit problem?
> 
> I notice in some models that I got in the web (ex: Walter) (you can see in my 

> first screenshots, in the SMD resistors) that they have added some offset in Z 
> coord. You see that they are "levitate" in the PCB board. I dont know 
> why they added it.


I have a tool to shift the coordinates in a VRML2 file; it was necessary because
some models have a large offset. I can't remember if the tool is in my VRML models
project though, but I can check. The tool also strips all Transforms and applies
them so that the output file has no more transforms; this was to keep KiCad happy
since KiCad didn't support non-unity Transforms.

I suspect one day I might create a Write() for the model parsers so that I can
improve the VRML export. In such a case I would also eliminate the Transforms;
for me there is no point in maintaining transforms unless we support the reuse
of coordinate lists and vertex indices. At the moment the presence of transforms
only increases processing time of the VRML file.

- Cirilo



Follow ups

References