when exporting meshes using Rhino.FileIO.FileObj.Write using the overload which uses an Array of Rhino.Geometry.Mesh, the following write option seems to be ignored:
obj_options.MapZtoY = True
Meshes in the resulting obj file always are in the same orientation regardless of the MapZtoY value. If i export the whole scene instead, the MapZtoY value is correct.
Hi @tim, i’m sorry but your recent fix with the obj export goofed up the geometry orientation for the obj export. To repeat this, (using the Release Candidate version (8.16.25021.13001, 2025-01-21), please use below steps, no scripting is required:
Select eg. a planar mesh in the XY plane and export to obj
In the export dialog, enable “Map Rhino Z to OBJ Y”
Click OK to export
Import the obj file back to Rhino
In the import dialog, enable “Map OBJ Y to Rhino Z”
the result is that the imported mesh comes in with the wrong orienation, even when you do not make step 5, the orientation is wrong. So to conclude, the axis swap you do on export is not the inverse axis swap you do on import.
I can repeat the same error when i export using Rhino.FileIO.FileObj.Write with the option obj_options.MapZtoY = True.
Hi @tim, yes this version works, either manually export/import or using the API. When will this build be official ? (Just so i can tell the client to update).
It looks like 8.16 is scheduled for release on February 11, 2025. At the same time a release candidate for 8.17 will be available too. So it will be available on the 11th (as a release candidate) but it won’t be officially released until March 11, 2025. If that’s too far out let me know and I’ll see if it’s possible to get RH-85534 and RH-85535 into 8.16.
Thanks Tim, I just ran into the same problem with .obj export axis mapping and scratched my head for a bit.
Pleased to report that 8.16 release candidate has fixed that issue