From d5170014c0e0809b2e7c238c1e6a78dcc4a5d720 Mon Sep 17 00:00:00 2001 From: Pilar Date: Tue, 16 Mar 2021 17:15:08 -0400 Subject: [PATCH] obj Y to Z --- exports/formats/obj.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exports/formats/obj.py b/exports/formats/obj.py index f3f572ed..3788c8c7 100644 --- a/exports/formats/obj.py +++ b/exports/formats/obj.py @@ -19,6 +19,9 @@ class Obj(Triangular): for vertex in scene_dic['vertices']: for i in range(0, 3): vertex[i] -= reference_coordinates[i] + aux_variable = vertex[1] + vertex[1] = vertex[2] + vertex[2] = aux_variable scene = Trimesh(vertices=scene_dic['vertices'], faces=scene_dic['faces']) obj_file = trimesh.exchange.obj.export_obj(scene) with open(file_path_out, 'w') as file: