generic vector and bbox classes. computing bbox for models.