Editing User:Xuwei/DevLog2019
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 211: | Line 211: | ||
* Learning the insert spec from dxf manual | * Learning the insert spec from dxf manual | ||
− | ===July | + | ===July 15th=== |
* Fix the block list and curr_block is not storing value properly | * Fix the block list and curr_block is not storing value properly | ||
− | * There is an | + | * There is an infinity loop caused by the file offset in the process_enitites_unknown |
− | ** It jumps to the | + | ** It jumps to the preivous line but does not jump back |
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 16th=== |
* Clean up most of the commented code in dxf.cc and dxf.h | * Clean up most of the commented code in dxf.cc and dxf.h | ||
* fix the curr_block memory issue by using a global variable indx that indicate the position of the block in block_list | * fix the curr_block memory issue by using a global variable indx that indicate the position of the block in block_list | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 17th=== |
* Adding back_file_offset to state_data to have the program jump back | * Adding back_file_offset to state_data to have the program jump back | ||
** Still getting the wrong result, the geometries are scattered but shapes are the same. | ** Still getting the wrong result, the geometries are scattered but shapes are the same. | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 18th=== |
* replace all memory allocation function related to insert with new and delete | * replace all memory allocation function related to insert with new and delete | ||
** valgrind now output no error or warning | ** valgrind now output no error or warning | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 19th=== |
* Download and build brlcad to test out what's the difference and if it can output the correct result | * Download and build brlcad to test out what's the difference and if it can output the correct result | ||
** There is no problem with the curr_state->file_offset | ** There is no problem with the curr_state->file_offset | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 20th=== |
* Found that the brlcad xform is different than my version. | * Found that the brlcad xform is different than my version. | ||
** Can't figure out why it's different | ** Can't figure out why it's different | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 21th=== |
* Found the BU_LIST_POP actually assign curr_state to the last element of the list | * Found the BU_LIST_POP actually assign curr_state to the last element of the list | ||
** This fix the infinity loop and remove back_file_offset. | ** This fix the infinity loop and remove back_file_offset. | ||
* Continue on fixing insert | * Continue on fixing insert | ||
− | ===July | + | ===July 22th=== |
*By switching the push_back and new_state = curr_state this fix the xform problem. | *By switching the push_back and new_state = curr_state this fix the xform problem. | ||
** Insert is fixed but it looks there is an issue with different compiler | ** Insert is fixed but it looks there is an issue with different compiler | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |