Revision: 41932
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41932&view=rev
Author:   starseeker
Date:     2011-01-04 17:01:07 +0000 (Tue, 04 Jan 2011)

Log Message:
-----------
More tweaks from CMake branch related either to spectrum stuff, 
raybundle/shootray_bundle, or getting hurt.c to build on Windows (do we still 
want/need hurt for anything?)

Modified Paths:
--------------
    brlcad/trunk/src/rt/hurt.c
    brlcad/trunk/src/rt/rtshot.c
    brlcad/trunk/src/rttherm/ssamp-bw.c

Modified: brlcad/trunk/src/rt/hurt.c
===================================================================
--- brlcad/trunk/src/rt/hurt.c  2011-01-04 16:57:07 UTC (rev 41931)
+++ brlcad/trunk/src/rt/hurt.c  2011-01-04 17:01:07 UTC (rev 41932)
@@ -162,22 +162,31 @@
 
 /* Viewing module specific "set" variables */
 struct bu_structparse view_parse[] = {
-    {"%d",     1, "bounces",   bu_byteoffset(max_bounces),             
BU_STRUCTPARSE_FUNC_NULL, "bounces", &max_bounces },
-    {"%d",     1, "ireflect",  bu_byteoffset(max_ireflect),            
BU_STRUCTPARSE_FUNC_NULL, "max ireflect", &max_ireflect },
-    {"%d",     1, "a_onehit",  bu_byteoffset(a_onehit),                
BU_STRUCTPARSE_FUNC_NULL, "one hit", &a_onehit },
-    {"%f", ELEMENTS_PER_VECT, "background", bu_byteoffset(background[0]),      
BU_STRUCTPARSE_FUNC_NULL, "background color", &background },
-    {"",       0, (char *)0,   0,                              
BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }
+       {"%f", 1, "gamma", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%d", 1, "bounces", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%d", 1, "ireflect", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%d", 1, "a_onehit", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%f", ELEMENTS_PER_VECT, "background", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%d", 1, "overlay", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"%d", 1, "ov", 0, BU_STRUCTPARSE_FUNC_NULL},
+       {"", 0, (char *)0, 0, BU_STRUCTPARSE_FUNC_NULL}
 };
 
 struct bu_structparse set_parse[] = {
-    {"%d",     1, "width",     bu_byteoffset(width),           
BU_STRUCTPARSE_FUNC_NULL, "width", &width },
-    {"%d",     1, "height",    bu_byteoffset(height),          
BU_STRUCTPARSE_FUNC_NULL, "height", &height },
-    {"%f",     1, "perspective", bu_byteoffset(rt_perspective),        
BU_STRUCTPARSE_FUNC_NULL, "perspective", &rt_perspective },
-    {"%f",     1, "angle",     bu_byteoffset(rt_perspective),  
BU_STRUCTPARSE_FUNC_NULL, "angle", &rt_perspective },
-    {"%p", bu_byteoffset(view_parse[0]), "View_Module-Specific Parameters", 0, 
BU_STRUCTPARSE_FUNC_NULL, "params", NULL },
-    {"",       0, (char *)0,   0,                              
BU_STRUCTPARSE_FUNC_NULL, NULL, NULL }
+       {"%d",      1, "width",     bu_byteoffset(width),           
BU_STRUCTPARSE_FUNC_NULL },
+       {"%d",      1, "height",    bu_byteoffset(height),          
BU_STRUCTPARSE_FUNC_NULL },
+       {"%f",      1, "perspective", bu_byteoffset(rt_perspective),        
BU_STRUCTPARSE_FUNC_NULL },
+       {"%f",      1, "angle",     bu_byteoffset(rt_perspective),  
BU_STRUCTPARSE_FUNC_NULL },
+#if !defined(_WIN32) || defined(__CYGWIN__)
+       {"%d",  1, "rt_bot_minpieces", bu_byteoffset(rt_bot_minpieces), 
BU_STRUCTPARSE_FUNC_NULL },
+       {"%d",  1, "rt_bot_tri_per_piece", bu_byteoffset(rt_bot_tri_per_piece), 
BU_STRUCTPARSE_FUNC_NULL },
+       {"%f",  1, "rt_cline_radius", bu_byteoffset(rt_cline_radius), 
BU_STRUCTPARSE_FUNC_NULL },
+#endif
+       {"%p", bu_byteoffset(view_parse[0]), "View_Module-Specific Parameters", 
0, BU_STRUCTPARSE_FUNC_NULL },
+       {"",        0, (char *)0,   0,                              
BU_STRUCTPARSE_FUNC_NULL }
 };
 
+
 /*
  * For certain hypersample values there is a particular advantage to 
subdividing
  * the pixel and shooting a ray in each sub-pixel.  This structure keeps track 
of

Modified: brlcad/trunk/src/rt/rtshot.c
===================================================================
--- brlcad/trunk/src/rt/rtshot.c        2011-01-04 16:57:07 UTC (rev 41931)
+++ brlcad/trunk/src/rt/rtshot.c        2011-01-04 17:01:07 UTC (rev 41932)
@@ -40,18 +40,10 @@
 #include "rtprivate.h"
 #include "plot3.h"
 
+extern int rt_shootray_bundle (struct application *ap, struct xray *rays, int 
nrays);
+extern int rt_raybundle_maker(struct xray *rp, double radius, const fastf_t 
*avec, const fastf_t *bvec, int rays_per_ring, int nring);
 
-extern void rt_raybundle_maker(struct xray *rp,
-                              double radius,
-                              const vect_t avec,
-                              const vect_t bvec,
-                              int rays_per_ring,
-                              int nring);
 
-extern int rt_shootray_bundle(struct application *ap,
-                             struct xray *rays,
-                             int nrays);
-
 char usage[] = "\
 Usage:  rtshot [options] model.g objects...\n\
  -U #          Set reporting of air regions (default=1)\n\

Modified: brlcad/trunk/src/rttherm/ssamp-bw.c
===================================================================
--- brlcad/trunk/src/rttherm/ssamp-bw.c 2011-01-04 16:57:07 UTC (rev 41931)
+++ brlcad/trunk/src/rttherm/ssamp-bw.c 2011-01-04 17:01:07 UTC (rev 41932)
@@ -35,6 +35,7 @@
 #include "bn.h"
 #include "raytrace.h"
 #include "spectrum.h"
+#include "optical.h"
 
 
 int verbose = 0;
@@ -46,8 +47,6 @@
 char *datafile_basename = "mtherm";
 char spectrum_name[100];
 
-extern struct bn_table *spectrum;      /* spectrum table from liboptical */
-
 struct bn_tabdata *data;               /* a big array */
 
 struct bn_tabdata *filt;               /* filter kernel */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to