# \[GIF\] Give Me Some Space (Rectification of the Tetrahedron)

**URL:** <https://community.wolfram.com/t/gif-give-me-some-space-rectification-of-the-tetrahedron/9611>\
**Category:** Staff Picks\
**Tags:** computational-arts, curated-data, geometry, graphics-and-visualization, interface-construction, staff-pick\
**Created:** [November 12, 2016, 10:31pm UTC](https://community.wolfram.com/t/gif-give-me-some-space-rectification-of-the-tetrahedron/9611 "2016-11-12T22:31:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![claytonshonkwiler](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/claytonshonkwiler/32/24940_2.png) [@claytonshonkwiler](https://community.wolfram.com/u/claytonshonkwiler)\
**Post date:** [November 12, 2016, 10:31pm UTC](https://community.wolfram.com/t/gif-give-me-some-space-rectification-of-the-tetrahedron/9611/1 "2016-11-12T22:31:03Z")

</div>

![assemble23r.gif](https://global.discourse-cdn.com/wolfram/original/3X/b/c/bcd2c99d021687206eb3b37bb003d2e680c9e5cb.gif)

**Give Me Some Space**

No fancy math in this one.

If you [rectify](https://en.wikipedia.org/wiki/Rectification_(geometry)) the tetrahedron (meaning cut off each corner with a plane passing through the midpoint of each incident edge) you get the octahedron, and the corners you cut off are smaller tetrahedra. This GIF just illustrates the decomposition of the tetrahedron into the octahedron and the four smaller tetrahedra with some movement and color to emphasize what’s going on.

Code:

```
smootheststep[t_] := -20 t^7 + 70 t^6 - 84 t^5 + 35 t^4;

DynamicModule[{hedron = "Tetrahedron", v, e, n, ov, oe, s, r, cols},
 v = PolyhedronData[hedron, "VertexCoordinates"];
 e = PolyhedronData[hedron, "Edges"][[2]];
 n = Length[v];
 ov = RotationTransform[?/12, {0, 0, 1}] /@ 
   PolyhedronData["Octahedron", "VertexCoordinates"];
 oe = PolyhedronData["Octahedron", "Edges"][[2]];
 cols = RGBColor /@ {"#FEFFFE", "#FF6663", "#E0FF4F", "#0B3954"};
 Manipulate[
  s = smootheststep[t];
  r = smootheststep[1 - Abs[1 - 2 t]];
  Graphics3D[
   {Thickness[.004],
    Blend[cols[[1 ;; 2]], r],
    Table[{GraphicsComplex[(1/2 + r/2) v[[i]] + RotationTransform[2 ?/3 s, v[[i]]][#] & /@ (v/2), e]},
     {i, 1, Length[v]}],
    Blend[cols[[{1, 3}]], r], 
    GraphicsComplex[
     RotationTransform[ArcCos[4/7] + ? s, 
       Cross[{Cos[?/3], Sin[?/3], 0}, {0, 0, 1}]][1/2 ov], oe]},
   Boxed -> False, ImageSize -> {540, 540}, PlotRange -> 2.5, 
   ViewPoint -> 10 {Cos[2 ?/3], Sin[2 ?/3], 0.712}, 
   ViewAngle -> ?/120, ViewVertical -> {0, 0, 1}, 
   SphericalRegion -> True, Lighting -> "Neutral", 
   Background -> cols[[-1]]],
  {t, 0, 1}]
 ]

```

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [November 18, 2016, 1:48pm UTC](https://community.wolfram.com/t/gif-give-me-some-space-rectification-of-the-tetrahedron/9611/2 "2016-11-18T13:48:34Z")

</div>

![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)

- another post of yours has been selected for the [Staff Picks](http://community.wolfram.com/content?curTag=staff+picks) group, congratulations! We are happy to see you at the top of the [“Featured Contributor” board](http://wolfr.am/featured). Thank you for your wonderful contributions, and please keep them coming!
