Skip to content

Commit

Permalink
Adding surface points display in terminal possibility in vision
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-hamel committed Jul 13, 2017
1 parent 263248b commit b732f37
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/dalai-vision/src/dalai-vision-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,14 @@

}

/*
source - display methods
*/

void dl_model_t::ml_dis_point( void ) {

/* display enable surface point */
ml_s[ml_sact].sf_dis_point();

}

4 changes: 4 additions & 0 deletions src/dalai-vision/src/dalai-vision-model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@

void ml_ren_frame( void );

/* ... */

void ml_dis_point( void );

};

/*
Expand Down
18 changes: 17 additions & 1 deletion src/dalai-vision/src/dalai-vision-surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
}

/*
source - render methods
source - rendering methods
*/

void dl_surface_t::sf_ren_surface( double const dl_w ) {
Expand Down Expand Up @@ -369,3 +369,19 @@

}

/*
source - display methods
*/

void dl_surface_t::sf_dis_point( void ) {

/* parsing surface points */
for ( long long dl_parse( 0 ); dl_parse < sf_size; dl_parse += 3 ) {

/* display point coordinates */
fprintf( stdout, "%f %f %f\n", sf_data[dl_parse], sf_data[dl_parse + 1], sf_data[dl_parse + 2] );

}

}

4 changes: 4 additions & 0 deletions src/dalai-vision/src/dalai-vision-surface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@

void sf_ren_point( void );

/* ... */

void sf_dis_point( void );

};

/*
Expand Down
7 changes: 7 additions & 0 deletions src/dalai-vision/src/dalai-vision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@

} break;

case ( SDLK_l ) : {

/* display surface points */
dl_model.ml_dis_point();

} break;

};

}
Expand Down

0 comments on commit b732f37

Please sign in to comment.