Stream: brlcad

Topic: Google Code-in


view this post on Zulip Himanshu (Dec 05 2019 at 06:45):

hey @Jeffrey Liu :)

view this post on Zulip Jeffrey Liu (Dec 05 2019 at 06:47):

Hey @Himanshu Sekhar Nayak :)

view this post on Zulip Himanshu (Dec 05 2019 at 13:59):

@Daniel Rossberg
himanshu@asus:~ $ gcc --version gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

view this post on Zulip DifferentMoods (Dec 05 2019 at 15:41):

How can I download BRL-CAD on MAC? When I will open the programm it says 'the window closes in 5 seconds' and then the programm is closed..

view this post on Zulip Mayank Goyal (Dec 05 2019 at 16:20):

try taking help of this site https://brlcad.org/wiki/Compiling/XCode

view this post on Zulip Mayank Goyal (Dec 05 2019 at 16:22):

Someone also has encountered the same problem and has asked for help(https://sourceforge.net/p/brlcad/support-requests/117/)

view this post on Zulip Mayank Goyal (Dec 05 2019 at 16:23):

One solution given there is to download X11

view this post on Zulip Shantanu Gupta (Dec 05 2019 at 16:24):

Sir pls check the pending tasks as 20hrs left only for deadline and i have many lined up

view this post on Zulip Mayank Goyal (Dec 05 2019 at 16:24):

Sir pls check the pending tasks as 20hrs left only for deadline and i have many lined up

Sir, for me also (https://codein.withgoogle.com/dashboard/task-instances/4605933116719104/)

view this post on Zulip Victor Veytsman (Dec 05 2019 at 19:29):

Hey y'all, I'm vityavv (working on the about page), and just submitted the task for review

view this post on Zulip Sean (Dec 06 2019 at 16:08):

@DifferentMoods do you not get two windows that then display? click the "Details" arrow and see what it says.

view this post on Zulip Sean (Dec 06 2019 at 16:10):

@Shantanu Gupta and @Mayank Goyal you don't need to ask -- reviews are done in order by the assigned mentors. in this case, the librecad folks haven't gotten to their reviews yet for today. looks like you submitted shortly after they completed their last round of daily reviews.

view this post on Zulip Sean (Dec 06 2019 at 16:11):

hello @Victor Veytsman !

view this post on Zulip Simon Letsoalo (Dec 09 2019 at 19:07):

hello!

view this post on Zulip Himanshu (Dec 09 2019 at 19:07):

hey @Simon Letsoalo what's up :)

view this post on Zulip Simon Letsoalo (Dec 09 2019 at 19:10):

nothing much @Himanshu Sekhar Nayak just trying to complete a task

view this post on Zulip Simon Letsoalo (Dec 09 2019 at 19:20):

I'm intrested in the Model the word "BRL-CAD" task!

view this post on Zulip Himanshu (Dec 09 2019 at 19:27):

I'm intrested in the Model the word "BRL-CAD" task!

yeah go on and let others too know if you face any difficulties :)

view this post on Zulip Mayank Goyal (Dec 11 2019 at 05:04):

how can I render in appleseed

view this post on Zulip Mayank Goyal (Dec 11 2019 at 05:05):

I have imported my sphere.obj file in the assembly and tried to give it a color but when I clicked render, the screen went pink

view this post on Zulip Jeffrey Liu (Dec 11 2019 at 05:14):

As I mentioned earlier, the pink indicates that your sphere has no material, and since your screen is completely pink, you must zoom out to view the entire sphere. You can explore the Cornell Box example to see how it is set up, and this may help as well: https://appleseedhq.net/docs/tutorials/gettingstarted.html

view this post on Zulip Sumagna Das (Dec 11 2019 at 05:37):

hey daniel, i am gonna start another "remove throw() statements". so will there be a problem if there are the previous changes in the patch files or do i need to keep those changes?

view this post on Zulip Mayank Goyal (Dec 11 2019 at 08:51):

error-1.PNG

view this post on Zulip Jeffrey Liu (Dec 11 2019 at 13:32):

@Mayank Goyal This is the "error" that I mentioned above, which can be resolved through the steps that I provided.

view this post on Zulip Mayank Goyal (Dec 11 2019 at 13:38):

I have completed it and submitted it for review

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:40):

hey sean cna you help me?

view this post on Zulip Himanshu (Dec 11 2019 at 17:41):

don't ask to ask

view this post on Zulip Himanshu (Dec 11 2019 at 17:41):

others can help too :)

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:41):

ok

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:42):

do i have to keep the changes of the previous "remove throw() statements" tasks in the patch of the next tasks?

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:43):

anyone please help me

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:43):

on this

view this post on Zulip Himanshu (Dec 11 2019 at 17:44):

do i have to keep the changes of the previous "remove throw() statements" tasks in the patch of the next tasks?

