When getting the vertices of an H3 cell using H3toGeoBoundary
, how many possible vertex configurations can the GeoBoundary
struct produce? I count four:
Is this list exhaustive or can other configurations exist? Would it also ever produce 0?
Your list is missing the 8 vertices case. Rather than using the generic term "irregular", it's more accurate to consider extra distortion vertices: At odd resolutions, cell edges that cross an edge of the icosahedron will have additional distortion vertices added to account for the change in projection plane (at even resolutions, the cells are aligned with the icosahedron edges and do not require this). With that explanation, the list looks like this:
Note that we still use "pentagon" and "hexagon" to describe these cells, because that's still topologically correct (a pentagon always has 5 neighbors, a hexagon always has 6).