本帖最后由 hbghlyj 于 2024-11-12 20:34 编辑 - Manipulate[ConvexHullMesh[Drop[RotationMatrix[{{1,1,1,1},{0,0,0,1}}].#[[1,1]],-1]&/@Table[RegionIntersection[Line[i],Hyperplane[{1,1,1,1},d]],{i,Tuples[{IdentityMatrix[4],-IdentityMatrix[4]}]}]],{d,-1,1}]
复制代码
- Export["anim.gif",Table[Graphics3D[{Opacity[.7],GraphicsComplex[{{0,0,t},{0,t,0},{t,0,0},{1-t,1,0},{1,1-t,0},{1,1,t},{1,0,1-t},{1-t,0,1},{1,t,1},{t,1,1},{0,1,1-t},{0,1-t,1}},Polygon[{{1,2,3},{4,5,6},{7,8,9},{10,11,12},{1,2,11,12},{1,3,7,8},{2,3,5,4},{5,6,9,7},{4,6,10,11},{8,9,10,12},{1,8,12},{2,4,11},{6,9,10},{3,5,7}}]]}],{t,0,1,0.05}],"DisplayDurations"->0.2]
复制代码 |