Spaces:
Running
Running
rot
Browse files- gradio_demo.py +1 -1
gradio_demo.py
CHANGED
|
@@ -89,7 +89,7 @@ def mesh_gen(tmp_dir, simplify, num_inference_steps):
|
|
| 89 |
|
| 90 |
mesh = trimesh.load_mesh(f"{tmp_dir}/mesh.ply")
|
| 91 |
vertex_normals = mesh.vertex_normals
|
| 92 |
-
theta = np.radians(
|
| 93 |
cos_theta = np.cos(theta)
|
| 94 |
sin_theta = np.sin(theta)
|
| 95 |
rotation_matrix = np.array([
|
|
|
|
| 89 |
|
| 90 |
mesh = trimesh.load_mesh(f"{tmp_dir}/mesh.ply")
|
| 91 |
vertex_normals = mesh.vertex_normals
|
| 92 |
+
theta = np.radians(90) # Rotation angle in radians
|
| 93 |
cos_theta = np.cos(theta)
|
| 94 |
sin_theta = np.sin(theta)
|
| 95 |
rotation_matrix = np.array([
|