Giter VIP home page Giter VIP logo

cgal-matlab's Introduction

CGAL matlab

Descripion

CGAL functions in matlab using mex tool and cmake for compilation.

three functions are provided at the moment:

optimal_convex_partition_2
greene_approx_convex_partition_2
convex_decomposition_3

The first two are for partition of a 2D nonconvex polygon into convex polygons. The last one is for decomposition of 3D polyhedron into convex polyhedrons. See example on how to use the functions in matlab.

You can use these functions as a template to add another ones, please share if you adapt new cgal functions.

Install

To install on ubuntu (tested on ubuntu 20.04) first install cgal(below version 5.0) and boost from the ubuntu repositories:

sudo apt install libboost-dev libcgal-dev

To compile one of the functions, say optimal convex partition 2:

cd path-to-repo/optimal_convex_partition_2/
mkdir build
cd build
cmake .. -DMATLAB_ROOT=path-to-matlab
make

You have to provide the matlab path or edit the MATLAB_ROOT variable in the CMakeLists.txt file of the function you weant to compile.

Since version 5.0, CGAL is a header only library and this may change the compilation procedure. I did not tested with version 5.0 and above yet. This examples are tested with Matlab R2019b, cmake 3.17.3, and cgal 4.11 from Ubuntu 18.04 repositories (libcgal-dev package).

cgal-matlab's People

Stargazers

Christopher Kormanyos avatar  avatar

Watchers

Iuro Nascimento avatar  avatar

Forkers

mrazizadeh

cgal-matlab's Issues

Documentation could be a bit better

I find the documentation a bit confusing. There are three folders which one should I compile? What's the difference between the three? And how do I do that?
It would be great if you can add more information :).

Thank you!

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.