luca-penasa/Apero2Meshlab

Hello!

Opened this issue · 5 comments

Hello,
I'm a french engineering student. I developped an interest in Micmac and the use of meshlab in order to clean/create 3d surfaces. I'm really interrested in your script. I explain myself, I want to be able to get the camera position/orientation generated by Apero (visible in Apericloud).
What for? I was fed up with wasting so many time on SaisieMasq about taking off the depth changes (to avoid projection issue afterwards). I developped a meshlab script which permit from a view angle or a camera view angle to select the non visible points of the mesh. Problem is, I currently do it approximately from moving the mesh and create a camera from the trackball which is not accurate at all.
The problem is, I'm not the best in the informatical field since I'm not in a computer science school and all i learned was by myself. I tried to use the sh script you created in order to install the file. It seems to fail at some point and I got no clue what is wrong.( I put the directory directly in the shell script).

Console:
User :~/Téléchargements/Apero2Meshlab-master$ ./install_patch.sh
./install_patch.sh: 12: ./install_patch.sh: [[: not found
./install_patch.sh: 18: [: /home/matthieu/micmac: unexpected operator
./install_patch.sh: 28: ./install_patch.sh: [[: not found
Copying files
CPP_Apero2Meshlab.cpp into /home/matthieu/micmac/src/uti_files/
Apero2Meshlab.c into /home/matthieu/micmac/src/CBinaires/
Patching other files
patching file include/general/arg_main.h
Hunk #1 succeeded at 487 with fuzz 2 (offset 53 lines).
patching file src/CBinaires/CMakeLists.txt
Hunk #1 succeeded at 60 (offset 20 lines).
patching file src/CBinaires/mm3d.cpp
Hunk #1 succeeded at 178 with fuzz 1 (offset 11 lines).
patching file src/uti_files/Sources.cmake
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/uti_files/Sources.cmake.rej

Can you help me install it?
Thank you so much!

Hi,
I recently changed the way in which the patch is applied:
now you just need to:

For applying the changes just go to your micmac source dir and do the following:
hg import --no-commit /path/to/Apero2Meshlab/changeset.hgdiff

Could you try in this way?

Best,
Luca

Hi,
First of all is there a chance that you are french because it may be harder
to explain my problem in english. After checking, i may not have installed
micmac using mercurial (hg) as your last command may suggest. Should i redo
the whole instalation using mercurial or is there any possible way to
install the patch by doing some command lines, moving your script in the
right place or just install it on his own and use it separately?
Thank you for the time you spent studying my problem,
Best regards,
Matthieu

2014-06-30 13:36 GMT+02:00 Luca notifications@github.com:

Hi,
I recently changed the way in which the patch is applied:
now you just need to:

For applying the changes just go to your micmac source dir and do the
following:
hg import --no-commit /path/to/Apero2Meshlab/changeset.hgdiff

Could you try in this way?

Best,
Luca


Reply to this email directly or view it on GitHub
#3 (comment)
.

Ok i just reinstalled micmac with hg.
this is what i get:

user@user:~/micmac$ hg import --no-commit /home/user/Téléchargements/Apero2Meshlab-master/changeset.hgdiff
abandon : outstanding uncommitted changes

Any ideas?
Thank you!

Just tried now. For me it works fine with the last revision from mercurial.
Did you checked out culture3d correctly? You can try to follow these instructions:
http://fablabo.net/wiki/Scan3D#MicMac

maybe restarting with a fresh clone of culture3d codebase could help. It looks like you have done changes to the code so that mercurial is not allowing you to merge the patch with the micmac code.

you could also try to clean the code with:
hg update --clean
and then re-apply the patch

Then you will need to compile micmac. for that follow the instructions in the link above.

Ok i updated it, it found no changes since i just reinstalled everything
from mercurial.
Then i tried reapply the patch:

matthieu@matthieu-A17:~/micmac$ hg import --no-commit
'/home/matthieu/micmac/Apero2Meshlab-master/changeset.hgdiff'
application de /home/matthieu/micmac/Apero2Meshlab-master/changeset.hgdiff
file src/CBinaires/Apero2Meshlab.c already exists
1 out of 1 hunks FAILED -- saving rejects to file
src/CBinaires/Apero2Meshlab.c.rej
file src/uti_files/CPP_Apero2Meshlab.cpp already exists
1 out of 1 hunks FAILED -- saving rejects to file
src/uti_files/CPP_Apero2Meshlab.cpp.rej
abandon : patch failed to apply

I first thought it had failed but by reading it, i realised the patch may
have been applied 2 days ago without me realising it.

The only thing i didn't do after reinstalling everything and applying the
patch was to compile the patch (I'm a beginner and didn't thought of it
sorry!)XD. With the cmake command it compiled it and now i can see that
Apero2Meshlab command is displayed in the terminal so it should work fine!
I Tried it just now, It works perfectly! And I managed to turn this camera into a mesh camera I could use.
Amazing work from your part, and really usefull help!
Thank you so much for your time!
Matthieu