RosettaCodeData/Task/Catmull-Clark-subdivision-surface/Mathematica/catmull-clark-subdivision-surface-3.math

6 lines
212 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
{points,faces}=PolyhedronData["Cube",{"VertexCoordinates","FaceIndices"}];
Function[iteration,
Graphics3D[(Polygon[iteration[[1]][[#]]]&/@iteration[[2]])]
]/@NestList[CatMullClark,{points,faces},3]//GraphicsRow