hmm this will make the previous ones and later ones merged together

view this post on Zulip Himanshu (Dec 11 2019 at 17:44):

I can suggest to only keep the later ones

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:46):

is there a way to include only specific files?

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:50):

in the patch file?

view this post on Zulip Himanshu (Dec 11 2019 at 17:50):

(deleted)

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:51):

what?

view this post on Zulip Himanshu (Dec 11 2019 at 17:51):

may be but idk

view this post on Zulip Himanshu (Dec 11 2019 at 17:51):

what I had done just redo the changes

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:51):

what?

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:52):

i think i will keep them

view this post on Zulip Himanshu (Dec 11 2019 at 17:52):

may be @Daniel Rossberg knows how not to merged later ones with previous ones

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:52):

if the mentor says that i need to remove them, i wiil remove them and submit again for review.

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:53):

dont tag them unnecessarily

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:53):

they will get notification for that

view this post on Zulip Himanshu (Dec 11 2019 at 17:54):

and I can know how not to merge later ones with previous ones

view this post on Zulip Himanshu (Dec 11 2019 at 17:54):

not for you :/

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:54):

ok

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:55):

i will have to see whether to submit the changes with the previous ones or not

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:57):

my ubuntu crashed on me without any reason yesterday

view this post on Zulip Himanshu (Dec 11 2019 at 17:57):

:\

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:59):

i am working on another task

view this post on Zulip Sumagna Das (Dec 11 2019 at 17:59):

you?

view this post on Zulip Himanshu (Dec 11 2019 at 18:00):

I am working on BRL-CAD Lua binding: Fixing hellobrlcad test program

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:00):

oh great

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:43):

hello himanshu

view this post on Zulip Himanshu (Dec 11 2019 at 18:44):

hey :)

view this post on Zulip Chiranjiv Singh Malhi (Dec 11 2019 at 18:44):

Hello

view this post on Zulip Himanshu (Dec 11 2019 at 18:47):

@Daniel Rossberg I am unable to find ::Title(). Am I missing something ?

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:47):

btw himanshu, i found a way to include specific files in the patch

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:48):

i knew that there would be a way

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:48):

Daniel Rossberg I am unable to find ::Title(). Am I missing something ?

Yes, I told you where to look for it.

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:49):

thanks for telling me that "may be" there is a way

view this post on Zulip Himanshu (Dec 11 2019 at 18:53):

Daniel Rossberg I am unable to find ::Title(). Am I missing something ?

Yes, I told you where to look for it.

yeah I searched on src/embeddedlua but still I can't see the function definition

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:55):

You have two possibilities: Think about to which file it would belong to, or use grep.

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:56):

yea i searched in all the files there is no ::Title()

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:56):

What was your search string?

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:57):

i use atom btw

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:57):

i searched ::Title()

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:57):

i found one called ::Title(void)

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:58):

in the src folder

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:58):

Then, use a better search string, you are looking for a Lua, not a C++ function :wink:

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:58):

this time i changed the string to "::Title" only

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:58):

i found one called ::Title(void)

And? What have you done then?

view this post on Zulip Himanshu (Dec 11 2019 at 18:59):

i found one called ::Title(void)

which file it is ?

view this post on Zulip Sumagna Das (Dec 11 2019 at 18:59):

src/coreInterface/ConstDatabase.cpp

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 18:59):

this time i changed the string to "::Title" only

It still looks very much like C++.

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:00):

its only in the ConstDatabase.cpp

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:01):

its only in the ConstDatabase.cpp

And? Do you have an idea what the code in this file does?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:01):

we are talking about rt^3, right?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:01):

i think it creates , stores or does something related databases?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:02):

as its name implies

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:03):

right?

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:03):

What do you think which database is meant?

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:04):

However, what I meant is, how does this Lua stuff work? Do you have an idea when looking at this file?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:04):

i dont know. geometry/database file?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:04):

i dont know much about lua

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:05):

i tried to learn for trying it on a gaming platform named Roblox

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:05):

but i didnt

view this post on Zulip Himanshu (Dec 11 2019 at 19:05):

what according to me is if :Title() is Lua function then definitely it shall look like this function name_of_the_class:Title() .... end

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:05):

ok

view this post on Zulip Himanshu (Dec 11 2019 at 19:06):

and here database is an object when called to Title() like database:Title()

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:07):

ok

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:08):

i dont know much about lua except that it is based on c and that it is an embedded scripting language

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:09):

anyways you guys continue

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:10):

i was going for the c++ way

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:11):

It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:11):

honestly talking, i also really dont know

view this post on Zulip Himanshu (Dec 11 2019 at 19:11):

It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.

yeah

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:13):

i was going for the c++ way

embeddedLua is a C++ library, which implements an extension for an interpreter. You won't find it very often that you program C++ to do something in C++. E.g., BRL-CAD is about geometries ;)

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:13):

