read mesh and compute bounding box