Revision: 58305 http://sourceforge.net/p/brlcad/code/58305 Author: carlmoore Date: 2013-10-25 18:07:47 +0000 (Fri, 25 Oct 2013) Log Message: ----------- initialize lens_1side_side in its declaration; usage will now include defaults and unit specification
Modified Paths: -------------- brlcad/trunk/src/proc-db/lens.c Modified: brlcad/trunk/src/proc-db/lens.c =================================================================== --- brlcad/trunk/src/proc-db/lens.c 2013-10-25 18:04:04 UTC (rev 58304) +++ brlcad/trunk/src/proc-db/lens.c 2013-10-25 18:07:47 UTC (rev 58305) @@ -74,6 +74,8 @@ printusage(void) { fprintf(stderr,"Usage: [-T lens_type] [-r refractive_index] [-d diameter]\n"); fprintf(stderr," [-t thickness] [-f focal_length] [filename]\n"); + fprintf(stderr,"defaults: T = 2 (the other possible value is 1), r = 1.5, d = 200, t = 40, f = 600\n"); + fprintf(stderr,"(units mm)\n"); } static void @@ -268,7 +270,7 @@ struct rt_wdb *db_fp = NULL; struct bu_vls lens_type = BU_VLS_INIT_ZERO; struct bu_vls name = BU_VLS_INIT_ZERO; - int lens_1side_2side; + int lens_1side_2side = 2; fastf_t ref_ind, thickness, diameter, focal_length; bu_vls_trunc(&lens_type, 0); @@ -278,7 +280,6 @@ diameter = 200; thickness = diameter/5; focal_length = 600; - lens_1side_2side = 2; bu_vls_printf(&lens_type, "DCX"); bu_vls_printf(&name, "lens_%s_f%.1f_d%.1f", bu_vls_addr(&lens_type), focal_length, diameter); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits