Difference between revisions of "User:Amritpal singh/GSoC17/logs"

From BRL-CAD
(Coding Period)
(Coding Period)
Line 26: Line 26:
 
'''7 June''' : Today, I have learnt that how to add an image in the dialog box using PySide. For eg. I simply added QLabel object at the top of the dialog box using Qtcreator and then use <code>label.setPixmap(QtGui.QPixmap(<path>))</code> command to add an image. Also, followed some links/tutorials to learn Inkscape.
 
'''7 June''' : Today, I have learnt that how to add an image in the dialog box using PySide. For eg. I simply added QLabel object at the top of the dialog box using Qtcreator and then use <code>label.setPixmap(QtGui.QPixmap(<path>))</code> command to add an image. Also, followed some links/tutorials to learn Inkscape.
 
[[File:Straightrebar_image.png|frame|center|200px]]
 
[[File:Straightrebar_image.png|frame|center|200px]]
 +
 +
'''8 June''' : Today, I have added checks to my Python code. These checks will verify that user have selected the face or not and if only user have selected a single face then only rebar object is created. [https://github.com/amrit3701/FreeCAD-Reinforcement/commit/c329b018a2c28538174f006ac55f057bf35f5de0 Commit]

Revision as of 14:30, 8 June 2017

Community Bonding Period


  • Discussion of a project on FreeCAD forum and on IRC.
  • Compile Qt plugin of FreeCAD to load FreeCAD widgets in QT creator.
  • Understanding the code of ArchRebar object.
  • Added PlacementList property to the rebar object. The PlacementList holds the placement of all the rebars. Pull request.


Coding Period


1 June : Today, officially my all exams are over and from now onwards I will give my 100 percent to my GSoC project. I have written TODO tasks for upcoming two weeks.

2 June : I have found a couple of shortcomings bugs in my scripts which I have shared before community bonding period. Also discussed these bugs with my mentor.

3 June : Yesterday, Yorik (my mentor) gave some suggestion that how to fix these bugs. Today, I was trying to make the logic which will work on any type of reinforcement and trying to implement that logic through programming. Also, explored functions like face.normalAt(), face.CenterOfMass().

4 June : Today, I designed the taskpanel UI of straight rebar in Qtcreator by using FreeCAD widgets.

Straightrebar taskpanel.png

5 June : Today, I have integrated the task panel UI of straight rebar with backend scripts. This script will take input values from task panel and then pass input values to makeStraightRebar() function which will create reinforcement of straight rebar in the structural element. For more detail, here are my commits.

6 June : Today, I have shared my scripts to the mentor for review. Here are the reviews: https://forum.freecadweb.org/viewtopic.php?f=8&t=22760&sid=edc3a89eda2a484d1af55128b1781e6b#p177059

7 June : Today, I have learnt that how to add an image in the dialog box using PySide. For eg. I simply added QLabel object at the top of the dialog box using Qtcreator and then use label.setPixmap(QtGui.QPixmap(<path>)) command to add an image. Also, followed some links/tutorials to learn Inkscape.

Straightrebar image.png

8 June : Today, I have added checks to my Python code. These checks will verify that user have selected the face or not and if only user have selected a single face then only rebar object is created. Commit