46#include "TestPlugin.hh"
47#include <Type-OpenMesh/ObjectTypes/MeshObject/MeshObjectT.hh>
58void TestPlugin::pluginsInitialized()
63std::vector<ACG::Vec3d> TestPlugin::getBoundingBoxTest(
int objectId)
68 throw std::runtime_error(
"ObjectId " + std::to_string(objectId) +
" not found");
74 tri->boundingBox(bbmin, bbmax);
75 std::cerr <<
"TriMesh bounding box: " << bbmin <<
" " << bbmax << std::endl;
77 poly->boundingBox(bbmin, bbmax);
78 std::cerr <<
"PolyMesh bounding box: " << bbmin <<
" " << bbmax << std::endl;
80 throw std::runtime_error(
"ObjectId " + std::to_string(objectId) +
" is not a TriMesh or PolyMesh");
83 return {bbmin, bbmax};
Type for a Meshobject containing a poly mesh.
void initializePlugin()
BaseInterface.
Type for a MeshObject containing a triangle mesh.
bool getObject(const int _identifier, BaseObject *&_object)
Get the object which has the given identifier.