Recursive Sierpinski triangle (just a bit of fun)

Odd. It’s just that it complained my post was too short.

Anyway, my tetrahedron wasn’t quite symmetrical it turns out. The top was a bit off :flushed:

Brushed up a bit on geometry, hoping this is better:

// 3D Sierpinski tetrahedron vertices
PVector [] coord = {
  new PVector(   0, 0, 0), 
  new PVector( 300, 0, 0), 
  new PVector( 150, 0, -260), 
  new PVector( 150, -245, -86.6)
};

// "random" start point (mid point)
PVector startPoint = new PVector(150, 183.7, 173.2);

Tried to keep startPoint in the middle, which it now should be (after translating it into view).