After more than a year of waiting, and the indifference of many users towards this fabulous tool due to the numerous bugs it experienced, we now have a new version (1.3.3), with some improvements, but above all with a good number of bugs fixed.
Among the improvements, we can find native support for projects coming from VisualSfM .nvm, along with the usual Bundler (.out) projects that could already be loaded in the previous version. Currently, it seems that we can already work with some stability on projects aimed at regenerating textures from the rasters of our project.
Although in version 1.3.2 this Bundler project loading process worked correctly in Microsoft environments, failing on Unix (Apple and Linux), it seems that it is now working on Mac OS X but the problem persists in Linux environments, or at least Ubuntu, which is where I have tested it so far.
In the initial tests on Mac OS X, it seems that serious stability problems have been solved when performing certain operations (point cloud editing, texture loading, texture generation, etc.), and it seems that at least in my environment, it would already be a perfectly operational tool.
Installing Meshlab 1.3.3 on Windows and Apple environments is not a big problem; however, on Linux we have to compile it.
Installation of Meshlab 1.3.3 on Ubuntu:
An interesting improvement in the distribution of the Meshlab code is that all or almost all dependencies have already been included in this distribution, so we save a lot of time and headaches.
It should be noted that Meshlab is developed on the QT framework and that besides needing its libraries for compilation, we can compile either through our terminal or using the QTCreator tool, which we will see later.
In the Meshlab distro, we will initially find the files of the VCGLIB graphics library and the Meshlab source code itself; inside the usual src folder, we will find dependencies and source code:
In the external directory are all the dependencies that Meshlab will look for during compilation, so this directory is the first one to compile; for this, we move inside external and run a qmake:
qmake -recursive external.pro make
This already compiles all our dependencies, and we can go up one level and compile Meshlab. For this, we have two options: mini and full, where mini will not compile certain filters, so Meshlab will not be very useful, and it is better to opt directly for the full.
Simply with a:
qmake meshlab_mini.pro make
or a:
qmake meshlab_full.pro make
Once the process is finished, we can run Meshlab in the “distrib” directory.
If during the compilation of meshlab_full we encounter an error related to mpirxx.h not being found, we must download mpir-2.6.0 (http://www.mpir.org/) and then take the files mpir.h and mpirxx.h from its source code and save them in the directory:
meshlab/src/meshlabplugins/filter_csg
Then we do a “make clean” and repeat the compilation.
If you want to use QTCreator to compile Meshlab using a fully graphical environment, you must follow similar steps: first compile the external directory and then Meshlab. It may be necessary to reconfigure the project paths since otherwise the dependencies will not be located from QTCreator’s default path.
For this, once the project is loaded by locating the .pro through QTCreator, in the Projects icon, which corresponds to Build Settings, whether for Release or Debug, we point the Build Directory to the SRC directory for Meshlab compilation or to SRC/EXTERNAL for dependencies. Finally, we can build the project.
To install Meshlab, simply save the “distrib” directory in a safe place, for example:
cp -R src/distrib/ /opt/meshlab
And then we can also create a launcher to avoid having to go to this directory every time we need to run Meshlab.
If we already have version 1.3.2 installed on our system, we can simply edit the launcher located at:
vim /usr/share/applications/meshlab.desktop
Where in the executable “Exec” we will indicate the path to the Meshlab binary:
[Desktop Entry] Version=1.0 Name=MeshLab Name[en_GB]=MeshLab GenericName=Mesh processing GenericName[en_GB]=Mesh processing Comment=View and process meshes Type=Application Exec=meshlab %U Icon=/usr/share/pixmaps/meshlab_32x32.xpm Terminal=false MimeType=model/mesh;application/x-3ds;image/x-3ds;application/sla; Categories=Graphics;3DGraphics;Viewer;Qt;
If we do not have Meshlab installed on our system, simply create an empty document at that path named meshlab.desktop and copy the data, taking care to trace the path to a readable icon “Icon”
