Skip to content

Commit

Permalink
change examples angles
Browse files Browse the repository at this point in the history
  • Loading branch information
yfeng95 committed Jul 18, 2018
1 parent a70f2f2 commit 8a5b7b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/7_generate_uv_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def process_uv(uv_coords, uv_h = 256, uv_w = 256):
colors = colors/np.max(colors)
# --modify vertices(transformation. change position of obj)
s = 180/(np.max(vertices[:,1]) - np.min(vertices[:,1]))
R = mesh.transform.angle2matrix([0, 30, 0])
R = mesh.transform.angle2matrix([-10, -35, 20])
t = [0, 0, 0]
transformed_vertices = mesh.transform.similarity_transform(vertices, s, R, t)
# --load uv coords
Expand Down
Binary file modified examples/results/uv_map/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/results/uv_map/uv_position_map.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a5b7b0

Please sign in to comment.