Volvox integration

Feel free to ask any question here
Gilly
Posts: 6
Joined: Wed Jan 08, 2020 4:42 pm

Volvox integration

Post by Gilly »

Hi all,
I have a question regarding Volvox call in from GH. I import two meshes to CloudCompare and do ICP without any problems. However, when I try to do the same operation in GH, I get several errors while opening the meshes, and also ICP doensn't execute. Here are my instructions to the command line from GH:

CloudCompare -O C:\Users\eckog\OneDrive\Documents\initial_guess_registration.obj
-0 C:\Users\eckog\OneDrive\Documents\initial_guess_registration_scan.obj -ICP -MIN_ERROR_DIFF -FARTHEST_REMOVAL -MERGE_MESHES

Any help will be appreciated!
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Volvox integration

Post by daniel »

Which errors?
Daniel, CloudCompare admin
Gilly
Posts: 6
Joined: Wed Jan 08, 2020 4:42 pm

Re: Volvox integration

Post by Gilly »

Hi Daniel,


I open obj files from GH mesh format, first error is
[Load] Can't guess file format: no file extension --- I specify the scan.obj so i'm not sure why that's an error, and doesn't happen if I open inside CC instead. THis error is shown twice followed by an opened mesh, so whatever structure it follows, the first two parameters are missing for mesh, any advice on a better type to import? I think I had similar error when I did mesh deconstruct and cloud generated from the deconstruct points.

Same error repeats for the -ICP and other commands I use to specify fine reg parameters.

Thoughts? Ideally, a simple ICP or other functions call example for GH would go a long way. I did quite a bit of search and didn't find any examples to follow for GH based call-outs.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Volvox integration

Post by daniel »

Hum, strange indeed. The .obj extension should be sufficient. One option is that CC fails to extract the correct filename (you could add quotes around the total filename+path). Or that CC failed to load the Q_CORE_IO plugin which should be in the 'plugins' directory (where are you calling the command line from?).

And what are you calling GH exactly? Is it the system console?
Daniel, CloudCompare admin
Gilly
Posts: 6
Joined: Wed Jan 08, 2020 4:42 pm

Re: Volvox integration

Post by Gilly »

attached is my path. the obj is generated by a save bake command that creates it, so i can use another file type if they play nice with volvox/cc.
Attachments
Picture1.png
Picture1.png (194.28 KiB) Viewed 5632 times
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Volvox integration

Post by daniel »

Oh, that kind of tool... Then I guess there's definitely an issue that prevents the Q_CORE_IO plugin to be loaded (or a trick to find to make this work).

An alternative would be to use the PLY format to save and load the meshes (as this format is in the Core version of CloudCompare).
Daniel, CloudCompare admin
Gilly
Posts: 6
Joined: Wed Jan 08, 2020 4:42 pm

Re: Volvox integration

Post by Gilly »

I see, I tried ply version but it requires approval of the file type, etc in the CC side. It doesn't really allow for a complete macro type routine to send back to GH. Any ideas on a work around that can leverage ICP and send back to GH with no need for user interaction?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Volvox integration

Post by daniel »

Have you tried the '-SILENT' mode?
Daniel, CloudCompare admin
Gilly
Posts: 6
Joined: Wed Jan 08, 2020 4:42 pm

Re: Volvox integration

Post by Gilly »

Silent didn't seem to do anything for me. -SILENT should prevent any prompts within CC correct?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Volvox integration

Post by daniel »

Yes. Even though a few tools still ignore the 'SILENT' command (but that can be fixed)
Daniel, CloudCompare admin
Post Reply