tag:blogger.com,1999:blog-3247031558480588539.post5861392558487386076..comments2023-10-26T01:11:22.345-07:00Comments on James' Blog: Python CSG library releaseJames Gregsonhttp://www.blogger.com/profile/17703566385559400211noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3247031558480588539.post-24269116857192867662014-11-17T10:25:23.466-08:002014-11-17T10:25:23.466-08:00Hi,
The library should be considered in an alpha ...Hi,<br /><br />The library should be considered in an alpha state at best. I've had trouble with the build system on different platforms, lack of a testing machine for Linux/Windows makes it difficult to integrate into PyPi.<br /><br />The CSG libraries themselves are problematic. I run into robustness issues in Carve as well as the experimental CGAL backend. These can be overcome (e.g. OpenSCAD seems to be quite stable) but I have very little time to devote to it.<br /><br />That said, it works pretty well for what I've been doing working on, which is mostly scripted part generation. For these cases the occasional crash doesn't really matter but it would if it were integrated into a larger package. Just be aware that it is by no means production code.<br /><br />JamesJames Gregsonhttps://www.blogger.com/profile/17703566385559400211noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-54109777270238444202014-11-04T12:40:23.632-08:002014-11-04T12:40:23.632-08:00I just discovered your library. I was going to do...I just discovered your library. I was going to do my project with OpenSCAD, but I started asking myself "why should I learn a new scripting language; one that isn't very powerful, when maybe someone has implemented what I need in python?" Your library totally fits the bill. <br /><br />I had a bit of trouble getting it to compile, though (mainly the carve part). To get carve to compile (Mac OS X 10.9), I had to add the following to the carve CMakeLists.txt:<br />SET(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")<br />Then I had to update carve/lib/triangulator.cpp, line 126, from __is_heap() to is_heap().<br /><br />To get your library to compile, I had to install boost_python:<br />brew install boost_python<br />For some reason "brew install boost" does not install boost_python...<br /><br />Anyway, seems like a great library. I wish it was part of PyPi. There's a "pycsg" library there, but it does very little.snapsterhttps://www.blogger.com/profile/01098810362769451834noreply@blogger.com