Builds the axis-aligned rectangle spanning two opposite corners.
Builds the triangle over three vertices in traversal order.