ok

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:14):

It looks like you still don't what the function name is, i.e. for which string you shall look for in src/embeddedLua.

yeah

Okay, I'll help you here: The string you have to look for is "Title". Surprised?

view this post on Zulip Himanshu (Dec 11 2019 at 19:14):

but I searched that

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:15):

And? Which file in src/embeddedLua contains "Title"?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:15):

luadatabase.cpp?

view this post on Zulip Himanshu (Dec 11 2019 at 19:16):

luadatabase.cpp?

but there you will find const char* title which is not a function

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:16):

static int Title

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:16):

i found

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:17):

is that the one?

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:17):

line 54

view this post on Zulip Himanshu (Dec 11 2019 at 19:17):

is that a function ?

view this post on Zulip Himanshu (Dec 11 2019 at 19:17):

that's a static var

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:18):

luadatabase.cpp?

but there you will find const char* title which is not a function

Really? I have

~/Devel/BRL-CAD/rt^3/src/embeddedLua> grep Title *
luadatabase.cpp:static int Title
luadatabase.cpp:    lua_pushstring(luaState, database->Title());
luadatabase.cpp:    lua_pushstring(luaState, "Title");
luadatabase.cpp:    lua_pushcfunction(luaState, Title);

There is no "const char* title".

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:18):

thats a function

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:18):

yea that one

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:18):

static int Title
(
lua_State* luaState
) {
Database* database = GetDatabase(luaState);

lua_pushstring(luaState, database->Title());

return 1;

}

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:19):

The point is, that there is a static function Title() defined. Static means that it is used in this file only, but where?

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:22):

It should be a line which contains the string (i.e. Function name) "Title" too.

view this post on Zulip Himanshu (Dec 11 2019 at 19:25):

like this lua_pushstring(luaState, "Title");

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:26):

like this lua_pushstring(luaState, "Title");

Not really (or almost?). "Title" is a string, we are looking for a function called Title.

view this post on Zulip Himanshu (Dec 11 2019 at 19:30):

or this lua_pushcfunction(luaState, Title);

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:31):

There are 4 lines containing the string Title:

The first one defines the function.
The second one is a call of an object method, but the here defined Title() is a simple function.
The third one is a string.

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:33):

yup

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:36):

btw daniel should i have included the previous changes from the "remove throw()" task in the later tasks of "remove throw ()"?

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:41):

btw daniel should i have included the previous changes from the "remove throw()" task in the later tasks of "remove throw ()"?

No, you did it fine.

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:45):

or this lua_pushcfunction(luaState, Title);

Note the lua_pushstring(luaState, "Title"); in the line before. This part of the code connects the string "Title" with the function Title() defined in luadatabase.cpp. Lua is an interpreted language. When the interpreter finds the string "Title" at an appropriate place, it calls the Title() function.

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:46):

no, for the next remove tasks

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:46):

cuz i have claimed one

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:49):

@Sumagna Das You did it fine, really. You removed the part already contained in "A - C" in your patch, which makes it easier to apply them after each other.

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:49):

https://codein.withgoogle.com/dashboard/task-instances/5344642015428608/ like for this one

view this post on Zulip Sumagna Das (Dec 11 2019 at 19:50):

does the patch has to contain the previous a-c files? or they dont have to?

view this post on Zulip Himanshu (Dec 11 2019 at 19:50):

or this lua_pushcfunction(luaState, Title);

Note the lua_pushstring(luaState, "Title"); in the line before. This part of the code connects the string "Title" with the function Title() defined in luadatabase.cpp. Lua is an interpreted language. When the interpreter finds the string "Title" at an appropriate place, it calls the Title() function.

so in simple words string "Title" search for function Title() okay

view this post on Zulip Himanshu (Dec 11 2019 at 19:54):

and what about this lua_pushstring(luaState, database->Title()); . Here a string should be passed but a object method has been called

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 19:56):

and what about this lua_pushstring(luaState, database->Title()); . Here a string should be passed but a object method has been called

In this part of the code, the return value of database->Title(), a string, is pushed on the Lua stack. This value becomes the return value of the Lua function.

view this post on Zulip Himanshu (Dec 11 2019 at 20:21):

yeah I got that where is the error

view this post on Zulip Himanshu (Dec 11 2019 at 20:21):

thanks @Daniel Rossberg for helping me

view this post on Zulip Himanshu (Dec 11 2019 at 20:23):

since these are all the BRLCAD stuff so it should be in BRLCAD "namespace"

view this post on Zulip Himanshu (Dec 11 2019 at 20:24):

btw thanks for pointing out

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:26):

What I told you wasn't helpful for this particular bug, but maybe for analyzing somebody else's code.

view this post on Zulip Himanshu (Dec 11 2019 at 20:28):

