From d6bb0844de0c8754ae3353b3f765527dfe2e9ad7 Mon Sep 17 00:00:00 2001 From: Michael Neunteufel Date: Thu, 7 Dec 2017 09:43:32 +0100 Subject: [PATCH] ellipsoid export to python --- libsrc/csg/python_csg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 35f3872e..2dc50330 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -279,6 +279,12 @@ DLL_HEADER void ExportCSG(py::module &m) Solid * sol = new Solid (sp); return make_shared (sol); })); + m.def ("Ellipsoid", FunctionPointer([](Point<3> m, Vec<3> a, Vec<3> b, Vec<3> c) + { + Ellipsoid * ell = new Ellipsoid (m, a, b, c); + Solid * sol = new Solid (ell); + return make_shared (sol); + })); m.def ("Plane", FunctionPointer([](Point<3> p, Vec<3> n) { Plane * sp = new Plane (p,n);