Editing User:Schindler97/GSoC18/Log

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 19: Line 19:
 
====Coding Period ====
 
====Coding Period ====
  
Progress through the coding period.
+
Progress through the coding period.  
+
Track changes in the current working repo : https://github.com/Killthebug/python-brlcad-tcl/commits/master  
Ctypesgen Project Repo : https://github.com/Killthebug/python-brlcad/
 
 
 
TCL Project Repo : https://github.com/Killthebug/python-brlcad-tcl/commits/master  
 
  
 
* Week 1
 
* Week 1
Line 215: Line 212:
 
*Week 11
 
*Week 11
 
**'''30th July'''
 
**'''30th July'''
***Created the Tutorial folder in github (https://github.com/Killthebug/python-brlcad/tree/master/Tutorial) It has currently two files which explain how to create shapes procedurally.
+
***Created the Tutorial folder in github (https://github.com/Killthebug/python-brlcad/tree/master/Tutorial)
 +
It has currently two files which explain how to create shapes procedurally.
 
***abstract_tutorial.py : Uses the draw_primitive file to create geometry. Advantage of using it is : better naming of functions and easier handling of arguments that are passed. This file is tested and complete and creates all shapes.
 
***abstract_tutorial.py : Uses the draw_primitive file to create geometry. Advantage of using it is : better naming of functions and easier handling of arguments that are passed. This file is tested and complete and creates all shapes.
 
***core_tutorial.py : Used the actual wrappers, without an intermediate file. This file is not totally tested and hence might break. Will be fixed in the next commit.
 
***core_tutorial.py : Used the actual wrappers, without an intermediate file. This file is not totally tested and hence might break. Will be fixed in the next commit.
 
**'''1st August'''
 
**'''1st August'''
 
***Primitives missing from the scene were introduced : bot, grip, superell, submodel, ebm.
 
***Primitives missing from the scene were introduced : bot, grip, superell, submodel, ebm.
***I tried to create ars and metaball but there seem to be issues popping up. I'm fixing them. The issue with metaball is something that is followed on from GSoC'14. Look at May 29 Entry : https://brlcad.org/wiki/User:Krajkreddy/GSOC14/summary
+
I tried to create ars and metaball but there seem to be issues popping up. I'm fixing them. The issue with metaball is something that is followed on from GSoC'14. Look at May 29 Entry : https://brlcad.org/wiki/User:Krajkreddy/GSOC14/summary
***With ars and metaball there's some issues on the binding side.  There was an issue with the fastf_t *verts[5], Error :: expected LP_c_double_Array_5 instance instead of LP_c_double_Array_5.
+
***With ars and metaball there's some issues on the binding side.  There was an issue with the fastf_t *verts[5],  
 +
Error :: expected LP_c_double_Array_5 instance instead of LP_c_double_Array_5
 
***Re-arrangements in the scene take up a little more time than expected but that's not a major issue.
 
***Re-arrangements in the scene take up a little more time than expected but that's not a major issue.
 
**'''2nd August'''
 
**'''2nd August'''
Line 238: Line 237:
 
***Even though I was able to figure out (hopefully) what sort of data was required, there are some errors arising in terms of unexpected size of params and a clash due to multiple-variables coming in with the same name. I was able to debug this eventually, though I've had to change the original code.
 
***Even though I was able to figure out (hopefully) what sort of data was required, there are some errors arising in terms of unexpected size of params and a clash due to multiple-variables coming in with the same name. I was able to debug this eventually, though I've had to change the original code.
 
***Even after all the arguments are passed, the three approaches get stuck at the same place when they try to create the curves : https://hastebin.com/unapohiduq.coffeescript
 
***Even after all the arguments are passed, the three approaches get stuck at the same place when they try to create the curves : https://hastebin.com/unapohiduq.coffeescript
***File : https://github.com/Killthebug/python-brlcad/blob/cd3ed94705933600f2a94f9e7ccde2e2ddd69497/brlcad/primitives/sketch.py#L408  
+
File : https://github.com/Killthebug/python-brlcad/blob/cd3ed94705933600f2a94f9e7ccde2e2ddd69497/brlcad/primitives/sketch.py#L408  
 
**'''8th August'''
 
**'''8th August'''
 
***The sketch primitive binding (on the ctypesgen end) was broken/out-dated.
 
***The sketch primitive binding (on the ctypesgen end) was broken/out-dated.
Line 249: Line 248:
 
***A little into today and I've completed the describe function.
 
***A little into today and I've completed the describe function.
 
***There's an issue in rt_script_export5(). This is with regard to the space allocated for the buffer (ep->extbytes).
 
***There's an issue in rt_script_export5(). This is with regard to the space allocated for the buffer (ep->extbytes).
***Also, 4 characters seemed to be creeping into the struct (rt_script_internal *) script_ip->s_type variable. For now I've handled them by copying the bu_vls to a char array and then chopping off the first 4 characters in the char array.
+
Also, 4 characters seemed to be creeping into the struct (rt_script_internal *) script_ip->s_type variable. For now I've handled them by copying the bu_vls to a char array and then chopping off the first 4 characters in the char array.
***script_ip->s_type still remains to be fixed, but I imagine the fix would be minor.
+
script_ip->s_type still remains to be fixed, but I imagine the fix would be minor.
**'''12th August'''
 
***Blog post for python brlcad is up : https://medium.com/p/990e3c286a63/edit
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)