From b82d89a7687844497855271965e5483fa1cbad10 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteer Date: Mon, 31 Aug 2015 17:45:34 -0400 Subject: [PATCH] python - set background color --- libsrc/csg/vscsg.cpp | 2 ++ python/csg.py | 1 + 2 files changed, 3 insertions(+) diff --git a/libsrc/csg/vscsg.cpp b/libsrc/csg/vscsg.cpp index 152c7aaf..cb4154fa 100644 --- a/libsrc/csg/vscsg.cpp +++ b/libsrc/csg/vscsg.cpp @@ -503,6 +503,8 @@ DLL_HEADER void ExportCSGVis() .def("Draw", &VisualSceneGeometry::DrawScene) ; + bp::def("SetBackGroundColor", &VisualSceneGeometry::SetBackGroundColor); + bp::def("VS", FunctionPointer ([](CSGeometry & geom) { diff --git a/python/csg.py b/python/csg.py index 7998b29e..9e2159e2 100644 --- a/python/csg.py +++ b/python/csg.py @@ -14,6 +14,7 @@ if __platform.startswith('win'): CSGeometry.VS = csgvis.VS +SetBackGroundColor = csgvis.SetBackGroundColor del csgvis def VS (obj):