You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made the latest Mesher_plus_Rat.cpp work in your Unix workstation with CGAL 4.2 and CMake, except for the Matlab stuff that @sinanshi will configure.
Clone the Mesher repo to my workspace directory in your Linux workstation:
ssh raquel@128.40.160.112
cd ~raquel/work
git clone git@github.com:EIT-team/Mesher.git
Change the contents of Mesher_plus_Rat.cpp like this:
Point or was named using a reserved word which made g++ complain, so I renamed it to origin.
Includes that refer to headers in current folder need to change from include <input_parameters.h> to include "input_parameters.h" for the build to look for them in the right place.
Comment out the call to save_matlab since the CMake config files need to be modified in order to find the necessary matlab libs.
Configure the CMake stuff linking properly CGAL's ImageIO and build executable:
cd Mesher
cgal_create_CMakeLists -c ImageIO
cmake .
make
Run:
./Mesher_plus_Rat
This is the output I got:
Reading the input file:
-facet angle = 30
-faced distance= 0.2
-cell radius edge ratio = 3
-cell fine size = 1
-cell coarse size = 3
-preserve elements with fine size (perc. from the border)= 1%
-electrode radius = 0.3
-mesh size near the electrode = 0.1
-make lloyd = 0
-make odt = 0
-make exude = 0
-make perturb = 0
-time limit = 180
Error opening electrode file: No such file or directory
Reading the Image file...
Meshing with initial mesh...
Optimising:
Saving the mesh into matlab file...
ALL DONE, press any key! :)
At the moment it only works in Windows. It also needs some refactoring.
The text was updated successfully, but these errors were encountered: