Added Dockerfile and refined the code

This commit is contained in:
Justin John
2024-03-07 21:33:09 +05:30
parent 2ac83fa562
commit 2931258e50
4 changed files with 178 additions and 146 deletions
-1
View File
@@ -470,6 +470,5 @@ def save_video(
def to_gradio_3d_orientation(mesh):
mesh.apply_transform(trimesh.transformations.rotation_matrix(-np.pi/2, [1, 0, 0]))
mesh.apply_scale([1, 1, -1])
mesh.apply_transform(trimesh.transformations.rotation_matrix(np.pi/2, [0, 1, 0]))
return mesh