cone in python

This commit is contained in:
Matthias Hochsteer 2015-08-31 17:47:27 -04:00 committed by Matthias Hochsteger
parent b82d89a768
commit 21bb5c61c3

View File

@ -251,6 +251,12 @@ DLL_HEADER void ExportCSG()
Solid * sol = new Solid (sp); Solid * sol = new Solid (sp);
return make_shared<SPSolid> (sol); 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) bp::def ("Cylinder", FunctionPointer([](Point<3> a, Point<3> b, double r)
{ {
Cylinder * cyl = new Cylinder (a, b, r); Cylinder * cyl = new Cylinder (a, b, r);