diff options
author | cnlohr <lohr85@gmail.com> | 2018-03-14 23:54:14 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-03-14 23:54:14 -0400 |
commit | 61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032 (patch) | |
tree | d5e4efd164d0001bb2545a2ff829c2ab201c0296 /test.c | |
parent | 3681b5df3cf518b0ded815d93cb45b176aea7440 (diff) | |
download | libsurvive-61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032.tar.gz libsurvive-61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032.tar.bz2 |
rename nr_locations to sensor_ct
Also, make it easier to see edges in calibrate.
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -118,7 +118,7 @@ static void dump_iface( struct SurviveObject * so, const char * prefix ) sprintf( fname, "%s_points.csv", prefix ); f = fopen( fname, "w" ); - for( i = 0; i < so->nr_locations; i++ ) + for( i = 0; i < so->sensor_ct; i++ ) { fprintf( f, "%g %g %g\n", so->sensor_locations[i*3+0], so->sensor_locations[i*3+1], so->sensor_locations[i*3+2] ); } @@ -126,7 +126,7 @@ static void dump_iface( struct SurviveObject * so, const char * prefix ) sprintf( fname, "%s_normals.csv", prefix ); f = fopen( fname, "w" ); - for( i = 0; i < so->nr_locations; i++ ) + for( i = 0; i < so->sensor_ct; i++ ) { fprintf( f, "%g %g %g\n", so->sensor_normals[i*3+0], so->sensor_normals[i*3+1], so->sensor_normals[i*3+2] ); } |