Commit 98e141e2 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[python][brepwrapper] register conversion function

parent 10b86f6d
......@@ -47,6 +47,11 @@ public:
BRepWrapper(Shape&& shape) : shape_(std::move(shape)) {}
const Shape& get() const { return shape_; }
std::string name() const { return geometryName(get()) + "_Wrapper"; }
// conversion back into OCC shapes
operator TopoDS_Shape() const { return get(); }
operator Shape() const { return get(); }
private:
Shape shape_;
};
......@@ -65,6 +70,10 @@ public:
BRepWrapper(Shape&& shape) : shape_(std::move(shape)) {}
const Shape& get() const { return shape_; }
std::string name() const { return geometryName(get()) + "_Wrapper"; }
// conversion back into OCC shape
operator TopoDS_Shape() const { return get(); }
private:
Shape shape_;
};
......
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