mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
cone in python
This commit is contained in:
parent
b82d89a768
commit
21bb5c61c3
@ -251,6 +251,12 @@ DLL_HEADER void ExportCSG()
|
||||
Solid * sol = new Solid (sp);
|
||||
return make_shared<SPSolid> (sol);
|
||||
}));
|
||||
bp::def ("Cone", FunctionPointer([](Point<3> a, Point<3> b, double ra, double rb)
|
||||
{
|
||||
Cone * cyl = new Cone (a, b, ra, rb);
|
||||
Solid * sol = new Solid (cyl);
|
||||
return make_shared<SPSolid> (sol);
|
||||
}));
|
||||
bp::def ("Cylinder", FunctionPointer([](Point<3> a, Point<3> b, double r)
|
||||
{
|
||||
Cylinder * cyl = new Cylinder (a, b, r);
|
||||
|
Loading…
Reference in New Issue
Block a user