ellipsoid export to python

This commit is contained in:
Michael Neunteufel 2017-12-07 09:43:32 +01:00
parent 997e4f8469
commit d6bb0844de

View File

@ -279,6 +279,12 @@ DLL_HEADER void ExportCSG(py::module &m)
Solid * sol = new Solid (sp); Solid * sol = new Solid (sp);
return make_shared<SPSolid> (sol); return make_shared<SPSolid> (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<SPSolid> (sol);
}));
m.def ("Plane", FunctionPointer([](Point<3> p, Vec<3> n) m.def ("Plane", FunctionPointer([](Point<3> p, Vec<3> n)
{ {
Plane * sp = new Plane (p,n); Plane * sp = new Plane (p,n);