### G1 and G2 fitting with clothoids, spline of clothods, circle arc and biarc
**by Enrico Bertolazzi and Marco Frego**
for the documentation see `manual.md`
This is the NEW Object Oriented (OO) version of the Clothoids library.
For the old NON OO interface look at the branch `old_interface`.
Enrico Bertolazzi and Marco Frego
Department of Industrial Engineering
University of Trento
Enrico Bertolazzi (2020). ebertolazzi/Clothoids (https://github.com/ebertolazzi/Clothoids), GitHub. Retrieved .
The software is developed on OSX. To compile the MEX library execute CompileLib.m on the directory matlab. To compile the c++ lib (to be used in c++) there is a makefile (that work on linux and OSX) and a CMakeLists.txt to be used with cmake on all the platforms.
Has anyone compiled this with macOS on a macbookair? Can the instructions be posted here please, thanks.
Thank you for sharing and following people's requests. Definitely a good practice! I hope to benefit from this work for my research.
I found a solution by changing line 398 in Triangle2D.cc to include parentheses :
return (std::max)(d1,(std::max)(d2,d3)) ;
(solution found here:
if you are compiling on windows with visual studio compiler probably the error is due to some version of the compiler which defined max and min as macros. I added a workaround for that in the last version of the library.
It is correct, in the latest version I added the header inclusion. The error is due to that fact I develop mainly on OSX which include headers for STL in a slight different way.
Hi,I tried to compile your Lib. There is an error in Triangle2D I think you forgot to include the Header <algorithm>. After I fixed that i was able to compile it in Matlab.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!