@Daniel Rossberg here it is h1manshu@asus:~/brlcad/rt^3/build $ tests-bin/hellobrlcad ~/brlcad/brlcad-code/build/share/db/cray.g Hello Cray X-MP section

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:30):

Looks like you can submit the patch now. A one-liner?

view this post on Zulip Himanshu (Dec 11 2019 at 20:31):

yes

view this post on Zulip Himanshu (Dec 11 2019 at 20:31):

one liner

view this post on Zulip Himanshu (Dec 11 2019 at 20:32):

okay then submitting

view this post on Zulip Himanshu (Dec 11 2019 at 20:34):

What I told you wasn't helpful for this particular bug, but maybe for analyzing somebody else's code.

btw have you written those codes ?

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:36):

It was written in 2017's Google Code in.

view this post on Zulip Himanshu (Dec 11 2019 at 20:37):

wow

view this post on Zulip Himanshu (Dec 11 2019 at 20:37):

:)

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:37):

I've just committed the A - C and C - F parts of the remove throw task.

view this post on Zulip Himanshu (Dec 11 2019 at 20:42):

btw I am thinking what to do next

view this post on Zulip Himanshu (Dec 11 2019 at 20:45):

yes

done

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:48):

btw I am thinking what to do next

There is one Lua task left: "BRL-CAD Lua binding: Object"
I plan for more, depending on how this one works. There you need a basic understanding on how the Lua embedding works (but still on copy-n-paste level).

At the other hand, you could do the modelling tutorials to learn more about BRL-CAD.

view this post on Zulip Himanshu (Dec 11 2019 at 20:52):

okay I will

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 20:53):

since these are all the BRLCAD stuff so it should be in BRLCAD "namespace"

BTW, BRLCAD is not a namespace but a table. We have Lua here ;)

view this post on Zulip Himanshu (Dec 11 2019 at 20:53):

I thought it is a namespace

view this post on Zulip Himanshu (Dec 11 2019 at 20:53):

now I understand

view this post on Zulip Himanshu (Dec 11 2019 at 20:54):

I will see some examples how binding works

view this post on Zulip Himanshu (Dec 11 2019 at 21:06):

bye

view this post on Zulip Himanshu (Dec 11 2019 at 21:06):

see you later

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 21:09):

The table BRLCAD contains another table at index database which has a function at index Title which has a table as parameter. Therfore, it's in fact BRLCAD["database"]["Title"](BRLCAD["database"]). Now BRLCAD["database"] can be written as BRLCAD.database, and if the first parameter of a table function is the table itself, this can be written as :, i.e. BRLCAD.database:Title().

BTW, BRLCAD is an entry in the global table.

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 21:09):

bye

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 21:21):

@Himanshu Sekhar Nayak Committed your patch.

view this post on Zulip Sean (Dec 11 2019 at 21:21):

I'm not familiar with that syntax...

view this post on Zulip Sean (Dec 11 2019 at 21:22):

so there's a global table called BRLCAD?

view this post on Zulip Sean (Dec 11 2019 at 21:22):

OOoooh.. that's lua in a c-string

view this post on Zulip Sean (Dec 11 2019 at 21:23):

haha, got it. was wondering wth kind of c++20 syntax they're introducing .. ;)

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 21:23):

No, there is a global table which has an index "BRLCAD" ...
In Lua, everything is a table.

view this post on Zulip Daniel Rossberg (Dec 11 2019 at 21:23):

That's all valid Lua syntax.

view this post on Zulip Sean (Dec 11 2019 at 21:23):

gotcha. I was mostly just baffled by the X.Y:Z syntax

view this post on Zulip Sean (Dec 11 2019 at 21:24):

haven't done a whole lot with lua from a non-user side

view this post on Zulip SHIVANG AGRAWAL (Dec 15 2019 at 08:31):

hello!

view this post on Zulip SHIVANG AGRAWAL (Dec 15 2019 at 08:32):

"Hi, I'm participating in GCI. The Appleseed tasks sound really interesting to me!"

view this post on Zulip Sean (Dec 16 2019 at 05:58):

@SHIVANG AGRAWAL welcome, and glad to hear it! Please feel free to ask questions about your tasks, or just talk with others about development and your gci experience. Cheers!

view this post on Zulip Sumagna Das (Dec 16 2019 at 11:19):

hey chiranjiv, hows it going?

view this post on Zulip Chiranjiv Singh Malhi (Dec 16 2019 at 11:46):

Hi @Sumagna Das . Its going good , what about you

view this post on Zulip Himanshu (Dec 17 2019 at 19:03):

@Daniel Rossberg so lua is basically a table where push and pop stack operation can go on ?

view this post on Zulip Daniel Rossberg (Dec 17 2019 at 19:04):

The central data storage is a stack data structure.

view this post on Zulip Himanshu (Dec 17 2019 at 19:04):

oh..

view this post on Zulip Daniel Rossberg (Dec 17 2019 at 19:06):

It's part of the struct lua_State.

view this post on Zulip Himanshu (Dec 17 2019 at 19:22):

@Daniel Rossberg are you facing any cmake .. error while building rt^3

view this post on Zulip Himanshu (Dec 17 2019 at 19:22):

https://paste.ofcode.org/E2b4wGYvzvdU278CTBw8BD

view this post on Zulip Himanshu (Dec 17 2019 at 19:22):

?

view this post on Zulip Himanshu (Dec 17 2019 at 19:29):

btw I am At revision 74503.

view this post on Zulip Daniel Rossberg (Dec 17 2019 at 19:30):

Let me see ...

view this post on Zulip Daniel Rossberg (Dec 17 2019 at 19:43):

Okay, update and try again.

view this post on Zulip Himanshu (Dec 17 2019 at 19:45):

yeah fine now

view this post on Zulip Himanshu (Dec 17 2019 at 20:13):

@Daniel Rossberg what -1 mean here const char* name = luaL_checkstring(luaState, -1); ?

view this post on Zulip Himanshu (Dec 17 2019 at 20:27):

Also after adding attribute methods, how I can check if everything is compiling fine ?(like cmake .., make or any )

view this post on Zulip Himanshu (Dec 17 2019 at 20:51):

Also is it compulsory to add methods from protected area ?

view this post on Zulip Himanshu (Dec 17 2019 at 20:54):

btw I made some progress but I think there are some functions still left https://paste.ofcode.org/39VaDSs2WdigC3skcBe66u9

view this post on Zulip Sumagna Das (Dec 18 2019 at 07:31):

Hey @Sean was the image too small or too big(210x210 pixels)?

view this post on Zulip Sumagna Das (Dec 18 2019 at 07:31):

What errors are you talking about?

view this post on Zulip Sumagna Das (Dec 18 2019 at 07:32):

I will try to fix them

view this post on Zulip Sean (Dec 18 2019 at 07:34):

nothing major, but one I noticed right away is that you print into fp without opening it right after the "Load the specified ..." comment

view this post on Zulip Sean (Dec 18 2019 at 07:35):

it's not at all clear what that loop is even doing.

view this post on Zulip Sean (Dec 18 2019 at 07:36):

you then have a bizarre looping condition

     for(x =-1000,i=0;x<=1000 || i<210;x+=10,i++) {
       for(y=-1000,j=0;y<=1000 || j<210;y+=10,j++){
         float z=10000;

view this post on Zulip Sean (Dec 18 2019 at 07:39):

you also set the 'ap' callback parameters over and over and over to the same thing. should only need to set them once.

view this post on Zulip Sean (Dec 18 2019 at 07:41):

lastly, your style/formatting is a bit inconsistent. see HACKING for explanation, but the gist is to make any new code look just like the rest of the file.

view this post on Zulip Sumagna Das (Dec 18 2019 at 07:45):

Ok

view this post on Zulip Mrinal Jain (Dec 18 2019 at 12:51):

Hey, I'm participating GCI, and I'm trying to run OGV on mac. But I get errors relating to fibers, can anyone provide any tips?

view this post on Zulip Sean (Dec 18 2019 at 14:25):

@Mrinal Jain can you share the errors? This guys are great with OGV @pooh (inder) @Panda (Gauravjeet Singh) @Shubham Rathore

view this post on Zulip Himanshu (Dec 18 2019 at 15:39):

Daniel Rossberg what -1 mean here const char* name = luaL_checkstring(luaState, -1); ?

Is that mean it will read the string in backward direction or something like that ? @Daniel Rossberg

view this post on Zulip Himanshu (Dec 18 2019 at 16:12):

btw luaL_checkstring() checks if arguments passed are strings or not and returns the string.
got it

view this post on Zulip Sean (Dec 19 2019 at 02:49):

@Himanshu Sekhar Nayak did you find the declaration or definition of luaL_checkstring()?

view this post on Zulip Sean (Dec 19 2019 at 02:49):

that should explain what the second parameter is for

view this post on Zulip Sean (Dec 19 2019 at 02:50):

ah, and I see that was your "btw" :) carry on.

view this post on Zulip Himanshu (Dec 19 2019 at 17:09):

Hey @Daniel Rossberg can you show me an example or something to write tests for testing hellobrlcad ?

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:20):

Hey himanshu

view this post on Zulip Himanshu (Dec 19 2019 at 17:23):

or something like script ?

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:35):

hey daniel does appleseed take a lot of time to build

view this post on Zulip Daniel Rossberg (Dec 19 2019 at 17:40):

Hey Daniel Rossberg can you show me an example or something to write tests for testing hellobrlcad ?

hellobrlcad doesn't need to be tested, but it is a kind of test for BRLCAD.database:Title(). Change the Lua code there to test something else.

view this post on Zulip Daniel Rossberg (Dec 19 2019 at 17:41):

hey daniel does appleseed take a lot of time to build

Can't say. I've never tried to compile it. Is there a task to compile it? I though, Appleseed has to be installed from a binary package.

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:42):

https://codein.withgoogle.com/dashboard/task-instances/6564257471135744/

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:43):

in this one it says "download appleseed and install from source"

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:43):

For this set of tasks, you'll need to download and install appleseed from source

view this post on Zulip Daniel Rossberg (Dec 19 2019 at 17:46):

Okay. However, I've never compiled it from source.
It has a CMake configuration. Did you already tried it?

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:46):

i was asking because
1) Its taking a lot of time
2) i will not use the laptop tomorrow because i am having eye problems

view this post on Zulip Daniel Rossberg (Dec 19 2019 at 17:54):

Then I'm afraid, I can't help you.

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:54):

ok

view this post on Zulip Sumagna Das (Dec 19 2019 at 17:56):

i am having eye problems so my mom advised me to give some rest to my eyes as i am straining them very much

view this post on Zulip Daniel Rossberg (Dec 19 2019 at 17:58):

Get well soon!

view this post on Zulip Sumagna Das (Dec 19 2019 at 18:01):

btw if anyone can fix the errors tomorrow heres the log and output of CMake

view this post on Zulip Sumagna Das (Dec 19 2019 at 18:02):

CMakeOutput.log CMakeError.log

view this post on Zulip Sumagna Das (Dec 19 2019 at 18:02):

sayonara

view this post on Zulip Sumagna Das (Dec 19 2019 at 18:02):

bye guys

view this post on Zulip Sumagna Das (Dec 19 2019 at 18:06):

Hey himanshu

view this post on Zulip Jeffrey Liu (Dec 20 2019 at 06:58):

Hey @Sean @Daniel Rossberg I started the EBM images task set 1 but I'm having some difficulty understanding the task. Initially I thought that the issue was that EBM objects had a reliance on reading the .bw file, but when I was testing some stuff on mged, it seems like DSP objects have a similar reliance on the .dsp file. Am I doing something wrong?

view this post on Zulip Jeffrey Liu (Dec 20 2019 at 07:08):

So to clarify what I mean, for both the EBM and the DSP objects, after I relocate the .bw or .dsp file respectively, an error occurs when I try to draw either one of them. However, it was my understanding that DSP objects stored the data inside of dsp_bip. I would assume that this is happening because of dsp_datasrc is not actually set to RT_DSP_SRC_OBJ, so am I doing something wrong when importing the DSP object? So far I've just been following https://brlcad.org/wiki/DSP

view this post on Zulip Thusal Ranawaka (Dec 20 2019 at 10:31):

@SeanHey Sean, I abandon the previous task until you come back in and I claimed another task called " Import BRL-CAD model to FreeCAD". And I will submit it for review tonight or before as soon as I can.

view this post on Zulip Thusal Ranawaka (Dec 20 2019 at 14:51):

@Sean I submit the task for review. Also, can I know some priority projects that I can do which contains less coding?

view this post on Zulip Thusal Ranawaka (Dec 20 2019 at 15:47):

@Sean It's time to sleep see ya tomorrow and review my work when you got your time.

view this post on Zulip Thusal Ranawaka (Dec 20 2019 at 15:47):

@Sean And please answer my problems if you can.

view this post on Zulip Himanshu (Dec 20 2019 at 19:39):

Hey @Sean What's up :-)

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 00:22):

So to clarify what I mean, for both the EBM and the DSP objects, after I relocate the .bw or .dsp file respectively, an error occurs when I try to draw either one of them. However, it was my understanding that DSP objects stored the data inside of dsp_bip. I would assume that this is happening because of dsp_datasrc is not actually set to RT_DSP_SRC_OBJ, so am I doing something wrong when importing the DSP object? So far I've just been following https://brlcad.org/wiki/DSP

Oh I think I got it, I didn't realize that the 'f' in the command stood for "file," which I believe is stored to dsp_datasrc. I think if I were to use 'o' instead, it would store everything as an object?

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 00:49):

Sorry, I'm still a little confused by the task at hand... it mentions modifying import5() and export5() so that datasrc and bip are written properly, but it seems like dsp_bip and dsp_datasrc are being used as well outside of those two functions - is it necessary for me to edit those as well?

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 00:56):

Also, it looks like dsp_bip is being written from ebm_get_data(), and modifying it is part of a later task? I'm a bit confused - could someone explain what exactly I'm supposed to do?

view this post on Zulip Tan Sharma (Dec 21 2019 at 03:33):

Hey,
I am participating in the GCI. I feel that the tasks offered by BRL-CAD are extremely interesting to work on.

view this post on Zulip Thusal Ranawaka (Dec 21 2019 at 03:33):

@Sean Hey Sean, Can you name me some Priority Projects that I can do something like less coding? Also review my work when you got your time.

view this post on Zulip Thusal Ranawaka (Dec 21 2019 at 03:34):

Tan how much tasks have you done

view this post on Zulip Sumagna Das (Dec 21 2019 at 10:46):

(deleted)

view this post on Zulip Sumagna Das (Dec 21 2019 at 10:46):

hey @Sean can you extend my task deadline

view this post on Zulip Sumagna Das (Dec 21 2019 at 10:47):

i was having eye problems so i had to keep away from the laptop

view this post on Zulip Sumagna Das (Dec 21 2019 at 10:49):

welcome @shubham

view this post on Zulip Thusal Ranawaka (Dec 21 2019 at 13:01):

@starseeker Hey, Starseeker

view this post on Zulip Thusal Ranawaka (Dec 21 2019 at 13:03):

Lots of guys are not much online these days.

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 17:52):

Hi @Sean sorry to bother you, but could you clarify what I should be doing for task #1 of the EBM images task set? I detailed my questions above.

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 17:53):

I'm still having difficulty understanding what parts I should be modifying

view this post on Zulip Jeffrey Liu (Dec 21 2019 at 23:00):

Weird, it looks like trying to make a DSP object is calling rt_dsp_import4() instead of rt_dsp_import5(). Is there something I should change to this command? in dsp1.s dsp f dsp-test.dsp 256 256 0 ad 1 0.005

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 00:47):

@Sean should I be rewriting import5() so that instead of bu_vls_strcpy(&str, (const char*)ep->ext_buf), I do cp = (unsigned char *)ep->ext_buf and then parse the information from there? Otherwise I'm not sure how I would be able to control how to parse for datasrc

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 03:14):

@Sean Hey, Sean can you name me some priority tasks?

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 06:39):

@Sean Hey Sean, I can't quite understand what have you said in my task.

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 08:17):

Weird, it looks like trying to make a DSP object is calling rt_dsp_import4() instead of rt_dsp_import5(). Is there something I should change to this command? in dsp1.s dsp f dsp-test.dsp 256 256 0 ad 1 0.005

Never mind, I was confused by the output which said something like rt_dsp_import4(4357); it looks like it's actually calling rt_dsp_import5().

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 08:56):

@Sean I think you mean by the task is that my sphere has not much resoluted. So I will try to export in the format that you have mentioned and resubmit the task by tonight.

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 08:58):

@Sean Also can you name me some priority tasks with less coding?

view this post on Zulip Sumagna Das (Dec 22 2019 at 11:19):

/usr/include/OpenImageIO/simd.h:1814:61: error: operator '&&' has no right operand #if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2
can anyone tell me why this error is coming

view this post on Zulip Sumagna Das (Dec 22 2019 at 11:19):

this is followed by /usr/include/OpenImageIO/simd.h:1863:61: error: operator '&&' has no right operand #if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2 ^~ /usr/include/OpenImageIO/simd.h:6344:61: error: operator '&&' has no right operand #if defined(ILMBASE_VERSION_MAJOR) && ILMBASE_VERSION_MAJOR >= 2

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 16:25):

Hey Sean, Sorry I cannot do what have you said in the task and I commented and submit for review informing the problems I have.

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 16:27):

@Sean Hey Sean, Sorry I cannot do what have you said in the task and I commented and submit for review informing the problems I have.

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 16:33):

@Daniel Rossberg Dani, How much tasks have you done?

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 16:41):

He is a mentor...

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 16:41):

who

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 16:41):

Daniel

view this post on Zulip Thusal Ranawaka (Dec 22 2019 at 16:42):

ok

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 17:06):

@Vikramaditya Singh in terms of time, I think it really depends on what you're hoping to accomplish and what tasks you want to do. Personally, I've spent a lot of time trying to learn how some of the code works so that I can do the coding tasks with a better understanding.

view this post on Zulip Jeffrey Liu (Dec 22 2019 at 17:07):

I can't speak much for its comparison with other softwares, but note that BRLCAD is used in many industries. One thing to note, though, is that it uses CSG rather than BREP

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 07:32):

@Sean It's not working Sean and I leave a comment and submit for review.

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:14):

daniel, did it build?

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:14):

is it 24th december or 23rd december in your local time

view this post on Zulip Sumagna Das (Dec 23 2019 at 12:17):

(deleted)

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:27):

@Daniel Rossberg Daniel are you there?

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:29):

@Daniel Rossberg Daniel I have sent the .step file.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:29):

@Daniel Rossberg Please give me a solution to this.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:32):

@Daniel Rossberg Daniel are you talking about BRL-CAD 7.26.0 version. Yes, I have downloaded that package.

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 15:36):

Sheldon?

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:37):

@Daniel Rossberg What do you mean by Sheldon?

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 15:37):

The multiple knocking :wink:

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:37):

box3.step

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:38):

