cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

VRML Export - File extension

Open BrandonEscamilla opened this issue 4 years ago • 3 comments

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?

BrandonEscamilla avatar Apr 22 '21 15:04 BrandonEscamilla

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.

adam-urbanczyk avatar Apr 22 '21 20:04 adam-urbanczyk

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

jmwright avatar Apr 21 '22 10:04 jmwright

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").

lorenzncode avatar Apr 28 '22 02:04 lorenzncode