# Technique for drawing polyhedron cutaway

Here is a graphic I drew with an earlier version of Mathematic (probably version 6) which I no longer have available: At the time Polyhedra was an external package, and I produced the cut-away by truncating a list of component polyhedra of the truncated icosahedron before drawing.

Recent versions of Mathematica have an entirely different (and now integrated) set of polyhedron functions, that look nothing like what I used before. Can anyone suggest a strategy for redrawing this figure now?

• Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Michael E2 Aug 9 '16 at 0:39
• I guess you're referring to PolyhedronData["TruncatedIcosahedron"]? – Michael E2 Aug 9 '16 at 0:42
• Do you still have the old code, at least? Can you elaborate on how you "truncat(ed) a list of component polyhedra of the truncated icosahedron"? – J. M. will be back soon Aug 9 '16 at 4:42

SeedRandom; (* for reproducibility *)
With[{poly = PolyhedronData["TruncatedIcosahedron"] /.
Polygon[pp_] :> Polygon[RandomSample[pp, 24]]},
r1 = 1,                   (* input: r1 = inner boundary vertex distance *)
r2 = 2},                  (* input: r2 = outer boundary vertex distance *)
With[{pts = First@Cases[poly,
GraphicsComplex[p_, e__] :> Flatten[{p *(r1/r0), p*(r2/r0)}, 1],
Infinity]},
Graphics3D[GraphicsComplex[pts,
{EdgeForm[], Lighter@ColorData[97, 2],
Cases[poly, Polygon[p_] :> Polygon@Join[p, p + Length[pts]/2], Infinity],
Cases[poly,
Polygon[p_] :> Polygon[
Flatten[
Join[#, Reverse@# + Length[pts]/2] & /@ Partition[#, 2, 1, 1] & /@ p,
1]],
Infinity]}
], PlotRange -> All, Options[poly]]]]] 