[brlcad-commits] SF.net SVN: brlcad:[41848] brlcad/trunk

2010-12-29 Thread brlcad
Revision: 41848
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41848&view=rev
Author:   brlcad
Date: 2010-12-30 07:37:50 + (Thu, 30 Dec 2010)

Log Message:
---
default quellage on 64-bit linux.  just a spoon full of constness needed.  also 
removed unused rect code.

Modified Paths:
--
brlcad/trunk/include/ged.h
brlcad/trunk/src/libdm/dm-generic.c
brlcad/trunk/src/libdm/dm-plot.c
brlcad/trunk/src/libdm/dm-ps.c
brlcad/trunk/src/libged/rect.c
brlcad/trunk/src/libged/wdb_obj.c

Modified: brlcad/trunk/include/ged.h
===
--- brlcad/trunk/include/ged.h  2010-12-30 07:27:40 UTC (rev 41847)
+++ brlcad/trunk/include/ged.h  2010-12-30 07:37:50 UTC (rev 41848)
@@ -687,12 +687,12 @@
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
 int argc,
-char *argv[]));
+const char *argv[]));
 GED_EXPORT BU_EXTERN(int   wdb_adjust_cmd,
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
 int argc,
-char *argv[]));
+const char *argv[]));
 GED_EXPORT BU_EXTERN(int   wdb_form_cmd,
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,

Modified: brlcad/trunk/src/libdm/dm-generic.c
===
--- brlcad/trunk/src/libdm/dm-generic.c 2010-12-30 07:27:40 UTC (rev 41847)
+++ brlcad/trunk/src/libdm/dm-generic.c 2010-12-30 07:37:50 UTC (rev 41848)
@@ -35,8 +35,8 @@
 #include "dm.h"
 
 
-extern struct dm *plot_open(Tcl_Interp *interp, int argc, char **argv);
-extern struct dm *ps_open(Tcl_Interp *interp, int argc, char **argv);
+extern struct dm *plot_open(Tcl_Interp *interp, int argc, const char *argv[]);
+extern struct dm *ps_open(Tcl_Interp *interp, int argc, const char *argv[]);
 
 #ifdef DM_X
 extern struct dm *X_open_dm();
@@ -66,7 +66,7 @@
 
 
 HIDDEN struct dm *
-Nu_open(Tcl_Interp *interp, int argc, char *argv[])
+Nu_open(Tcl_Interp *interp, int argc, const char *argv[])
 {
 if (interp || argc < 0 || !argv)
return DM_NULL;

Modified: brlcad/trunk/src/libdm/dm-plot.c
===
--- brlcad/trunk/src/libdm/dm-plot.c2010-12-30 07:27:40 UTC (rev 41847)
+++ brlcad/trunk/src/libdm/dm-plot.c2010-12-30 07:37:50 UTC (rev 41848)
@@ -53,7 +53,6 @@
 /* Display Manager package interface */
 
 #define PLOTBOUND 1000.0   /* Max magnification in Rot matrix */
-struct dm *plot_open(Tcl_Interp *interp, int argc, char **argv);
 
 HIDDEN_DM_FUNCTION_PROTOTYPES(plot)
 
@@ -133,7 +132,7 @@
  *
  */
 struct dm *
-plot_open(Tcl_Interp *interp, int argc, char **argv)
+plot_open(Tcl_Interp *interp, int argc, const char *argv[])
 {
 static int count = 0;
 struct dm *dmp;

Modified: brlcad/trunk/src/libdm/dm-ps.c
===
--- brlcad/trunk/src/libdm/dm-ps.c  2010-12-30 07:27:40 UTC (rev 41847)
+++ brlcad/trunk/src/libdm/dm-ps.c  2010-12-30 07:37:50 UTC (rev 41848)
@@ -53,7 +53,6 @@
 /* Display Manager package interface */
 
 #define PLOTBOUND 1000.0   /* Max magnification in Rot matrix */
-struct dm *ps_open(Tcl_Interp *interp, int argc, char **argv);
 
 HIDDEN_DM_FUNCTION_PROTOTYPES(ps)
 
@@ -136,7 +135,7 @@
  *
  */
 struct dm *
-ps_open(Tcl_Interp *interp, int argc, char **argv)
+ps_open(Tcl_Interp *interp, int argc, const char *argv[])
 {
 static int count = 0;
 struct dm *dmp;

Modified: brlcad/trunk/src/libged/rect.c
===
--- brlcad/trunk/src/libged/rect.c  2010-12-30 07:27:40 UTC (rev 41847)
+++ brlcad/trunk/src/libged/rect.c  2010-12-30 07:37:50 UTC (rev 41848)
@@ -39,7 +39,6 @@
 
 /* Defined in rect.c */
 static void ged_rect_vls_print(struct ged *gedp);
-static void ged_rect_view2image(struct ged_rect_state *grsp);
 static void ged_rect_image2view(struct ged_rect_state *grsp);
 static void ged_rect_adjust_for_zoom(struct ged_rect_state *grsp);
 static int ged_rect_rt(struct ged *gedp, int port);
@@ -346,19 +345,6 @@
 }
 
 /*
- * Given position and dimensions in normalized view coordinates, calculate
- * position and dimensions in image coordinates.
- */
-static void
-ged_rect_view2image(struct ged_rect_state *grsp)
-{
-grsp->grs_pos[X] = (grsp->grs_x * 0.5 + 0.5) * grsp->grs_cdim[X];
-grsp->grs_pos[Y] = (grsp->grs_y * 0.5 + 0.5) * grsp->grs_cdim[Y] * 
grsp->grs_aspect;
-grsp->grs_dim[X] = grsp->grs_width * grsp->grs_cdim[X] * 0.5;
-grsp->grs_dim[Y] = grsp->grs_height * grsp->grs_cdim[X] * 0.5;
-}
-
-/*
  * Given position and dimensions in image coordinates, calculate
  * position and dimensions in normalized view coordinates.
  */
@@ -553,15 +539,6 @@
 gedp->ged_gvp->gv_scale *= sf;
 ged_view_update

[brlcad-commits] SF.net SVN: brlcad:[41847] brlcad/trunk/src/mged

2010-12-29 Thread brlcad
Revision: 41847
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41847&view=rev
Author:   brlcad
Date: 2010-12-30 07:27:40 + (Thu, 30 Dec 2010)

Log Message:
---
quell remainder of verbose compilation warnings on 10.4 including double const 
decls, unused var, unnecessary %lf, and bad magic checking (would have been a 
runtime failure)

Modified Paths:
--
brlcad/trunk/src/mged/adc.c
brlcad/trunk/src/mged/chgmodel.c
brlcad/trunk/src/mged/chgview.c
brlcad/trunk/src/mged/clone.c
brlcad/trunk/src/mged/cmd.h
brlcad/trunk/src/mged/edpipe.c
brlcad/trunk/src/mged/mged.c

Modified: brlcad/trunk/src/mged/adc.c
===
--- brlcad/trunk/src/mged/adc.c 2010-12-30 07:10:03 UTC (rev 41846)
+++ brlcad/trunk/src/mged/adc.c 2010-12-30 07:27:40 UTC (rev 41847)
@@ -36,7 +36,7 @@
 #include "./mged_dm.h"
 
 
-static char adc_syntax[] = "\
+static char adc_syntax1[] = "\
  adc   toggle display of angle/distance cursor\n\
  adc vars  print a list of all variables (i.e. var = val)\n\
  adc draw [0|1]set or get the draw parameter\n\
@@ -46,6 +46,9 @@
  adc odst [#]  set or get radius (distance) of tick (+-2047)\n\
  adc hv [# #]  set or get position (grid coordinates)\n\
  adc xyz [# # #]   set or get position (model coordinates)\n\
+";
+
+static char adc_syntax2[] = "\
  adc x [#] set or get horizontal position (+-2047)\n\
  adc y [#] set or get vertical position (+-2047)\n\
  adc dh #  add to horizontal position (grid coordinates)\n\
@@ -53,6 +56,9 @@
  adc dx #  add to X position (model coordinates)\n\
  adc dy #  add to Y position (model coordinates)\n\
  adc dz #  add to Z position (model coordinates)\n\
+";
+
+static char adc_syntax3[] = "\
  adc anchor_pos[0|1]   anchor ADC to current position in model 
coordinates\n\
  adc anchor_a1 [0|1]   anchor angle1 to go through anchorpoint_a1\n\
  adc anchor_a2 [0|1]   anchor angle2 to go through anchorpoint_a2\n\
@@ -60,6 +66,9 @@
  adc anchorpoint_a1 [# # #]set or get anchor point for angle1\n\
  adc anchorpoint_a2 [# # #]set or get anchor point for angle2\n\
  adc anchorpoint_dst [# # #]   set or get anchor point for tick distance\n\
+";
+
+static char adc_syntax4[] = "\
  adc -iany of the above appropriate commands will 
interpret parameters as increments\n\
  adc reset reset angles, location, and tick distance\n\
  adc help  prints this help message\n\
@@ -1050,12 +1059,12 @@
 }
 
 if (strcmp(parameter, "help") == 0) {
-   Tcl_AppendResult(interp, "Usage:\n", adc_syntax, (char *)NULL);
+   Tcl_AppendResult(interp, "Usage:\n", adc_syntax1, adc_syntax2, 
adc_syntax3, adc_syntax4, (char *)NULL);
return TCL_OK;
 }
 
 Tcl_AppendResult(interp, "ADC: unrecognized command: '",
-argv[1], "'\nUsage:\n", adc_syntax, (char *)NULL);
+argv[1], "'\nUsage:\n", adc_syntax1, adc_syntax2, 
adc_syntax3, adc_syntax4, (char *)NULL);
 return TCL_ERROR;
 }
 

Modified: brlcad/trunk/src/mged/chgmodel.c
===
--- brlcad/trunk/src/mged/chgmodel.c2010-12-30 07:10:03 UTC (rev 41846)
+++ brlcad/trunk/src/mged/chgmodel.c2010-12-30 07:27:40 UTC (rev 41847)
@@ -83,11 +83,11 @@
char center[512];
char scale[128];
 
-   sprintf(center, "%lf %lf %lf",
+   sprintf(center, "%f %f %f",
-view_state->vs_gvp->gv_center[MDX],
-view_state->vs_gvp->gv_center[MDY],
-view_state->vs_gvp->gv_center[MDZ]);
-   sprintf(scale, "%lf", view_state->vs_gvp->gv_scale * 2.0);
+   sprintf(scale, "%f", view_state->vs_gvp->gv_scale * 2.0);
 
av[0] = argv[0];
av[1] = "-o";

Modified: brlcad/trunk/src/mged/chgview.c
===
--- brlcad/trunk/src/mged/chgview.c 2010-12-30 07:10:03 UTC (rev 41846)
+++ brlcad/trunk/src/mged/chgview.c 2010-12-30 07:27:40 UTC (rev 41847)
@@ -172,9 +172,9 @@
 if (gedp == GED_NULL)
return;
 
-snprintf(xbuf, 32, "%lf", center[X]);
-snprintf(ybuf, 32, "%lf", center[Y]);
-snprintf(zbuf, 32, "%lf", center[Z]);
+snprintf(xbuf, 32, "%f", center[X]);
+snprintf(ybuf, 32, "%f", center[Y]);
+snprintf(zbuf, 32, "%f", center[Z]);
 
 av[0] = "center";
 av[1] = xbuf;
@@ -2696,7 +2696,7 @@
 if (gedp == GED_NULL)
return TCL_OK;
 
-snprintf(buf, 32, "%lf", val);
+snprintf(buf, 32, "%f", val);
 
 av[0] = "zoom";
 av[1] = buf;
@@ -3023,9 +3023,9 @@
 if (gedp == GED_NULL)
return;
 
-snprintf(xbuf, 32, "%lf", a1);
-snprintf(ybuf, 32, "%lf", a2);
-snprintf(zbuf, 32, "%lf", a3);
+snprintf(xbuf, 32, "%f", a1);
+snpri

[brlcad-commits] SF.net SVN: brlcad:[41845] brlcad/trunk

2010-12-29 Thread brlcad
Revision: 41845
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41845&view=rev
Author:   brlcad
Date: 2010-12-30 06:47:52 + (Thu, 30 Dec 2010)

Log Message:
---
wdb_rt_gettrees_cmd() and wdb_stub_cmd() can make their argv's be const too

Modified Paths:
--
brlcad/trunk/include/ged.h
brlcad/trunk/src/libged/wdb_obj.c

Modified: brlcad/trunk/include/ged.h
===
--- brlcad/trunk/include/ged.h  2010-12-30 06:47:09 UTC (rev 41844)
+++ brlcad/trunk/include/ged.h  2010-12-30 06:47:52 UTC (rev 41845)
@@ -707,7 +707,7 @@
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
 int argc,
-char *argv[]));
+const char *argv[]));
 GED_EXPORT BU_EXTERN(int   wdb_dump_cmd,
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
@@ -802,7 +802,7 @@
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
 int argc,
-char *argv[]));
+const char *argv[]));
 GED_EXPORT BU_EXTERN(int   wdb_region_cmd,
(struct rt_wdb *wdbp,
 Tcl_Interp *interp,
@@ -963,11 +963,6 @@
 Tcl_Interp *interp,
 int argc,
 char *argv[]));
