Editing User:Vikram Atreya/GSoC21/Project

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 4: Line 4:
 
*Set up the blog and wiki
 
*Set up the blog and wiki
 
*Decide on which approach to implement UNDO
 
*Decide on which approach to implement UNDO
 
  
 
===Development Plan===
 
===Development Plan===
Line 22: Line 21:
 
*Week 8: Document work and issues faced
 
*Week 8: Document work and issues faced
 
*Week 9: Prepare for final evaluations
 
*Week 9: Prepare for final evaluations
 
 
===Design ideas===
 
* Facilitate 10-15 undos from the latest state
 
* Initially no redo command and later states are deleted once undo is used
 
* Works only on objects and not on other data stored
 
* Plain undo with no flags does just 1 undo
 
* ``` -n  X``` flag does multiple undos, where X is no of undos to be done
 
 
 
===Implementation ideas===
 
* Full checkpoint is stored before 15 commands.
 
* Form an array with values as names of all non-hidden objects, search for backups in hidden objects (backup should have a version just previous to the no of undos requested). After iterating through all backup objects if we do not find a backup, ,which should ideally be found in the full checkpoint even if it was not backed up later, we killthat object.
 
* Undo can also be considered to be a normal command and full checpoint can be created before undoing, so that redo will be done with an undo.
 

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)