From d5dc8fb463167e6d27357746e87f1d6db2a5a2fd Mon Sep 17 00:00:00 2001 From: debloip Date: Mon, 5 Feb 2024 16:31:41 -0500 Subject: [PATCH] HYDRA-783 : Add degree 5 test --- .../curveControlVertices_degree5.png | Bin 0 -> 4375 bytes .../CurveToolsTest/curveEditPoints_degree5.png | Bin 0 -> 5993 bytes .../mayaUsd/render/mayaToHydra/testCurveTools.py | 8 ++++++++ 3 files changed, 8 insertions(+) create mode 100644 test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveControlVertices_degree5.png create mode 100644 test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveEditPoints_degree5.png diff --git a/test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveControlVertices_degree5.png b/test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveControlVertices_degree5.png new file mode 100644 index 0000000000000000000000000000000000000000..113f3a25506a82421ba97a6bdfe0c1612cad4fa7 GIT binary patch literal 4375 zcmeHL=U-Dxw@yMd6omjM2!bSlf``BnP$|+P9aKQikt(61NN*CPBp@h7NIW!=B8vV% z6RIZk9tZ-8fS?qEgeFbI&;#La&b{ybcK?CLugj-1whc#&fM$D6-7V<@g6iFP}W?vJpgDgw_b6g!#XiY-5TU-lu!^=4=FkaLHJ`uZ+U3 zKfAL1xIiD@1SUjB7jJ+;6_yYPCYb;t$)Z3nczHp;|EK%^U^KcnZzDlJQ>T!AdO8tm zx+&#WADYr8^mp24d$#sqPoHv4w~srh=;FBz8>%gV{`|&KCt@}09@6`B2W?k5Tlfvyt=_PF0(^OipI+;^~H~zy!h^kpXLs22_$N@Ph<{4Q zRG<2p?g{o*FxmUnl(1-)JSvd5Y}c^&T^9bp;d<}I%XZ0xmX|N93k6H1_SeC?4rxy} z_;?MUgj6&hE}Le-q48zwwAYXCDgQAmiwa#_9x+$*67#IkbvS)TMqVeL@G*ZmP$}Zn zr_m%njtIQ&8f!J(`6)L&-8pSiyME`#V6l}ClBZXeB^;9Wbnn;Ng9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git a/test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveEditPoints_degree5.png b/test/lib/mayaUsd/render/mayaToHydra/CurveToolsTest/curveEditPoints_degree5.png new file mode 100644 index 0000000000000000000000000000000000000000..96cf61db19ba5703c567f0be71cc243f44cd7030 GIT binary patch literal 5993 zcmeHrXE>bS)Bi4u)!F>CMA!sh2|*BvZX>MT5_Ol5=)GmNU`bY@L@$ZxL}#_tTL@Mc zVOJ1Di5f%?t32y_{onqt=Xw7;FXo*4nwc|m=5x<|X6_TAudBvLca;tR05EE(t2_n( zfN_@urY3Vj+V2mNCnj4{4LcnjA@U;td^rFBDJ%76?;~7 z4-Ng&H)on-Z5;h+ehO(nFH~TPhE7^QYzj>sCLrRFuGcP*b3iA`Dm`wOhJ{mw>06I_ zGv6l-ou1$PR`VYJNIiQwyA|v^d}xR=3JMaP`{n=1*6G7^@$_-V(V3|I#s1pZb%6Q0 zFp?JlaD_kt|6%<<`fo8fUMJE3#y1HMe0g1Ww%g9FF6Q@FOvJER-LZP-4J4PS#d!+~ z5H;(=IKf{N?mSu77?2s26-14a=o*saDW}O^d8Xf9qfK@fS>Zkid~ZwNv`gb&#ZM$tls7nO6U^e!yZX#Ch7_6r z>OTd64K+;%A7$TB3xQE#x&sPA6Dqt<&9lvQLq7M5(ng)O?vNHHsQOMpnleBN`j2nA zSCkqufT)t{UZuo#C41f0Hn~wQ{-?x8p$oO=5*n()%m3?WIDZ;;!Dsx+#MCvk<7h)s$V+(h_e@yx<8Q(^G6McW==F zmpF~sqS0)r@NO@xg+M(*!69qkyNa)LSM9v3)xG-`n_?t5&>w|iRYrz#b2N7XnJ&Y+-EUN?ro1$ z+tHVevtp(99jxf(^f}8Y>6{>v{lo?2hS$M!6V$Dmv0O z`ep`rf1^*B+vm=lHWt^6T87airz0hUo$iewQd7MamGZ7<#ENhY6 zZ&4E`%u2Ht)dVLMD&+^uoD?VQXJ!b|KG?~stJu`>9Acc9dmy)UB>%SXwhhMq?kx_Xj!nm@`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yt}U;3AJmYm zs;ybHgJV@)nh#+nEGmW21OnHLetRy$byY^4=cY8SjA$z$TN5R=ds*A+BCXtHq;-3pnVvRs7gA4cFy;_GbkcTTnx20A=AD9*@#z{zPO z?DnCYGko0+CH*i&Kf_ULBa!!aJ7-|@^+cn{>BhO-rjLfv?=(X6^V9R$Vi$#u>;jk4 zNU@pd7Ls9h8GhY^=O(OZ_MWzK=J-uRP`^YO(+W4KP%q0Zh#@Ts2(ygyvCX#8Q+(7l zl`z2lQPq|q@+~+n1F$yqC={YZmt4F*JFtXybD{ZGwI5#g& z13Z&1q!6H4o&YCleX$CVH#v&gXw}$Qn^u}meLAoJ0)I&p){m);!~k2#H&G*JFxp0T z0UrBoZu-|AsBKSe@fdt(NG1a>^sr-r`zGuOe0Qzt;sr*YV@xD=%KLfwa#s4|$Yb^vyXVHN|Zc_X&rweA}Xl_Zs>VhWu T=KKGDLk`eT)m6bNTfO=(n?as+ literal 0 HcmV?d00001 diff --git a/test/lib/mayaUsd/render/mayaToHydra/testCurveTools.py b/test/lib/mayaUsd/render/mayaToHydra/testCurveTools.py index 087bf1a3a2..17e894ab64 100644 --- a/test/lib/mayaUsd/render/mayaToHydra/testCurveTools.py +++ b/test/lib/mayaUsd/render/mayaToHydra/testCurveTools.py @@ -70,6 +70,10 @@ def test_CurveControlVertices(self): self.compareSnapshot("curveControlVertices_degree2.png") cmds.delete(curve) + curve = cmds.curve(point=self.POINTS, degree=5) + self.compareSnapshot("curveControlVertices_degree5.png") + cmds.delete(curve) + curve = cmds.curve(point=self.POINTS, bezier=True) self.compareSnapshot("curveControlVertices_bezier.png") cmds.delete(curve) @@ -87,6 +91,10 @@ def test_CurveEditPoints(self): self.compareSnapshot("curveEditPoints_degree2.png") cmds.delete(curve) + curve = cmds.curve(editPoint=self.POINTS, degree=5) + self.compareSnapshot("curveEditPoints_degree5.png") + cmds.delete(curve) + curve = cmds.curve(editPoint=self.POINTS, bezier=True) self.compareSnapshot("curveEditPoints_bezier.png") cmds.delete(curve)