Skip to content

Using BlenderCAM with OpenCAMLib

ksuprynowicz edited this page Jan 11, 2016 · 20 revisions

OpenCAMLib is an opensource CAM library created by Anders Wallin. It offers high quality waterline generation and drop cutter sampling algorithms. For drop cutter algorithms it's more reliable than Bullet Physics(Blenders builtin collision detection library) and offers better performance (up to 30 times faster than regular algorithm on 24-core machine).

To use OpenCAMLib with BlenderCAM, it needs to be built from source and installed for python2.7 available from executable path.

Building from source on Debian GNU/Linux (probably also Ubuntu):

Install dependecies:

sudo aptitude install libboost-dev libomp-dev libpython-dev python-dev python-vtk6 g++ cmake

Get newest OpenCAMLib from repository(there's a problem with camvtk.py and vtk6, I'll upload new version later today):

git clone https://github.com/ksuprynowicz/opencamlib.git

Configure and compile:

mkdir opencamlib/build
cd opencamlib/build
cmake ..
make

Install (by default in /usr/local):

sudo make install

To use OpenCAMLib waterlines, select "Show experimental features" in Blender User Preferences / Addons / CAM - gcode generation tools. Then select Waterline strategy and "Use OpenCAMLib". Current version lacks dialog for waterline resolution and automatic determination of cutter length, those can be adjusted in "scripts/addons/cam/opencamlib/oclWaterline.py" file. Parallel strategy and drop cutter sampling doesn't work with current version(but was tested with very good results with earlier ones) and will be fixed this week.