[solved] Trouble installing Cork plugin on Windows 10

Feel free to ask any question here
Post Reply
miamoto
Posts: 6
Joined: Wed Mar 22, 2017 1:58 am

[solved] Trouble installing Cork plugin on Windows 10

Post by miamoto »

Hey everybody,
Although I deal with 3D meshes for a while, I consider myself very unexperienced at dealing with some features in CC, so I am having a hard time to install Cork plugin by compiling on Windows 10, as the previous requisites (such as "adding MPIR to my Visual Studio environment") are very difficult for me to understand, as a someone from a Biological/Health Sciences background. I couldn´t leave step 0, even though I tried installing Visual Studio, MPIR, everything that´s specified at https://github.com/cloudcompare/cork .
Would anybody be able to show me any tutorial, or give hints on any kind, to conduct this process?
I am very sorry if this question may sound totally 'noob', but safe to say I am one, and I am struggling not to be one anymore :)
Thanks a lot for your attention.
Last edited by miamoto on Thu Mar 23, 2017 5:06 am, edited 1 time in total.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Trouble installing Cork plugin on Windows 10

Post by daniel »

Someone who is trying to compile CC on Windows instead of using the installer is definitely not a noob ;)

And normally you should only put the mpir 2.6 library in 'contrib/mpir-2.6.0' (with the compiled libraries) but I realize that it's not easy to find it on the web anymore. Therefore I've just added my own MPIR version to the github repository.

This way you can fetch it and you should be able to compile cork easily (be sure to compile both the release and debug versions for x64 platform).
Daniel, CloudCompare admin
miamoto
Posts: 6
Joined: Wed Mar 22, 2017 1:58 am

Re: Trouble installing Cork plugin on Windows 10

Post by miamoto »

Thank you very much, Daniel!
Well, turns out I found a 'noobish' solution... I was trying to install cork plugin all along, but I was reading documentation on versions 2.6 and 2.7 (which I also had installed)...
I just downloaded 2.8 and Voilà, the Cork plugin is already functional.
I will mark this as solved, in an unusual way, thanks a lot for your prompt response.
Uhm, one more thing...
I am getting the
Exception caught: ENSURE FAILED
Computation failed!

message upon trying to perform booleans, and have tried to launch it several times as you have instructed in other threads, i think about 10 times, but it doesn´t work for my meshes... only more simple meshes, like spheres.
Could it be a problem with my meshes? Do the meshes necessarily need to be in .off format, and triangulated (as seen here:https://blenderartists.org/forum/showth ... s-heritage) ?
Is manifoldness also a requirement?
Thanks a lot in advance!
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: [solved] Trouble installing Cork plugin on Windows 10

Post by daniel »

The main constraint is indeed to use closed and manifold (triangular) meshes. You can import them from any format of course (even though STL is a crappy format that doesn't preserve triangles connectivity, therefore you might get some problems sometimes when CC tries to 'merge' the vertices).

Anyway, you can test the quality of the mesh with 'Edit > Mesh > Flag vertices by type'. This will output in the console the number of potentially problematic vertices. And sadly Cork is also sometimes a bit capricious...
Daniel, CloudCompare admin
Post Reply