Example #1
0
void Scene::load_mesh(const string& filename, const Mat4x4f& transform)
{
  cout << "Loading " << filename << endl;
  TriMesh* mesh = load_background_mesh(filename, transform);

  // Correct scene bounding box
  AABB mesh_bbox = mesh->compute_bbox();
  bbox.add_AABB(mesh_bbox);
}