aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-14 23:54:14 -0400
committercnlohr <lohr85@gmail.com>2018-03-14 23:54:14 -0400
commit61a01d0ddfd8e99c97e3d235d4f0782fbf0ed032 (patch)
treed5e4efd164d0001bb2545a2ff829c2ab201c0296 /test.c
parent3681b5df3cf518b0ded815d93cb45b176aea7440 (diff)
downloadlibsurvive-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index d4b3d6f..0052a60 100644
--- a/test.c
+++ b/test.c
@@ -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] );
}