CadQuery / cadquery

A python parametric CAD scripting framework based on OCCT
https://cadquery.readthedocs.io
Other
2.93k stars 276 forks source link

VRML Export - File extension #740

Open BrandonEscamilla opened 3 years ago

BrandonEscamilla commented 3 years ago

Hi Everyone,

I was trying to export a VRML file and I noticed that the file extension cadquery uses is .vrml but in other apps I've used VRML files with the filename extension as .wrl, I am wondering if this is intended, if so, Is there something I'm missing?

adam-urbanczyk commented 3 years ago

I don't have much experience with vrml so this might be non-standard. It is easy to change and you can specify any extension you like and force VRML output using exportType='VRML.

jmwright commented 2 years ago

You can set the file extension to whatever you want. Example here.

lorenzncode commented 2 years ago

I tested with 3 different viewers today. All recognized files with .wrl extension.

meshlab did not recognize VRML files with .vrml extension (the other two were dune, freewrl).

I'd suggest to reopen as an enhancement. The enhancement would be for exporters.export and assembly.save to check for "WRL" extension (in addition to "VRML").