说画就画
ClearAll["Global`*"]; x = Pi;
rotateMeHarder1[g_, vertical_, viewpoint0_, center_List: {0, 0, 0},nframes_Integer: 15, opts : OptionsPattern[]] :=
Module[{grlist}, grlist = Table[Show[g, ViewVertical -> vertical, ViewVector -> {RotationMatrix[2 Pi/nframes i,vertical].(viewpoint0 - center) + center, center}, SphericalRegion -> True, opts], {i, 0, nframes - 1}]]
p = Graphics3D[#, Boxed -> False, ImageSize -> 350] &@
NestList[Rotate[#, x/4, {x, -x, x}] &, Ball[Table[{Cos@t - Cos[100 t] Sin@t, .5 Sin@t - Sin[100 t], t}, {t, 0, x/2, .001}], .06], 7];
list = rotateMeHarder1[p, {1, -1, 1}/8, 3 {x, -x, x/2}/2, {2, 5, 2}/5, 20, ViewAngle -> 50 Degree];
Export["PearlJewellery.gif", list]
结果:
参考了这里的代码:
版权声明:本文为博主原创,转载请注明出处。
原文地址:http://blog.csdn.net/stereohomology/article/details/46876257