-GED_EXPORT BU_EXTERN(int   wdb_stub_cmd,
-   (struct rt_wdb *wdbp,
-Tcl_Interp *interp,
-int argc,
-char *argv[]));
 
 
 

Modified: brlcad/trunk/src/libged/wdb_obj.c
===
--- brlcad/trunk/src/libged/wdb_obj.c   2010-12-30 06:47:09 UTC (rev 41844)
+++ brlcad/trunk/src/libged/wdb_obj.c   2010-12-30 06:47:52 UTC (rev 41845)
@@ -1484,7 +1484,7 @@
 wdb_rt_gettrees_cmd(struct rt_wdb *wdbp,
Tcl_Interp *interp,
int argc,
-   char *argv[])
+   const char *argv[])
 {
 struct rt_i *rtip;
 struct application *ap;
@@ -1930,7 +1930,7 @@
 wdb_stub_cmd(struct rt_wdb *UNUSED(wdbp),
 Tcl_Interp *interp,
 int argc,
-char *argv[])
+const char *argv[])
 {
 if (argc != 1) {
struct bu_vls vls;


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41844] brlcad/trunk

2010-12-29 Thread brlcad
Revision: 41844
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41844&view=rev
Author:   brlcad
Date: 2010-12-30 06:47:09 + (Thu, 30 Dec 2010)

Log Message:
---
dm_open()'s argv can be const

Modified Paths:
--
brlcad/trunk/include/dm.h
brlcad/trunk/src/libdm/dm-generic.c

Modified: brlcad/trunk/include/dm.h
===
--- brlcad/trunk/include/dm.h   2010-12-29 21:14:50 UTC (rev 41843)
+++ brlcad/trunk/include/dm.h   2010-12-30 06:47:09 UTC (rev 41844)
@@ -334,7 +334,7 @@
(Tcl_Interp *interp,
 int type,
 int argc,
-char *argv[]));
+const char *argv[]));
 DM_EXPORT BU_EXTERN(int dm_share_dlist,
(struct dm *dmp1,
 struct dm *dmp2));

