Skip to content
Snippets Groups Projects
Commit 1806b7cb authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'boundingBoxTest' into 'master'

uses correct function now

See merge request !3
parents 0e4827dd 71f2d156
No related branches found
No related tags found
1 merge request!3uses correct function now
......@@ -71,10 +71,10 @@ std::vector<ACG::Vec3d> TestPlugin::getBoundingBoxTest(int objectId)
ACG::Vec3d bbmin, bbmax;
if (auto* tri = dynamic_cast<TriMeshObject*>(obj)) {
tri->getBoundingBox(bbmin, bbmax);
tri->boundingBox(bbmin, bbmax);
std::cerr << "TriMesh bounding box: " << bbmin << " " << bbmax << std::endl;
} else if (auto* poly = dynamic_cast<PolyMeshObject*>(obj)) {
poly->getBoundingBox(bbmin, bbmax);
poly->boundingBox(bbmin, bbmax);
std::cerr << "PolyMesh bounding box: " << bbmin << " " << bbmax << std::endl;
} else {
throw std::runtime_error("ObjectId " + std::to_string(objectId) + " is not a TriMesh or PolyMesh");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment