Difference between revisions of "User:Bhollister/DevLogJune2015"

From BRL-CAD
(Friday, June 12, 2015)
 
(17 intermediate revisions by the same user not shown)
Line 66: Line 66:
  
 
* need to attend graduation ceremonies practice for a few hours (starts @ 1 PM PDT, but need to pick up gown, etc.)
 
* need to attend graduation ceremonies practice for a few hours (starts @ 1 PM PDT, but need to pick up gown, etc.)
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/0a00c24701c90e292154bc53e06e107ae8f462e4 commit #1 for today]: added impl for nmg_mmr for CLI. almost identical to ged_nmg_mm, but region is created for the new model.
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/5961a0e291b4927291a8bfe939ddb99309715613 commit #2 for today]: added preliminary nmg_msv CLI command. command accepts model name and adds shell / vertex to the first region encountered via BU_LIST_FIRST. the command also performs NMG_CK_REGION. if a model doesn't have a region, then this check causes MGED to log a bad pointer error and crash. TODO: may need to find a way to specify region to CLI and handle error w/o crash.
  
 
= Saturday, June 13, 2015 =
 
= Saturday, June 13, 2015 =
 +
 +
* relatives visiting thru Thursday
  
 
= Sunday, June 14, 2015 =
 
= Sunday, June 14, 2015 =
Line 80: Line 84:
  
 
= Monday, June 15, 2015: '''''Start of Week 4 (of 14)''''' =
 
= Monday, June 15, 2015: '''''Start of Week 4 (of 14)''''' =
 +
 +
* added nmg_me imp for CLI. not committed to github yet due to merge conflicts?? todo: fix this tomorrow!
 +
