Skip to content
Matlab/Octave m-code interface to computational solid geometry libraries based on pyPolyCSG
C++ MATLAB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
+csg
src
test
.gitignore
LICENSE
README.md
mpolyhcsgsetup.m

README.md

mpolycsg

Matlab/Octave m-code interface to computational solid geometry libraries based on pyPolyCSG

A C++ wrapper for the Carve Constructive Solid Geometry (CSG) library, and more experimentally, the CGAL library, intended to simplify performing CSG operations on meshes. The wrapper depends on the pyPolyCSG project by James Gregson. Currently a forked version of the pyPolyCSG project is required (available: https://github.com/crobarcro/pyPolyCSG), but it is likely the changes in the forked version of the project will be merged back into the main project in the future.

Building

You will need to grab and build my fork of pyPolyCSG, although we don't actually need the entire project, just the libpolyhcsg subproject

git clone https://github.com/crobarcro/pyPolyCSG.git pyPolyCSG-code
cd pyPolyCSG-code/libpolyhcsg
cmake -DCMAKE_BUILD_TYPE=Release .
make
sudo make install

Next get the mpolycsg project

git clone https://github.com/crobarcro/mpolycsg.git mpolycsg

Then start Matlab or Octave, change directory to the top level directory of mpolyhcsg, and run:

mpolyhcsgsetup

Look at the file test_csg.m for some example uses.

You can’t perform that action at this time.