From 8a5b7b0af062cf4a48847a72b98bdc72a3c359e1 Mon Sep 17 00:00:00 2001 From: YadiraF Date: Wed, 18 Jul 2018 20:42:30 +0800 Subject: [PATCH] change examples angles --- examples/7_generate_uv_map.py | 2 +- examples/results/uv_map/image.jpg | Bin 5279 -> 5157 bytes examples/results/uv_map/uv_position_map.jpg | Bin 3364 -> 3347 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/7_generate_uv_map.py b/examples/7_generate_uv_map.py index e048c8e..528d428 100644 --- a/examples/7_generate_uv_map.py +++ b/examples/7_generate_uv_map.py @@ -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 diff --git a/examples/results/uv_map/image.jpg b/examples/results/uv_map/image.jpg index e4a48eb0a5cc344b29fe18213f9118faddb2ddf4..efc62bd3d73d39347eaebf6dbc22160b483dfe74 100644 GIT binary patch delta 4176 zcmaKu`9IW)zsHA(k%YsLJ?D(VOtPl2FCAk>7~5E4EE#nSVGKg_u~!=FM6&N0%ZTh- zWM8xIWf^Ot6r#jE-JkBgkMHCD@cai}uh--Kd}m1)NWD@81MtDf$PYB&d<=z4V_>ib zIY!eOzAy0w)SG=BVQQbTR31L{J$CdkOuyoZEi;>q7=~4K=S(q$F`h1#F0}Vvt<7F^ zR5wjSYywaC#)IJ<@O7eaze|)49iHUv&{dT&F80Ut;x~f!bN$^ccUd|}n+M)ao|4HP z?0-P-3aVuR0s_A5~a**n)Xa!J!r; zfv3CF;IeSjl$#f>oG@c?_ExWoy2g6{y# z*H)#j$G2Y}>|Zo@C>h0bscErSf!VV&kL7OPJSqVaIgwgd<>VgRrA|>y8V-#JrY(as zyRObQb2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D-bp1X`G;_1C}SYBzKpLl zqPC@V&(rLj`?lnWD-`?B^sArGbZ|Q zRedxvFJ1QXX>`kS-^K<0(R6Brr)4LrvjBTinH!NtN;fBsxa^QH@?ZNhwB}V z_MX3;DXG3*!DNR02^g>NdCko-v|*+xKh65lX|997z~X)mN?Tl66o26^!Y&ZjilOP6 z&==Ur^AX$1XYy#_y^a5f^P(6dSrTY1wW5m>uUt!Yg~;U|6N!YwwVHb$GeYvYO43KA zdU}RcjzOTH>5{@)@L07S4qITN3964wGiGE>b7Z{!zubUXt$MS;`jpEWANcC{FCgxi zZD?ISe;TkY3B`r3(rj#_h0DdHi-m6bhs(H&-}I3fs5+PcZoNuTa8^)I5I_{w+!!Ku zhy0pII8mduWoS_Q;4)2#nz{OZfM76F*nddjOCdJjDYyQRufJ|E*|2U!I_Wf3o}1VA zroys85vN6T^k`UqG>G`;J9k`W7GPWN7cWwNYo|8PsP~ zys`l)%#xV4SjVH*?uR%xH5lVCcYm~a$SGXZB`^Z}?`!72uN>tS>dU7%|H=WRbzA#q zZ2zl{2=f%noY=+17U-KLhC0wTn*&HiB!D`k=3}GdEYpP7z`K*P2ec82giadxAmo;i zpPNOF8L~t?EPPG*3?&>;3G;XCXi#vo;12Sk2-(TOzdJCBqrAi%*Iv>hFFiJQMR_?N zjiE$Ksn z<@{m-S8cO>%|?dzUGk2j}Z8DI&0Avrx bv#!%6ikhVx^udLzY5V@E$B3Na@7(_Ygos2p diff --git a/examples/results/uv_map/uv_position_map.jpg b/examples/results/uv_map/uv_position_map.jpg index 38081351ef3c747cd8587071b4c5d5f5e1414c75..8c92270344a14614a8ebc69672650412a1b93c0d 100644 GIT binary patch literal 3347 zcmbVOYfw{X8cqV?60mFF1OcrrfkqBO#smsps6|M^EnISvqFi(|#F(H_5lV48+W`wM z9zrDzl^{)(kZ@7y4w6KuOvkn!YP+BYgoVI3G_v+GWu|PmU3c4#`<@f%?(DDKJq*J) z-}y+M=Xsy^dB3N#PZw$Hb0pak8l6s~(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