obj Y to Z

This commit is contained in:
Pilar 2021-03-16 17:15:08 -04:00
parent 8f36b88571
commit d5170014c0

View File

@ -19,6 +19,9 @@ class Obj(Triangular):
for vertex in scene_dic['vertices']: for vertex in scene_dic['vertices']:
for i in range(0, 3): for i in range(0, 3):
vertex[i] -= reference_coordinates[i] 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']) scene = Trimesh(vertices=scene_dic['vertices'], faces=scene_dic['faces'])
obj_file = trimesh.exchange.obj.export_obj(scene) obj_file = trimesh.exchange.obj.export_obj(scene)
with open(file_path_out, 'w') as file: with open(file_path_out, 'w') as file: