Stream: brlcad

Topic: multiple file support in GCV


view this post on Zulip Sumagna Das (Dec 28 2020 at 17:10):

Also....I was looking at gcv.c
I saw that there was a variable called unknown_ac. I tried using it for accesing extra arguments and it worked pretty well. We can use it for the multiple files system but don't know how we can do that.

view this post on Zulip Sumagna Das (Dec 28 2020 at 17:10):

Any suggestions?

view this post on Zulip Sumagna Das (Dec 28 2020 at 20:05):

just tested somewhat of a prototype for the multi file support for GCV but its not the kind of thing one would like

view this post on Zulip Sumagna Das (Dec 28 2020 at 20:06):

i am passing the arguments and the unknown_ac variable straight to the plugin through gcv_options (dont remember why i used that struct for passing info).

view this post on Zulip Sumagna Das (Dec 28 2020 at 20:07):

that worked perfectly for the png plugin (i dont know how to test the other plugins so....)

view this post on Zulip Sumagna Das (Dec 28 2020 at 20:11):

one file input -> one-file.g
multi file input -> multi-file.g

view this post on Zulip Sumagna Das (Dec 28 2020 at 20:12):

the files linked above were entirely with gcv

view this post on Zulip Sean (Feb 02 2021 at 18:19):

@Sumagna Das I'm sorry for not getting back to you sooner. I've been trying to put all my time and attention into our git migration and it's been a bit all-consuming.

view this post on Zulip Sean (Feb 02 2021 at 18:22):

I think it's a bit lucky that it works via unknown args just because there aren't other commands using/claiming it. I think what we probably want to do is require explicit declaration when there are multiple inputs in order to keep the Usage deterministic. That is, in order to specify multiple inputs, one would specify -i multiple times, and same for multiple outputs. Implies -i and -o changing to a list of strings instead of assuming a single filepath string.

view this post on Zulip Sean (Feb 02 2021 at 18:23):

The alternative would be to use some sort of delimeter like -i "file1;file2;file3"

view this post on Zulip Sumagna Das (Feb 03 2021 at 02:56):

Sean said:

The alternative would be to use some sort of delimeter like -i "file1;file2;file3"

this sounds like a good idea.

view this post on Zulip Sumagna Das (Feb 03 2021 at 02:56):

Sean said:

Sumagna Das I'm sorry for not getting back to you sooner. I've been trying to put all my time and attention into our git migration and it's been a bit all-consuming.

no problem


Last updated: Oct 09 2024 at 00:44 UTC