Commit 13127b07 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[python][occ] add helper struct to check if class is wrapper

parent ebe8d7a9
......@@ -19,6 +19,8 @@
#include <type_traits>
#include <BRep_Builder.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Solid.hxx>
......@@ -101,6 +103,12 @@ using ShellWrapper = BRepWrapper<TopoDS_Shell>;
using SolidWrapper = BRepWrapper<TopoDS_Solid>;
using CompoundWrapper = BRepWrapper<TopoDS_Compound>;
// helper struct to check if something is a BRep wrapper
template<class T>
struct IsBRepWrapper : public std::false_type {};
template<class S>
struct IsBRepWrapper<BRepWrapper<S>> : public std::true_type {};
} // end namespace Frackit::Python::OCCUtilities
Supports Markdown
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