Editing User:NyahCh3ck20/Proposal
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 1: | Line 1: | ||
= Personal Information = | = Personal Information = | ||
− | |||
NAME : Check Nyah Watad Wallah | NAME : Check Nyah Watad Wallah | ||
− | |||
EMAIL: check.nyah@gmail.com | EMAIL: check.nyah@gmail.com | ||
− | |||
IRC: Ch3ck | IRC: Ch3ck | ||
Line 13: | Line 10: | ||
== Programming Background == | == Programming Background == | ||
− | Languages: C( | + | Languages: C(Excellent), Java(learning/Intermediate), C++(learning/basic) |
− | |||
− | |||
− | Wrote over a thousand lines of c code to increase performance of a sorted online dictionary used by French speaking students in our University using a redblack tree. | + | C: Wrote over a thousand lines of c code to increase performance of a sorted online dictionary used by French speaking students in our University using a redblack tree. |
− | Implemented a fibonnacci heap to demonstrate how it can increase performance of the Dijkstra's algorithm used in solving the single-source shortest path problem used in graph search. | + | Implemented a fibonnacci heap to demonstrate how it can increase performance of the Dijkstra's algorithm used in solving the single-source shortest path problem used in graph search. |
− | Java: | + | Java: Currently working on a Medical app to be integrated into the university website to determine the body mass Index of students in relation to the Health Awareness Initiative of the University. |
− | Currently working on a Medical app to be integrated into the university website to determine the body mass Index of students in relation to the Health Awareness Initiative of the University. | ||
= Project Information = | = Project Information = | ||
Line 34: | Line 28: | ||
=== Introduction === | === Introduction === | ||
− | The Pull/unpush command/routine is a high priority project for BRL-CAD. The pull command seeks to restore the original state of the csg tree from any particular node after the push command has been executed. However, the Push command is used to walk the geometry tree from a specified | + | The Pull/unpush command/routine is a high priority project for BRL-CAD. The pull command seeks to restore the original state of the csg tree from any particular node after the push command has been executed. However, the Push command is used to walk the geometry tree from a specified top to the primitive level, collecting the matrix transformations such as (translations, rotations or scales) applied to new assemblies using matrix edits(oed command). The push then applies the matrix tranformation parameters to the primitives, eliminationg the need for storing the various matrix transformations thereby setting them to identity matrices. This process however looses any local coorrdinate system used in constructing the geometric objects. The pull routine seeks to restore the original tree state by reversing any tranformation operations performed on the primitive shapes from a designated top node on the csg tree. Here, I would like to show my detailed proposal in solving this summer's project. My code patch will have a sample routine that takes as argument a designated node(such as a primitive) and performs the Inverse of any rotation, Inverse of any translation and the inverse of a scale.) and performs the matrix inverse the primitive matrix. |
Line 101: | Line 95: | ||
so the Inverse of a translation simply reverses the direction of the vector or matrix | so the Inverse of a translation simply reverses the direction of the vector or matrix | ||
if TrnA = (a, b ,c , d) Inverse(TrnA) = (-a, -b, -c, -d) | if TrnA = (a, b ,c , d) Inverse(TrnA) = (-a, -b, -c, -d) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Overall Structure Pull routine === | === Overall Structure Pull routine === | ||
Line 153: | Line 104: | ||
So, here is a summary of the pull command | So, here is a summary of the pull command | ||
− | *. | + | *. create a structure to hold the original matrix and corresponding local coordinate systems while calling InverseTranf(). |
*. det_trans()create a routine to copy the different matrix transformations performed on the primitive; which will then be given to InverseTransf() as an argument. | *. det_trans()create a routine to copy the different matrix transformations performed on the primitive; which will then be given to InverseTransf() as an argument. | ||
*. create a loop to move down the tree to the leaf and then recursively move up restoring the original matrix transformations. | *. create a loop to move down the tree to the leaf and then recursively move up restoring the original matrix transformations. | ||
Line 161: | Line 112: | ||
− | + | Tests and Verification: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
I believe test driven development would be key in finding and fixing problems with the pull routine and then with more tests to ensure the code functions correctly and its bulletproof to all forms of object inputs. This will be enhanced with the creation of a special regression test for the pull command to avoid modification of unwanted nodes/objects.Also, this command will be included among the MGED commands and a well written manual will be made so support the usage of the command. | I believe test driven development would be key in finding and fixing problems with the pull routine and then with more tests to ensure the code functions correctly and its bulletproof to all forms of object inputs. This will be enhanced with the creation of a special regression test for the pull command to avoid modification of unwanted nodes/objects.Also, this command will be included among the MGED commands and a well written manual will be made so support the usage of the command. | ||
Line 191: | Line 126: | ||
= Deliverables = | = Deliverables = | ||
− | |||
− | |||
− | |||
− | Integration of the Pull routine into MGED command interface together with Documentation containing(summary together with usage capabilities) | + | Implementation of the Inverse transformation routine. and other pull subroutines(mat_restore()). |
+ | Implementation of the complete pull routine with further testing. | ||
+ | Integration of the Pull routine into MGED command interface together with Documentation containing(summary together with usage capabilities) | ||
+ | |||
= Development schedule = | = Development schedule = | ||
− | |||
− | |||
− | |||
− | |||
− | + | == July 1st (~ 3 weeks) == | |
+ | Study BRLCAD Manuals and other Documentation on the Push Command | ||
+ | Discuss with other developers | ||
+ | Study the (src/libged , /include ) libraries and the implementation push/xpush commands. | ||
Discuss more coding specifications and implementations details with mentor/other developers | Discuss more coding specifications and implementations details with mentor/other developers | ||
− | + | ==July 21(1 week)== | |
− | + | Implementation of the Inverse Transformations with determination of original matrix transformations. | |
− | Implementation of the | ||
− | determination of original matrix transformations. | ||
− | |||
Tests on sample primitive matrices | Tests on sample primitive matrices | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Testing and functionality verification of function | + | ==July 28 - Aug 18(4 weeks) == |
+ | Implementation of do_restore() routine | ||
+ | which traverses nodes restoring the original matrix | ||
+ | Implementation of pull routine(pull_leaf() and others) | ||
+ | Testing and functionality verification of function | ||
− | Mid-term evaluation in July 29 - Aug. 2 | + | Mid-term evaluation in July 29 - Aug. 2 |
− | + | == Aug. 19 - Sept 14 (4 weeks) == | |
− | Finalization of complete pull routine | + | Finalization of complete pull routine |
− | + | ||
− | Tests | + | Tests |
− | Tests | + | Tests on the final pull routine on primitives |
− | + | ||
− | + | Integration of Pull into MGED command interface. | |
− | Integration of Pull into MGED command interface. | + | Testing of functionality of command |
− | + | and debugging | |
− | Testing of functionality of command and | + | == Sept 15 - Sept 21(1 week) == |
− | + | Tests | |
− | + | Fix bugs and improve performance of routine | |
− | Tests | + | Documentation and code clean up |
− | Fix bugs and improve performance of routine | ||
− | |||
− | Documentation and code clean up | ||
− | + | == Sept 23 - Sept 27(1 week) == | |
− | Final Evaluation | + | Final Evaluation |
− | Submission of Final code to Google. | + | Submission of Final code to Google. |
= Time availability = | = Time availability = | ||
− | I would be able to offer over 40 hours on the project. However, Our Second Semester ends late june or early july and our next semester begins in early October | + | |
+ | I would be able to offer over 40 hours on the project. However, Our Second Semester ends late june or early july and our next semester begins in early October. | ||
= Why BRL-CAD? = | = Why BRL-CAD? = |