Hi,

On Thu, 22 Sept 2022 at 15:59, Mario Luzeiro wrote:
>
> Hi Mojca,
> I can clarify some of the points
>
> >  there is a field to enter the scale, but pipelines refuse to accept 
> > "scaled models").
>
> You can manually adjust it on the scale of KiCad, or you can edit your file 
> to make that scale
> You can also create a file to inline another wrl file, and then apply the 
> desired scale, example
> Transform { translation 0 0 0 scale 0 0 0 children [ Inline { url "file.wrl" 
> } ] }

I'm not sure if I really understood all of the suggestions listed
here, but let me try to paraphrase it in a slightly different way.

For example, I have entered parameters for creating a nice 3D package of a LED:
    
https://gitlab.com/kicad/libraries/kicad-packages3D-generator/-/merge_requests/35/diffs

(From what I understood there are two ways to render the packages: a
legacy one and a new one, based on the unreleased version of CadQuery
2.x. Maybe the old/legacy one creates better models, but I didn't
manage to figure out how to run it.)

The STEP model that I get out of the new code is "perfect", while the
VRML model is rendered too big (I'm ignoring the wrong face
orientation problem for now, hoping that CadQuery authors will
eventually fix it). I would eventually like to see the generated 3D
package end up in the 3D package repository, but I'm not sure how
"manually adjusting it on the scale of KiCad" can help me achieve
this. (I'm also not sure which option that is; the one I tried to use
will get rejected by the CI job, and also doesn't help much because
the scaling should only be applied to VRML, not to STEP in case I use
"automatic replacement" functionality at export time.)

I'm no longer sure, but somewhere in the back of my head I have a
feeling that KiCad already switched from inch-based units to
millimeters for storing the footprint libraries during the transition
to the new format.
One of my questions is basically: is there any chance that millimeters
ever become "first-class citizens" for VRML files as well? (I've seen
some rumours about cadquery potentially becoming more tightly
integrated with KiCad which might eventually eliminate the need to
store VRML models in the database in the first place, but that's
probably still a while ahead even if I understood that correctly.)

>> 4.) There seems to be a bug with 3D VRML models from cadquery. I'm not
>> yet sure if the one to blame is KiCad or cadquery, but I submitted a
>> bug report that should hopefully lead to some proper diagnosis and
>> finally a fix.
>
> I comment already, I found that it is a problem with the triangle winding 
> orientation of the model.
> This should be fixed on the model side.

I opened a bug report in CadQuery. Thank you.

> > and I didn't manage to find any suitable way for conversion (FreeCAD 
> > doesn't know how to convert VRML into STEP).
>
> You can't (or shouldn't) convert it, because VRML is a non-CAD file format. 
> Have a look at:
> https://forum.kicad.info/t/what-is-the-difference-between-step-and-wrl-3d-models/17346

Thank you, this piece of FAQ was super super helpful.

On Thu, 22 Sept 2022 at 16:04, Kliment (Future Bits) wrote:
>
> To add to this, for parts that have both a wrl and STEP model, if the
> wrl model is enabled there is a checkbox in the STEP exporter to replace
> similarly-named files, which then uses the same-name STEP for the
> export. That's the easiest way to export STEP while WRL is enabled for
> the display.
> Mario

Thank you, I failed to realize that there was a special option for
this. I might have seen it, but in case I did, I wasn't sure what it
meant.

(I should have found
https://forum.kicad.info/t/v6-step-3d-model-export-missing-components-or-completely-empty-board-is-exported/33847
earlier.)

I can no longer find the relevant blog post that misled me, but the
one I found earlier was suggesting to use VRML export instead of STEP
to overcome the problem with the missing components, and I blindly
believed that suggestion

Humble question/request: would it be possible to turn that option into
a default one in KiCad 7?
Is there any reason why average users wouldn't want this option to be turned on?

Thank you,
    Mojca

-- 
You received this message because you are subscribed to the Google Groups 
"KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to devlist+unsubscr...@kicad.org.
To view this discussion on the web visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/CALBOmsY9_RXRmBq5UZK9UMDch8Z6HMUBJ3-8cM%2BrQD-9GmRA1Q%40mail.gmail.com.

Reply via email to