I might like to explore scripting, and I'd like to understand mathematically how blender represents a closed shape. Is it a 3xN matrix, an Nx3 matrix? You can represent vertices as vectors, but how do you represent which ones are connected so as to form a closed surface? How do you tell a computer what "closed" means?