Commit 31c4506e authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[geomutil][getbbox] add efficient overload for hollow cyl

parent 3715313f
......@@ -24,6 +24,7 @@
#ifndef FRACKIT_GEOMETRY_GET_BOUNDING_BOX_HH
#define FRACKIT_GEOMETRY_GET_BOUNDING_BOX_HH
#include <frackit/geometry/hollowcylinder.hh>
#include <frackit/occ/breputilities.hh>
namespace Frackit {
......@@ -41,6 +42,14 @@ template<class Geo>
auto getBoundingBox(const Geo& geo)
{ return OCCUtilities::getBoundingBox( OCCUtilities::getShape(geo) ); }
/*!
* \ingroup GeometryUtilities
* \brief Overload for hollow cylinders.
*/
template<class ctype>
auto getBoundingBox(const HollowCylinder<ctype>& hollowCyl)
{ return getBoundingBox( hollowCyl.fullCylinder() ); }
} // end namespace Frackit
#endif // FRACKIT_GEOMETRY_GET_BOUNDING_BOX_HH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment