| 12:47.34 | *** join/#brlcad infobot (~infobot@rikers.org) | |
| 12:47.34 | *** topic/#brlcad is BRL-CAD || http://brlcad.org || logs: http://ibot.rikers.org/%23brlcad/ || GCI winners: Jacob Burroughs and Peter Amidon! || GSoC 2014 selections are announced! Thank you to all we got to work with. Remember that SOCIS is coming up right around the corner and you don't need a summer of code to get involved with open source. | |
| 13:30.29 | *** join/#brlcad albertcoder (~albertcod@49.138.118.144) | |
| 14:09.27 | *** join/#brlcad albertcoder (~albertcod@101.215.180.127) | |
| 14:29.52 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 14:39.40 | *** join/#brlcad merzo (~merzo@227-148-132-95.pool.ukrtel.net) | |
| 15:16.55 | *** join/#brlcad chan_ (~chan@122.173.199.33) | |
| 15:19.23 | *** join/#brlcad piyushparkash (~piyushpar@117.205.75.97) | |
| 15:21.12 | chan_ | I have exported the BRLCAD script in dxf format and when it is imported in Autcad it gives the following error:Improper table entry name /SPH1 on line 29 invalid or incomplete DXF input--drawing discarded |
| 15:59.09 | *** join/#brlcad kintel (~kintel@unaffiliated/kintel) | |
| 16:03.15 | *** join/#brlcad kintel (~kintel@unaffiliated/kintel) | |
| 16:21.02 | *** join/#brlcad albertcoder (~albertcod@101.214.22.199) | |
| 16:34.36 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 17:47.39 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 19:12.46 | *** join/#brlcad FreezingAlt (~FreezingC@135.0.41.14) | |
| 19:17.43 | *** join/#brlcad albertcoder (~albertcod@101.214.22.199) | |
| 19:30.22 | Notify | 03BRL-CAD Wiki:Albertcoder * 7282 /wiki/User:Albertcoder/GSoC2014/logs: /* Week 4 */ |
| 19:32.15 | Notify | 03BRL-CAD Wiki:Albertcoder * 7283 /wiki/User:Albertcoder/GSoC2014/logs: /* Week 4 */ |
| 19:39.58 | Notify | 03BRL-CAD Wiki:Inderpreet * 7284 /wiki/User:Inderpreet/GSoC14/logs: /* Week 4 */ |
| 19:44.05 | *** part/#brlcad ishwerdas (~ishwerdas@117.207.157.210) | |
| 20:00.53 | *** join/#brlcad andrei__ (~IceChat77@5-12-221-203.residential.rdsnet.ro) | |
| 20:01.15 | *** join/#brlcad piyushparkash (~piyushpar@117.205.75.97) | |
| 20:21.42 | *** join/#brlcad vladbogo (~vlad@79.115.184.216) | |
| 20:29.41 | Notify | 03BRL-CAD Wiki:Vladbogolin * 7285 /wiki/User:Vladbogolin/GSoC2014/Logs: /* Week 4 */ |
| 20:47.47 | *** join/#brlcad hcurtis (b82d336f@gateway/web/freenode/ip.184.45.51.111) | |
| 20:49.01 | hcurtis | I'd like to talk with a mentor about my fast4-g task. |
| 20:49.10 | andrei__ | hey, hcurtis |
| 20:49.14 | andrei__ | just ask what you want to ask |
| 20:49.18 | andrei__ | someone will answer, eventually |
| 20:49.29 | andrei__ | maybe I can help you, even, we'll see |
| 20:49.46 | hcurtis | Hi, andrei__. |
| 20:50.06 | hcurtis | Let me get my notes. |
| 20:54.34 | andrei__ | also, does anyone know when Daniel(d_rossberg) gets back? Thanks |
| 20:57.39 | hcurtis | I am converting some of the elements of BRL-CAD's fast4-g.c from stack allocated to dynamic. The version of that file serving as the base for my corrections is the one shown in commit 56495. The number 11 appears in lines 213, 907, 1667, and 2943. Possibly, the 11s are to be replaced by a number that the program determines. However, I am stuck because I do not yet understand where the replacement number should come from. |
| 20:58.50 | hcurtis | Also, I realize that this might not even be the right approach to the problem. I was hoping to find that out before I went any farther down that road (so to speak). |
| 20:59.56 | andrei__ | hold on |
| 21:00.12 | andrei__ | could you please post your code on pastebin.com |
| 21:01.23 | hcurtis | The whole fast4-g.c program? |
| 21:01.42 | andrei__ | nope, just the part you are working on |
| 21:01.48 | andrei__ | and what you don't understand |
| 21:01.54 | hcurtis | Ok |
| 21:06.37 | andrei__ | you mentioned those lines in your previous message |
| 21:08.16 | hcurtis | Yes. I'm getting the code ready for the pastebin. |
| 21:09.27 | andrei__ | Do you understand why do you have to change that? |
| 21:09.32 | andrei__ | Why dynamic allocation is better? |
| 21:11.23 | andrei__ | I don't mean the textbook answer, just your understanding |
| 21:11.34 | andrei__ | cause if you don't, I can give you an example that I believe it ll help |
| 21:17.00 | hcurtis | andrei__: Dynamic (heap) allocation is better because there might be times in which additional memory is needed at runtime to hold the data (more specifically, the lists of regions for groups in BRL-CAD). |
| 21:18.25 | andrei__ | you can imagine static(stack allocation) like this: you got a warehouse and only 1 cubic meter boxes. |
| 21:18.53 | andrei__ | but all you want to deposit is jewlry. And you put one ring in a 1 cubic meter box. |
| 21:19.00 | andrei__ | That's a waste of space, isn't it ? |
| 21:19.15 | andrei__ | dynamic allocation means "having boxes" fit to your goods |
| 21:19.52 | hcurtis | Yes. Good comparison. |
| 21:20.37 | hcurtis | Here is the code you asked for: http://paste.lisp.org/+3296 |
| 21:21.59 | andrei__ | you said you can't understand this code |
| 21:22.04 | andrei__ | can you tell me what you understood so far? |
| 21:26.41 | hcurtis | I do understand what this (stack-allocation) code is doing. In order to make it dynamic, I will probably need to replace the 11s with a number that the program determines. However, I am stuck because I do not yet understand where the replacement number should come from. |
| 21:30.31 | andrei__ | well, but you do know where the number is used |
| 21:30.35 | andrei__ | group_head |
| 21:31.06 | andrei__ | if you track "group_head" with search |
| 21:31.11 | andrei__ | you ll see it doesn't appear too many times |
| 21:31.24 | andrei__ | group_head |
| 21:31.26 | andrei__ | oups |
| 21:31.39 | andrei__ | this one isn't useful, is it? |
| 21:31.39 | andrei__ | 2937 for (i=0; i<11; i++) |
| 21:31.39 | andrei__ | 2938 BU_LIST_INIT(&group_head[i].l); |
| 21:32.01 | andrei__ | how about line 877 ? :) |
| 21:32.58 | hcurtis | which version of fast4-g.c are you using? |
| 21:33.49 | hcurtis | When you refer to line 877 |
| 21:33.54 | andrei__ | http://brlcad.org/xref/source/src/conv/fast4-g.c |
| 21:34.46 | andrei__ | http://paste.lisp.org/display/142891 |
| 21:34.49 | andrei__ | this code |
| 21:36.03 | hcurtis | We have to be careful when using the xref code. It is not up to date, and I have no idea exactly how old it is. |
| 21:36.25 | andrei__ | you re probably right |
| 21:36.38 | andrei__ | but I m trying to show you a concept of how to pick the trail of what you need to do |
| 21:36.43 | andrei__ | not point to it exactly |
| 21:37.21 | andrei__ | if the for goes for 11( which is the static number) it's not useful for you |
| 21:37.33 | andrei__ | but in that case, elements where put into the list, without a certain indication of how many |
| 21:37.41 | andrei__ | that would be a good place to count them |
| 21:37.48 | andrei__ | then you would know what number to use instead of 11 :) |
| 21:37.55 | andrei__ | does that seem reasonable? |
| 21:38.47 | hcurtis | Yes. |
| 21:39.25 | hcurtis | But I admit I don't fully understand. I need to examine the code again. |
| 21:39.47 | andrei__ | ok, hold up |
| 21:39.54 | andrei__ | what don't you understand? |
| 21:40.18 | andrei__ | just say it, I've probably asked Daniel(d_rossberg) a dozen retarded questions by now, not everyone sees things the same way :) |
| 21:40.26 | andrei__ | doesn't mean that you don't understand because of you |
| 21:43.08 | hcurtis | The delay is because I didn't really know how to describe what is confusing me. |
| 21:44.33 | hcurtis | I appreciate the fact that you're trying to make me feel better, though. Also, I appreciate your help. |
| 21:46.00 | andrei__ | no problem |
| 21:46.11 | hcurtis | Here is what I think you were saying: ptr->region_id/1000 is the number that should replace 11. Right? |
| 21:46.50 | andrei__ | not really |
| 21:47.03 | andrei__ | ptr->region_id/1000 says what element is selected |
| 21:47.06 | hcurtis | Ok. Lol |
| 21:47.09 | andrei__ | not how many |
| 21:47.13 | hcurtis | Ok |
| 21:48.58 | andrei__ | but you can count there, I believe |
| 21:49.17 | andrei__ | brlcad or others might know more than me, but I thought I can provide a bit more help than nothing |
| 21:50.32 | hcurtis | Thank you very much. |
| 21:50.57 | andrei__ | have you ever ran this program? |
| 21:50.59 | andrei__ | fast4-g? |
| 21:51.19 | andrei__ | you could declare an int and increment it in if, then print it, see what number it shows |
| 21:51.22 | andrei__ | it's what I'd do |
| 21:52.42 | hcurtis | I have not run it by itself. It's a part of BRL-CAD that converts the fastgen format to BRL-CAD format. |
| 21:53.36 | andrei__ | maybe it has a unit test |
| 21:53.43 | andrei__ | try grepping for this function " Add_stragglers_to_groups" |
| 21:53.52 | andrei__ | it might be frustrating, but I don t know more than this, sorry :) |
| 21:53.52 | hcurtis | Ok |
| 21:54.41 | hcurtis | It's ok. I just appreciate the fact that you helped me. |
| 22:06.40 | hcurtis | (For anyone who wants to know) I have to go for now, but I will stay logged on. I will return later. |
| 22:10.00 | starseeker | vladbogo: please provide the update to the community in the main channel |
| 22:10.39 | starseeker | also, could you post a link to your log where we can track progress/see screenshots? |
| 22:11.19 | Notify | 03BRL-CAD Wiki:Popescu.andrei1991 * 7286 /wiki/User:Popescu.andrei1991/devlogs2014: /* Week 4 */ |
| 22:16.21 | *** join/#brlcad lans (298d941b@gateway/web/cgi-irc/kiwiirc.com/ip.41.141.148.27) | |
| 22:23.00 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 22:33.14 | *** join/#brlcad ries (~ries@190.9.171.121) | |
| 22:39.51 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 22:39.57 | *** join/#brlcad piyushparkash (~piyushpar@117.205.75.97) | |
| 22:52.17 | *** join/#brlcad ries_nicked (~ries@190.9.171.121) | |
| 23:16.24 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 23:19.47 | ankesh11 | starseeker: http://brlcad.org/wiki/Google_Summer_of_Code/2014 has the links to summaries and logs of all GSoC students. |
| 23:40.31 | *** join/#brlcad clock (~clock@77-58-143-135.dclient.hispeed.ch) | |
| 23:52.01 | Notify | 03BRL-CAD Wiki:Ankeshanand * 7287 /wiki/User:Ankeshanand/GSoC14/logs: /* Updatre logs */ |
| 23:52.39 | Notify | 03BRL-CAD Wiki:Ankeshanand * 7288 /wiki/User:Ankeshanand/GSoC14/logs: /* */ |