From 21bb5c61c308e6bb4012e593a9f8896caf70f581 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteer Date: Mon, 31 Aug 2015 17:47:27 -0400 Subject: [PATCH] cone in 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 275c53e4..be35ad58 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -251,6 +251,12 @@ DLL_HEADER void ExportCSG() Solid * sol = new Solid (sp); return make_shared (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 (sol); + })); bp::def ("Cylinder", FunctionPointer([](Point<3> a, Point<3> b, double r) { Cylinder * cyl = new Cylinder (a, b, r);