compute method

ConvexHull compute()

Implementation

ConvexHull compute() {
  VertexNode? vertex;

  computeInitialHull();

  // add all available vertices gradually to the hull

  while ((vertex = nextVertexToAdd()) != null) {
    addVertexToHull(vertex!);
  }

  reindexFace2s();

  cleanup();

  return this;
}