* read thru [http://t3550.cad-brlcad-development.cadtalk.us/some-thoughts-about-the-nmg-primitive-t3550.html some-thoughts-about-nmg-primitve]
 +
* concerning [http://t3550.cad-brlcad-development.cadtalk.us/some-thoughts-about-the-nmg-primitive-t3550.html some-thoughts-about-nmg-primitve], not sure if shells or regions will be specified or used on CLI.
 +
* todo: need to find problem with nmg_msv CLI. appears that it is not adding new shell to nmg data structure
 +
* todo: fix nmg_me CLI to allow for setting vertex coords (current impl only adds vertexuses via nmg_mvvu)
  
 
= Tuesday, June 16, 2015 =
 
= Tuesday, June 16, 2015 =
 +
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/3f6102f573a09058c2c1e5c47ceed6227057082f commit #1 yesterday]:  added nmg_me to CLI. can't currently set vertex coord but the vertexuses are added properly.
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/afeb00de7c1d5038d5eb33d59e47df5fdd0b8143 commit #1 for today]: adding CLI version of nmg_me. command takes two vertex coords and the name of the model. the first region / shell are used. also, updating comment in ged_nmg_msv.
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/f0a04b7981a1d7ce85524c921a781a7a38678145 commit #2 for today]: added ged_nmg_mvvu. routine takes first region / shell as parent structure in model to add vertex / vertexuse. note that a NULL pointer is added to the vertexuse struct. although possibly not clear, ged_nmg_mvu can be used to set a specific vertex instance for the vertexuse, i.e. a *new* vertexuse.
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/e82d939a47b4b888ce80cdec3452c8739e43fdff commit #3 for today]: ged_nmg_mvu impl prelim. need to find vertex with coordinates given on CLI. Use the parent struct of the found vertex as upptr. Here, this is a shell. TODO: the point of this routine is to re-assign a vertexuse to an *existing* vertex. Right now, this routine finds a shell with the specified vertex and replaces the vertexuse in that shell. we need to find a vertexuse *not* in a shell, such as an edge, and reassign it a *new* vertexuse. CLI doesn't use vertex id, so coord may be non-unique to multiple vertices in nmg model. IMPORTANTLY: crashing on curr_vg = curr_s->vu_p->v_p->vg_p; Need to fix.
 +
* todo: need to fix nasty white spacing issues in submitted code revisions!
  
 
= Wednesday, June 17, 2015 =
 
= Wednesday, June 17, 2015 =
 +
 +
* last day of relatives' visit. taking day off. will work some saturday as makeup.
  
 
= Thursday, June 18, 2015 =
 
= Thursday, June 18, 2015 =
 +
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/bd3738b720ae18df38440a178e7c41efd0744fd0?diff=split commit #1 for today]:  added ged_nmg_ml. calls nmg_ml directly with the first encountered region / shell in model. if shell doesn't have the required edgeuses / edges, then program throws and error.
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/3e1b8791315bd1d20d82192c956af609510b140f?diff=split commit #2 for today]:  added ged_nmg_meonvu. user can specify a vertex coord on CLI. routine searches for the first encountered vertexuse that uses a vertex instance (coord). note: this is not what the internal api function is meant to do. it uses a *vertexuse*. todo: pass a *vertexuse* if possible from the CLI, or find another way to define similar construction routine that is more suitable for the CLI. once the vertexuse / vertex / geom is found, an "empty" edge with the same topological vertex(use?) is inserted into the model.
 +
* found how to properly traverse model with BU_LIST_PNEXT macro. todo: need to update ged_nmg_mvu to reflect this correction.
  
 
= Friday, June 19, 2015 =
 
= Friday, June 19, 2015 =
 +
 +
* received direction by mentors to add single top-level nmg CLI command
 +
* todo: move all other nmg commands as private subcommands callable only via single top-level CLI command
 +
* todo: extend nmg *construction* routines dev time into week 5. week 5 / 6 of schedule was originally allocated for *destruction* routines, but these are fewer and simpler than the *construction* subcommands for nmg; todo: update project schedule
 +
* todo: provide a straight-forward method to create a simple primitive, such as a cube using the *new* nmg CLI
  
 
= Saturday, June 20, 2015 =
 
= Saturday, June 20, 2015 =
 +
 +
* n/a
  
 
= Sunday, June 21, 2015 =
 
= Sunday, June 21, 2015 =
 +
 +
* n/a
  
 
= Monday, June 22, 2015: '''''Start of Week 5 (of 14)''''' =
 
= Monday, June 22, 2015: '''''Start of Week 5 (of 14)''''' =
 +
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/c36b98e4097a44262926d55b634fbc821065e9fc?diff=split commit #1 for today]:  added top-level nmg command stub (only usage info reported).
 +
* todo: will pass on CLI paramaters to appropriate subcommand
 +
* todo: need to add remaining destruction and manipulation subcommands to current stub
  
 
= Tuesday, June 23, 2015 =
 
= Tuesday, June 23, 2015 =
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/fce10d06fa65aa5c44ddb90634ecdaec62a4bd73?diff=split commit #1 for today]: added subcommand handling for construction routines
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/b4d9a32189720b14e298988373de91ed12333efd?diff=split commit #2 for today]: added convenience construction and destruction stubs
 +
* should be able to submit patch for nmg command stub...after adding manipulation routines tomorrow
  
 
= Wednesday, June 24, 2015 =
 
= Wednesday, June 24, 2015 =
 +
 +
* investigated uses of internal nmg api. found /src/proc-db/nmgmodel.c
 +
* todo: need to find proper uses of internal api in order to provide best interface to nmg via CLI (checking with mentors)
 +
* suggested scaling back proposal to nmg work only (in line with original brlcad gsoc suggestions from wiki)
 +
non-brlcad time expenditures...
 +
* birthday today, so only half-day work. will work the weekend if possible.
 +
* spent some time updating resume + applying for positions
  
 
= Thursday, June 25, 2015 =
 
= Thursday, June 25, 2015 =
 +
 +
* updated project schedule to reflect NMG *only* work. approval by mentor in IRC.
 +
* nmgmodel.c compiles to src/proc-db/nmgmodel in the build directory
 +
* todo: need to further investigate /src/proc-db/nmgmodel.c as model for new CLI
 +
non-brlcad time expenditures...
 +
* spent some time updating resume + applying for positions
  
 
= Friday, June 26, 2015 =
 
= Friday, June 26, 2015 =
 +
 +
* added patch https://sourceforge.net/p/brlcad/patches/387/
 +
* todo: for weekend, add subcommands to add faces with variable number of verts on commandline
  
 
= Saturday, June 27, 2015 =
 
= Saturday, June 27, 2015 =
 +
 +
* n/a
  
 
= Sunday, June 28, 2015 =
 
= Sunday, June 28, 2015 =
 +
 +
* n/a
  
 
= Monday, June 29, 2015: '''''Start of Week 6 (of 14)''''' =
 
= Monday, June 29, 2015: '''''Start of Week 6 (of 14)''''' =
 +
 +
* updated patch 387: https://sourceforge.net/p/brlcad/patches/387/
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/35b56cfd9b07c04b9fddf2f542b8bd0d2f1200fe?diff=split commit #1 for today]:  added extern function prototypes to fix build on some configurations
 +
* traced thru src/proc-db/nmgmodel.c; todo: will use that approach to add high-level command to add manifold quad faces to nmg model this week.
  
 
= Tuesday, June 30, 2015 =
 
= Tuesday, June 30, 2015 =
 +
 +
* [https://github.com/behollis/brlcad-svn-rev65072-gsoc2015/commit/20a5379fb8282a4731ddac283c5976d18fa0dc08?diff=split commit #1 for today]:  added ged_nmg_cmface impl. some issues with null model when filling out vertices.
 +
* updated patch https://sourceforge.net/p/brlcad/patches/387/ with UNUSED macro
 +
* todo: need to check patch with -DBRLCAD_ENABLE_STRICT=YES and resubmit fix if needed

Latest revision as of 19:20, 30 June 2015



Monday, June 1, 2015: Start of Week 2 (of 14)[edit]

  • dissertation work

Tuesday, June 2, 2015[edit]

  • dissertation work

Wednesday, June 3, 2015[edit]

  • dissertation defense @ 12:45-2pm PDT

Thursday, June 4, 2015[edit]

Friday, June 5, 2015[edit]

  • received a few pointers on NMG, and a document link in weekly mtg
  • dissertation editing

Saturday, June 6, 2015[edit]

  • dissertation editing

Sunday, June 7, 2015[edit]

  • dissertation editing

Monday, June 8, 2015: Start of Week 3 (of 14)[edit]

Tuesday, June 9, 2015[edit]

  • final dissertation edits
  • submitted final dissertation to ProQuest
  • delivered signatures, etc. for degree
  • took online surveys for degree
  • note #1: (todo) need to talk to mentors about cmd line interface; some construction routines in "Combinatorial Solid Geometry, Boundary Representations, and Non-Manifold Geometry," are likely too low-level. for instance, does it make sense to specify 'vertexuse' / 'edgeuse' at the cmd line?? possibly only routines that require user specified *new* vertices and edges will be implemented... also, we may not want to implement some of the api functions that only create empty shells / regions for new models. models can already be created using the cmd make.
  • note #2: construction routines don't require passing particular instances of existing geometry. this makes their impl likely easier than destruction routines in terms of specifying geometry at the CLI.

Wednesday, June 10, 2015[edit]

  • commit #1 for today: added call to internal api for "Make Region, Shell, Vertex"
  • tried various testing with creating nmg geometry, but was not fully able to create nmg test cases with primitives. need to retry using "facetize" command again or another route
  • need to determine if we need a higher-level CLI than internal NMG access API functions; some of this is already implemented in nmg_simplify, nmg_fix_normals, make, etc.

Thursday, June 11, 2015[edit]

  • commit #1 for today: added impl for nmg_mm; small fix for return code from nmg_mrsv CLI libged function
  • friday todo: implement nmg_mmr()
  • friday todo: implment nmg_msv() - figure out how to specify region and pass that to CLI from MGED display (or archer)

Friday, June 12, 2015[edit]

  • need to attend graduation ceremonies practice for a few hours (starts @ 1 PM PDT, but need to pick up gown, etc.)
  • commit #1 for today: added impl for nmg_mmr for CLI. almost identical to ged_nmg_mm, but region is created for the new model.
  • commit #2 for today: added preliminary nmg_msv CLI command. command accepts model name and adds shell / vertex to the first region encountered via BU_LIST_FIRST. the command also performs NMG_CK_REGION. if a model doesn't have a region, then this check causes MGED to log a bad pointer error and crash. TODO: may need to find a way to specify region to CLI and handle error w/o crash.

Saturday, June 13, 2015[edit]

  • relatives visiting thru Thursday

Sunday, June 14, 2015[edit]

  • graduation ceremonies attendance (most of the day)

End of Spring Term @ UCSC; Now GSoC Full-time![edit]


Monday, June 15, 2015: Start of Week 4 (of 14)[edit]

  • added nmg_me imp for CLI. not committed to github yet due to merge conflicts?? todo: fix this tomorrow!
  • read thru some-thoughts-about-nmg-primitve
  • concerning some-thoughts-about-nmg-primitve, not sure if shells or regions will be specified or used on CLI.
  • todo: need to find problem with nmg_msv CLI. appears that it is not adding new shell to nmg data structure
  • todo: fix nmg_me CLI to allow for setting vertex coords (current impl only adds vertexuses via nmg_mvvu)

Tuesday, June 16, 2015[edit]

  • commit #1 yesterday: added nmg_me to CLI. can't currently set vertex coord but the vertexuses are added properly.
  • commit #1 for today: adding CLI version of nmg_me. command takes two vertex coords and the name of the model. the first region / shell are used. also, updating comment in ged_nmg_msv.
  • commit #2 for today: added ged_nmg_mvvu. routine takes first region / shell as parent structure in model to add vertex / vertexuse. note that a NULL pointer is added to the vertexuse struct. although possibly not clear, ged_nmg_mvu can be used to set a specific vertex instance for the vertexuse, i.e. a *new* vertexuse.
  • commit #3 for today: ged_nmg_mvu impl prelim. need to find vertex with coordinates given on CLI. Use the parent struct of the found vertex as upptr. Here, this is a shell. TODO: the point of this routine is to re-assign a vertexuse to an *existing* vertex. Right now, this routine finds a shell with the specified vertex and replaces the vertexuse in that shell. we need to find a vertexuse *not* in a shell, such as an edge, and reassign it a *new* vertexuse. CLI doesn't use vertex id, so coord may be non-unique to multiple vertices in nmg model. IMPORTANTLY: crashing on curr_vg = curr_s->vu_p->v_p->vg_p; Need to fix.
  • todo: need to fix nasty white spacing issues in submitted code revisions!

Wednesday, June 17, 2015[edit]

  • last day of relatives' visit. taking day off. will work some saturday as makeup.

Thursday, June 18, 2015[edit]

  • commit #1 for today: added ged_nmg_ml. calls nmg_ml directly with the first encountered region / shell in model. if shell doesn't have the required edgeuses / edges, then program throws and error.
  • commit #2 for today: added ged_nmg_meonvu. user can specify a vertex coord on CLI. routine searches for the first encountered vertexuse that uses a vertex instance (coord). note: this is not what the internal api function is meant to do. it uses a *vertexuse*. todo: pass a *vertexuse* if possible from the CLI, or find another way to define similar construction routine that is more suitable for the CLI. once the vertexuse / vertex / geom is found, an "empty" edge with the same topological vertex(use?) is inserted into the model.
  • found how to properly traverse model with BU_LIST_PNEXT macro. todo: need to update ged_nmg_mvu to reflect this correction.

Friday, June 19, 2015[edit]

  • received direction by mentors to add single top-level nmg CLI command
  • todo: move all other nmg commands as private subcommands callable only via single top-level CLI command
  • todo: extend nmg *construction* routines dev time into week 5. week 5 / 6 of schedule was originally allocated for *destruction* routines, but these are fewer and simpler than the *construction* subcommands for nmg; todo: update project schedule
  • todo: provide a straight-forward method to create a simple primitive, such as a cube using the *new* nmg CLI

Saturday, June 20, 2015[edit]

  • n/a

Sunday, June 21, 2015[edit]

  • n/a

Monday, June 22, 2015: Start of Week 5 (of 14)[edit]

  • commit #1 for today: added top-level nmg command stub (only usage info reported).
  • todo: will pass on CLI paramaters to appropriate subcommand
  • todo: need to add remaining destruction and manipulation subcommands to current stub

Tuesday, June 23, 2015[edit]

  • commit #1 for today: added subcommand handling for construction routines
  • commit #2 for today: added convenience construction and destruction stubs
  • should be able to submit patch for nmg command stub...after adding manipulation routines tomorrow

Wednesday, June 24, 2015[edit]

  • investigated uses of internal nmg api. found /src/proc-db/nmgmodel.c
  • todo: need to find proper uses of internal api in order to provide best interface to nmg via CLI (checking with mentors)
  • suggested scaling back proposal to nmg work only (in line with original brlcad gsoc suggestions from wiki)

non-brlcad time expenditures...

  • birthday today, so only half-day work. will work the weekend if possible.
  • spent some time updating resume + applying for positions

Thursday, June 25, 2015[edit]

  • updated project schedule to reflect NMG *only* work. approval by mentor in IRC.
  • nmgmodel.c compiles to src/proc-db/nmgmodel in the build directory
  • todo: need to further investigate /src/proc-db/nmgmodel.c as model for new CLI

non-brlcad time expenditures...

  • spent some time updating resume + applying for positions

Friday, June 26, 2015[edit]

Saturday, June 27, 2015[edit]

  • n/a

Sunday, June 28, 2015[edit]

  • n/a

Monday, June 29, 2015: Start of Week 6 (of 14)[edit]

Tuesday, June 30, 2015[edit]