mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Merge branch 'ellipsoid' into 'master'
ellipsoid export to python See merge request jschoeberl/netgen!73
This commit is contained in:
commit
d505ddabf9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user