Get the bounding box of a mesh

In order to get the texture coordinates of a generative created mesh, i need to get the bounding box of it. Is there a preferred way to do it? or an helper in ofPrimitive?
Otherwise I will proceed keeping track of the growing axis position while creating the mesh.

Ok, I can self-answer my question. There is no helper in ofPrimitive, and this is the way to go for calculating a bounding box:

https://en.wikibooks.org/wiki/OpenGL_Programming/Bounding_box