From 49e16a633b26b06a9a030e300e95768a2b8e828e Mon Sep 17 00:00:00 2001 From: Pierre Fernbach <pierre.fernbach@laas.fr> Date: Tue, 8 Oct 2019 14:41:21 +0200 Subject: [PATCH] [python][bezier3] bezier3 now correctly inherit from curve_abc in python --- python/curves_python.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/python/curves_python.cpp b/python/curves_python.cpp index 3094201..ba535b1 100644 --- a/python/curves_python.cpp +++ b/python/curves_python.cpp @@ -366,16 +366,11 @@ namespace curves ; /** BEGIN bezier3 curve**/ - class_<bezier3_t>("bezier3", init<>()) + class_<bezier3_t, bases<curve_abc_t> >("bezier3", init<>()) .def("__init__", make_constructor(&wrapBezier3Constructor)) .def("__init__", make_constructor(&wrapBezier3ConstructorBounds)) .def("__init__", make_constructor(&wrapBezier3ConstructorConstraints)) .def("__init__", make_constructor(&wrapBezier3ConstructorBoundsConstraints)) - .def("min", &bezier3_t::min) - .def("max", &bezier3_t::max) - .def("dim", &bezier3_t::dim) - .def("__call__", &bezier3_t::operator()) - .def("derivate", &bezier3_t::derivate) .def("compute_derivate", &bezier3_t::compute_derivate) .def("compute_primitive", &bezier3_t::compute_primitive) .def("waypointAtIndex", &bezier3_t::waypointAtIndex) -- GitLab