Modified: brlcad/trunk/src/libdm/dm-generic.c
===
--- brlcad/trunk/src/libdm/dm-generic.c 2010-12-29 21:14:50 UTC (rev 41843)
+++ brlcad/trunk/src/libdm/dm-generic.c 2010-12-30 06:47:09 UTC (rev 41844)
@@ -76,7 +76,7 @@
 
 
 struct dm *
-dm_open(Tcl_Interp *interp, int type, int argc, char **argv)
+dm_open(Tcl_Interp *interp, int type, int argc, const char *argv[])
 {
 switch (type) {
case DM_TYPE_NULL:


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41843] brlcad/branches/bottie/src/librt/primitives/bot/ bot.c

2010-12-29 Thread erikgreenwald
Revision: 41843
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41843&view=rev
Author:   erikgreenwald
Date: 2010-12-29 21:14:50 + (Wed, 29 Dec 2010)

Log Message:
---
de-HIDDEN rt_bot_makesegs() so btg.c can call it (didn't show up in debug 
build, but does in optimized)

Modified Paths:
--
brlcad/branches/bottie/src/librt/primitives/bot/bot.c

Modified: brlcad/branches/bottie/src/librt/primitives/bot/bot.c
===
--- brlcad/branches/bottie/src/librt/primitives/bot/bot.c   2010-12-29 
20:47:14 UTC (rev 41842)
+++ brlcad/branches/bottie/src/librt/primitives/bot/bot.c   2010-12-29 
21:14:50 UTC (rev 41843)
@@ -69,7 +69,7 @@
 
 
 /* forward declarations needed for the included routines below */
-HIDDEN int
+int
 rt_bot_makesegs(
 struct hit *hits,
 int nhits,
@@ -263,7 +263,7 @@
  * Given an array of hits, make segments out of them.  Exactly how
  * this is to be done depends on the mode of the BoT.
  */
-HIDDEN int
+int
 rt_bot_makesegs(struct hit *hits, int nhits, struct soltab *stp, struct xray 
*rp, struct application *ap, struct seg *seghead, struct rt_piecestate *psp)
 {
 struct bot_specific *bot = (struct bot_specific *)stp->st_specific;


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41842] brlcad/branches/bottie/src/librt/primitives/bot/ tie_kdtree.c

2010-12-29 Thread erikgreenwald
Revision: 41842
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41842&view=rev
Author:   erikgreenwald
Date: 2010-12-29 20:47:14 + (Wed, 29 Dec 2010)

Log Message:
---
force min/max instead of trusting them to be 0ish

Modified Paths:
--
brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c

Modified: brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c
===
--- brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c
2010-12-29 20:25:08 UTC (rev 41841)
+++ brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c
2010-12-29 20:47:14 UTC (rev 41842)
@@ -141,6 +141,8 @@
 g = ((tie_geom_t *)(tie->kdtree->data));
 g->tri_num = 0;
 g->tri_list = (tie_tri_t **)bu_malloc(sizeof(tie_tri_t *) * tri_num, 
__FUNCTION__);
+VSETALL(tie->min.v, +INFINITY);
+VSETALL(tie->max.v, -INFINITY);
 
 /* form bounding box of scene */
 for (i = 0; i < tri_num; i++) {


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41841] brlcad/trunk/src/libged/rect.c

2010-12-29 Thread bob1961
Revision: 41841
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41841&view=rev
Author:   bob1961
Date: 2010-12-29 20:25:08 + (Wed, 29 Dec 2010)

Log Message:
---
grsp->grs_y was not getting set properly

Modified Paths:
--
brlcad/trunk/src/libged/rect.c

Modified: brlcad/trunk/src/libged/rect.c
===
--- brlcad/trunk/src/libged/rect.c  2010-12-29 20:23:40 UTC (rev 41840)
+++ brlcad/trunk/src/libged/rect.c  2010-12-29 20:25:08 UTC (rev 41841)
@@ -366,7 +366,7 @@
 ged_rect_image2view(struct ged_rect_state *grsp)
 {
 grsp->grs_x = (grsp->grs_pos[X] / (fastf_t)grsp->grs_cdim[X] - 0.5) * 2.0;
-grsp->grs_y = (grsp->grs_pos[Y] / (fastf_t)grsp->grs_cdim[Y] / 
grsp->grs_aspect - 0.5) * 2.0;
+grsp->grs_y = ((0.5 - (grsp->grs_cdim[Y] - grsp->grs_pos[Y]) / 
(fastf_t)grsp->grs_cdim[Y]) / grsp->grs_aspect * 2.0);
 grsp->grs_width = grsp->grs_dim[X] * 2.0 / (fastf_t)grsp->grs_cdim[X];
 grsp->grs_height = grsp->grs_dim[Y] * 2.0 / (fastf_t)grsp->grs_cdim[X];
 }


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41840] brlcad/branches/bottie/src/librt/primitives/bot/ btg.c

2010-12-29 Thread erikgreenwald
Revision: 41840
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41840&view=rev
Author:   erikgreenwald
Date: 2010-12-29 20:23:40 + (Wed, 29 Dec 2010)

Log Message:
---
add tri_specific for segment normal info

Modified Paths:
--
brlcad/branches/bottie/src/librt/primitives/bot/btg.c

Modified: brlcad/branches/bottie/src/librt/primitives/bot/btg.c
===
--- brlcad/branches/bottie/src/librt/primitives/bot/btg.c   2010-12-29 
16:08:10 UTC (rev 41839)
+++ brlcad/branches/bottie/src/librt/primitives/bot/btg.c   2010-12-29 
20:23:40 UTC (rev 41840)
@@ -98,6 +98,7 @@
 struct hitdata_s {
 int nhits;
 struct hit hits[MAXHITS];
+struct tri_specific ts[MAXHITS];
 struct xray *rp;
 };
 
@@ -105,9 +106,11 @@
 hitfunc(tie_ray_t *ray, tie_id_t *id, tie_tri_t *tri, void *ptr)
 {
 struct hitdata_s *h = (struct hitdata_s *)ptr;
+struct tri_specific *tsp;
 struct hit *hp;
 
 hp = &h->hits[h->nhits];
+tsp = hp->hit_private = &h->ts[h->nhits];
 h->nhits++;
 
 if(h->nhits > MAXHITS) {
@@ -117,7 +120,7 @@
 
 hp->hit_magic = RT_HIT_MAGIC;
 hp->hit_dist = id->dist;
-hp->hit_private = tri->ptr;
+VMOVE(tsp->tri_N, id->norm.v);
 
 /* add hitdist into array and add one to nhits */
 return NULL;   /* continue firing */
@@ -148,8 +151,6 @@
 if(hitdata.nhits == 0)
return 0;
 
-bu_log("Bang!\n");
-
 /* this func is in ars, for some reason. All it needs is the dist. */
 rt_hitsort(hitdata.hits, hitdata.nhits);
 


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41839] brlcad/trunk/src/mged/mged.c

2010-12-29 Thread erikgreenwald
Revision: 41839
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41839&view=rev
Author:   erikgreenwald
Date: 2010-12-29 16:08:10 + (Wed, 29 Dec 2010)

Log Message:
---
move declaration to beginning of block

Modified Paths:
--
brlcad/trunk/src/mged/mged.c

Modified: brlcad/trunk/src/mged/mged.c
===
--- brlcad/trunk/src/mged/mged.c2010-12-29 15:58:00 UTC (rev 41838)
+++ brlcad/trunk/src/mged/mged.c2010-12-29 16:08:10 UTC (rev 41839)
@@ -2511,14 +2511,13 @@
 mged_finish(int exitcode)
 {
 char place[64];
-struct dm_list *p;
+struct dm_list *p, *dml;
 struct cmd_list *c;
 
 (void)sprintf(place, "exit_status=%d", exitcode);
 log_event("CEASE", place);
 
 /* Release all displays */
-struct dm_list *dml;
 while (BU_LIST_WHILE(p, dm_list, &(head_dm_list.l))) {
BU_LIST_DEQUEUE(&(p->l));
if (p && p->dml_dmp) {


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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41838] brlcad/trunk/misc/win32-msvc8

2010-12-29 Thread erikgreenwald
Revision: 41838
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41838&view=rev
Author:   erikgreenwald
Date: 2010-12-29 15:58:00 + (Wed, 29 Dec 2010)

Log Message:
---
screengrab.c is in libged, not libbn.

Modified Paths:
--
brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj
brlcad/trunk/misc/win32-msvc8/libged/libged.vcproj

Modified: brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj
===
--- brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj2010-12-29 09:52:06 UTC 
(rev 41837)
+++ brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj2010-12-29 15:58:00 UTC 
(rev 41838)
@@ -4,6 +4,7 @@
Version="8.00"
Name="libbn"
ProjectGUID="{2794FD11-F9A6-4145-92DE-A05F5A2E6361}"
+   RootNamespace="libbn"
>




-   
-   
-   
-   
-   
-   
-   
-   



+   
+   



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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[41837] brlcad/trunk

2010-12-29 Thread brlcad
Revision: 41837
  http://brlcad.svn.sourceforge.net/brlcad/?rev=41837&view=rev
Author:   brlcad
Date: 2010-12-29 09:52:06 + (Wed, 29 Dec 2010)

Log Message:
---
add screengrab.c and bntester.c to the windows builds.

Modified Paths:
--
brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj
brlcad/trunk/src/libbn/CMakeLists.txt

Modified: brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj
===
--- brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj2010-12-29 07:41:38 UTC 
(rev 41836)
+++ brlcad/trunk/misc/win32-msvc8/libbn/libbn.vcproj2010-12-29 09:52:06 UTC 
(rev 41837)
@@ -573,6 +573,26 @@



+   
+   
+   
+   
+   
+   
+   
+   
http://p.sf.net/sfu/oracle-sfdevnl
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits