create static method

Implementation

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

  final e0 = HalfEdge(a, face);
  final e1 = HalfEdge(b, face);
  final 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();
}