This is the .step file. Daniel

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:39):

@Daniel Rossberg Hello

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 15:50):

Even with the latest version I get Error: ::LoadONBrep(ON_Brep *brep<0x55eb6fb8f380>) not implemented for Curve

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:51):

Yes, So do I

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:51):

I submit it for review.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 15:52):

@Daniel Rossberg So it means there is a bug.

view this post on Zulip Daniel Rossberg (Dec 23 2019 at 15:57):

How did you created the file?

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:03):

@Daniel Rossberg Using the export option in FreeCAD.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:04):

@Daniel Rossberg Hello

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:09):

@Daniel Rossberg Daniel, I submit task for review.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:14):

@Daniel RossbergHello

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:23):

@Sean Sorry, I can't find a solution.

view this post on Zulip Thusal Ranawaka (Dec 23 2019 at 16:30):

@Daniel Rossberg Did you succeed in my problem?

view this post on Zulip Sumagna Das (Dec 24 2019 at 06:57):

hey sean can i use the file from the installation and not from the source code?

view this post on Zulip Sean (Dec 24 2019 at 06:59):

@Sumagna Das what do you mean?

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:01):

i mean can i use the installation and not the source code for task #3?

view this post on Zulip Sean (Dec 24 2019 at 07:01):

Daniel Rossberg So it means there is a bug.

@Thusal Ranawaka did you switch to a box or is it still a sphere? I believe we entirely rely on the 3DM reader in OpenNURBS, so I would not characterize that message as a bug quite so quickly. I suggest trying a box if you haven't.

view this post on Zulip Sean (Dec 24 2019 at 07:02):

@Sumagna Das you have to give me a lot more context than that. there are lots of task #3's ....

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:04):

i mean appleseed task #3

view this post on Zulip Sean (Dec 24 2019 at 07:04):

@Sumagna Das if you are referring to appleseed, yes you can just use an installation -- you do not need to compile everything from source. however, any code you provide does need to be able to compile somehow

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:04):

its compiling

view this post on Zulip Sean (Dec 24 2019 at 07:05):

so you'll either have to set up your own build files that uses an installed appleseed or compile everything up (but that is QUITE a task in itself, that's not the intention)

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:05):

i am gonna use the CMakeLists.txt to configure it for building

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:06):

errors.png

view this post on Zulip Sumagna Das (Dec 24 2019 at 07:06):

these errors are coming while building appleseed from source

view this post on Zulip Sean (Dec 24 2019 at 07:11):

Sean I submit the task for review. Also, can I know some priority projects that I can do which contains less coding?

@Thusal Ranawaka this is google CODE-in ... ;) That said, hoping to get a pristine version of the chessboard model -- there are two tasks related to it. But you need to have done all the tutorial tasks first and understood them well enough to do it right.

view this post on Zulip Himanshu (Dec 24 2019 at 12:31):

Hey @Daniel Rossberg can I get a day extension ?

view this post on Zulip Sean (Dec 28 2019 at 20:46):

just leave a comment and mark it ready for review. extensions are easy

view this post on Zulip Himanish k Taneja (Jan 02 2020 at 08:52):

Hi, I am Himanish. I learnt about BRL-CAD through Google Code-in. BRL-CAD is doing such a great job.

view this post on Zulip Sean (Jan 02 2020 at 08:59):

welcome @Himanish k Taneja ! What's been your favorite task so far?

view this post on Zulip Aadithya Prakash Goutham (Jan 04 2020 at 06:09):

Hey there. I am pleased to have a task by BRL-CAD on Google Code-in. BRL-CAD is doing a great job.

view this post on Zulip Sean (Jan 05 2020 at 07:40):

welcome @Aadithya Prakash Goutham !

view this post on Zulip Shoaib Karnure (Jan 07 2020 at 08:51):

Hi this is Shoaib Karnure. I found out about BRL-CAD through Google Code in. BRL-CAD is doing a fantastic job.

view this post on Zulip Sean (Jan 07 2020 at 09:03):

@Shoaib Karnure what tasks have you enjoyed or look forward to?

view this post on Zulip Sean (Jan 07 2020 at 09:04):

@Shoaib Karnure and why do you say BRL-CAD is doing a fantastic job?

view this post on Zulip Harshil Anand (Jan 18 2020 at 20:19):

Hey guys,
This is Harshil from India and this is my very first participation into GCI. BRL-CAD seemed fascinating to me and excited to get up with tasks.

view this post on Zulip Himanshu (Jan 18 2020 at 20:54):

Hi @Harshil Anand and welcome to BRLCAD

view this post on Zulip Jeffrey Liu (Jan 18 2020 at 20:57):

Welcome @Harshil Anand!

view this post on Zulip Sean (Jan 20 2020 at 06:56):

welcome @Harshil Anand -- what are you working on?


Last updated: Oct 09 2024 at 00:44 UTC