create static method

Implementation

static Face2 create(VertexNode a, VertexNode b, VertexNode c) {
  var face = Face2();

  var e0 = HalfEdge(a, face);
  var e1 = HalfEdge(b, face);
  var e2 = HalfEdge(c, face);

  // join edges

  e0.next = e2.prev = e1;
  e1.next = e0.prev = e2;
  e2.next = e1.prev = e0;

  // main half edge reference

  face.edge = e0;

  return face.compute();
}