Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
13127b07
Commit
13127b07
authored
May 26, 2020
by
Dennis Gläser
Browse files
[python][occ] add helper struct to check if class is wrapper
parent
ebe8d7a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/python/occutilities/brepwrapper.hh
View file @
13127b07
...
...
@@ -19,6 +19,8 @@
#ifndef FRACKIT_PYTHON_OCC_BREP_WRAPPER_HH
#define FRACKIT_PYTHON_OCC_BREP_WRAPPER_HH
#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
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment